Get Example source ABAP code based on a different SAP table
ID CONTROLS • CONTROLS ABAP Statement
CONTROLS> Short Reference >
ABAP_SYNTAX_FORMS
Declaration of Table Controls> 1 CONTROLS contrl TYPE TABLEVIEW USING SCREEN dynnr.>
Declaration of Tabstrip Controls> 2 CONTROLS contrl TYPE TABSTRIP.>
What does it do? For each dynpro> used in the program, all table controls> and tabstrip controls> defined there must be declared in the declaration part using the statement CONTROLS >, otherwise an uncatchable exception is raised when the corresponding dynpro is called. contrl> expects the name of the control defined in the dynpro to be specified directly. After TYPE>, TABLEVIEW >, or TABSTRIP> must be used to specify whether it is a table control or a tabstrip control. For each control, the CONTROLS> statement creates a structure with the name of the control in the ABAP program. The structure components enable the respective control to be processed in the ABAP program.
Latest notes:
For table controls, corresponding loops> must be programmed in the dynpro flow logic >. For tabstrip controls, suitable subscreens> must be called.
Splitter controls> do not have to be declared using the CONTROLS> statement. Instead the class CL_DYNPRO_SPLITTER>> is used. ABAP_HINT_END