SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → User Dialogs → Screens → ABAP Statements for Screens → LOOP AT SCREEN →The structure SCREEN
Most components of the structure SCREEN from ABAP Dictionary correspond to the attributes of a screen element on a dynpro.
Data objects with the data type SCREEN can be used as a work area in the following ABAP statements:
The following table shows the components of SCREEN, their assignment to the field properties in the dynpro, and the possible values.
Component | Length | Type | Attribute | Value | Meaning |
name | 132 | c | Name | name | Name |
group1 | 3 | c | Group 1 | id1 | Modification Group |
group2 | 3 | c | Group2 | id2 | Modification Group |
group3 | 3 | c | Group3 | id3 | Modification Group |
group4 | 3 | c | Group4 | id4 | Modification Group |
required | 1 | c | Mandatory field | 0, 1, 2 | Mandatory or recommended field |
input | 1 | c | Input | 0, 1 | Input-ready field |
output | 1 | c | Output | 0, 1 | Display field |
intensified | 1 | c | Light | 0, 1 | Highlighted field |
invisible | 1 | c | Invisible | 0, 1 | Invisible element |
length | 1 | x | VisLg | ... | Field length |
active | 1 | c | - | 0, 1 | Active field |
display_3d | 1 | c | Two-dimensional | 0, 1 | Frame |
value_help | 1 | c | Input help | 0, 1, 2 | Input help button |
request | 1 | c | - | 0, 1 | Input exists |
values_in_combo | 1 | c | dropdown list box | 0, 1 | Input help available |
The name component contains the name of the current dynpro field in the loop. The components group1 to group4 can contain three figure identifiers id1 to id4, which were assigned to the current screen element when it was defined. These identifiers allow the screen elements to be grouped together in up to four different modification groups. These can be queried in logical expressions in the statement block after LOOP AT SCREEN, in order to process multiple screen elements in the same way.
The remaining components of the structure SCREEN (apart from request) show the display properties of the current screen element. With the exception of length, they can have the value 0 or 1, where content 1 means "active" and content 0 means "inactive". In addition, required and value_help can also have the value 2:
Except for active and request, all components of the structure SCREEN correspond directly to an attribute of the current screen element.