ABAP Keyword Documentation → ABAP - Reference → User Dialogs → Screens → ABAP Statements for Screens
CONTROLS
Other versions: 7.31 | 7.40 | 7.54
Syntax Forms
Declaration of Table Controls
1. CONTROLS contrl TYPE TABLEVIEW USING SCREEN screen no.
Declaration of Tabstrip Controls
2. CONTROLS contrl TYPE TABSTRIP.
Effect
With the CONTROLS
statement, for each
screen used in the program, all
table controls and
tabstrip controls
that are defined there have to be declared in the declaration section, otherwise an untreatable exception
occurs when the corresponding screen is called. For contrl
, the name of the
control that is defined in the screen has 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.
Notes
For table controls, corresponding loops have to be programmed in the screen flow logic. For tabstrip controls, suitable subscreens have to be called.
-
Splitter Controls
must not be declared with the
CONTROLS
statement. Instead the class CL_DYNPRO_SPLITTER is used.