Documente Academic
Documente Profesional
Documente Cultură
Tables: ZTC_EKKO.
controls: tc100 type tableview using screen 100.
Below is the result, there will been syntax errors if we check now! So Save and go back into the flow
logic tab.
Step 7 (Create flow control )
Within the flow logic of screen 100 and create two modules, one to select the data from the
database and the other to move the selected fields into the table control. Also insert the two loop
statements to populate and retrieve the lines of the table control.
Double click the module data_retrieval to create and click yes to get past the popup. Ensure that a
new include is created to hold all the PBO modules (default). Press enter.
Select 10 rows of data from the EKKO table and load into the internal table it_ekko. Go back to the flow
logic to load this data into the Table Control.
*----------------------------------------------------------------------*
***INCLUDE MZ_TCONTROL_DATA_RETRIEVALO01 .
*----------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*& Module data_retrieval OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE data_retrieval OUTPUT.
* select data from ekko table
SELECT ebeln bukrs bstyp bsart
bsakz loekz statu aedat
UP TO 10 ROWS
FROM ekko
INTO CORRESPONDING FIELDS OF TABLE it_ekko.
ENDMODULE. " data_retrieval OUTPUT
Double click the module populate_screen to create. Now move the values in this loop from the wa_ekko
into the Table Control with the move-corresponding statement.