Topic 06 - Exercise - NHATLM7
Topic 06 - Exercise - NHATLM7
Step 3 : Check the source code and make sure you follow below Coding covnentio
Bước 3: Kiểm tra code xem có giống convention bên dưới chưa, nếu chưa thì sửa lại
Exercise 2: Recursion
1. Research what Recursion is in programming
https://afteracademy.com/blog/what-is-recursion-in-programming
*** For vietnamese material please check Google
3. Recursion can make your program run forever. Please check careful that you can exit the Recu
4. Trường hợp vướn phải vòng lặp vô hạn hoặc xử lý không thể kết thúc, sử dụng tcode SM50 để tắt cưỡ
Print the contents of all global variables before the routine is called, at the beginning of the routine, at the
Write an executable program that contains 2 routines that prints all usernames in the system. (Check tab
1. First Routine: Get data from USR04
2. Second Routine: Print all the data
below Coding covnention
l that you can exit the Recursion. And DEBUG in your first run
ử dụng tcode SM50 để tắt cưỡng bức (End Process) hoặc thông báo Senior trong nhóm
eginning of the routine, at the end of the routine (after all values are changed) and after the PERFORM statement.
mes in the system. (Check table USR04 and its content in transaction SE11, SE16 or SE16N).
ORM statement.
System : S4J
Exercise 1:
Target Table: SPFLI Flight schedule
SLFIGHT Flight Information
T005T Country Name
SCARR Airline
Selection Screen:
Report Output:
*** You can check the Technical design for program outline
*&---------------------------------------------------------------------*
*& DATA DECLARATION
*&---------------------------------------------------------------------*
5. Create a sorted table from Table Name SCARR to store Airliner Name
*&---------------------------------------------------------------------*
*& SELECTION SCREEN
*&---------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*& START-OF-SELECTION
*&---------------------------------------------------------------------*
4.1. At new block of FLDATE, CARRID, CONNID, COUNTRYFR, CITYFROM, COUNTRYTO, CITYTO
Read Sorted Table of TY_COUNTRY into a work area (Work Area: Country From)
using table key LAND1 = COUNTRYFR of current looping record
Read Sorted Table of TY_COUNTRY into a work area (Work Area: Country To)
using table key LAND1 = COUNTRYTO of current looping record
*************
*************
*************
*************
*************
*************
*************
*************
*************
*************
*************
*************
*************
*************
*************
, COUNTRYTO, CITYTO
) GS_REPORT-CITYTO.
_B ) + ( SEATSMAX_F - SEATSOCC_F )
Exercise/Remarks Screenshots
<screenshot>
<screenshot>