Code: Alles auswählen.
REPORT z_dyn_table_control.
TYPES:
BEGIN OF ls,
trkorr TYPE trkorr,
trfunction TYPE trfunction,
trstatus TYPE trstatus,
END OF ls .
DATA ls_scource TYPE ls.
DATA lt_source LIKE TABLE OF ls_scource.
CONTROLS source TYPE TABLEVIEW USING SCREEN 100.
*&---------------------------------------------------------------------*
*& Module STATUS_0100 OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE status_0100 OUTPUT.
SELECT trkorr trfunction trstatus UP TO 10 ROWS
FROM e070
INTO TABLE lt_source.
CALL SCREEN 100.
ENDMODULE. " STATUS_0100 OUTPUT
Code: Alles auswählen.
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
LOOP AT lt_source INTO ls_scource WITH CONTROL source.
ENDLOOP.
PROCESS AFTER INPUT.
* MODULE USER_COMMAND_0100.
pitty hat geschrieben:... "LOOP ...ENDLOOP" must appear in "PBO" and "PAI".