Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Laboratory 3 Reporting
Reporting
Objectives:
1.
Creating a program
2.
Using a table
3.
4.
5.
6.
7.
Study case
1.
2.
3.
4.
In Start-of-selection a MAIN routine will be called. Two routines will be called in this procedure:
READ and ALV_DISPLAY.
In READ subroutine the data from ZTEST_FEAA_001 will be read, the data beying filtered by
the interval value of p_uname;
In ALV_DISPLAY we will use REUSE_ALV_GRID_DISPLAY.
for creating the fieldcatalog table we will use another routine ALV_FIELDCAT.
Creating a program
In SE80, right-click on Program, then choose Create.
Creating a program
Select as a type Executable program, as a Status Test program, then click Continue.
INITIALIZATION.
START-OF-SELECTION.
PERFORM main.
END-OF-SELECTION.
FORM main.
DATA: lt_feaa_001 TYPE gty_t_ztest_feaa_001.
PERFORM read CHANGING lt_feaa_001.
PERFORM alv_display USING lt_feaa_001.
ENDFORM.
" MAIN
" READ
"alv_display
ABAP Programming Laboratory 3. Reporting
10
Select Execute.
11
12
Summary
In this laboratory work we created a program, we used a table and an interval parameter in a
SELECTION-OPTIONS, we used types and local variables, SELECT statement, we created
routines and subroutines and we displayed the filtered data using ALV.
13