Professional Documents
Culture Documents
INFO
Create SAP dialog screen dynpro Table Control
Press Save
Tables: ZTC_EKKO.
controls: tc100 type tableview using screen 100.
Press table control button and drag it on to the screen, enter the name of table control created
in TOP include (TC100). Now press the yellow button for attributes and set the table control as
below options
Below is the result, there will been syntax errors if we check now! So Save and go back into the
flow logic tab.
SAPDB.INFO
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.
SAPDB.INFO
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.