Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  User Dialogs →  Selection Screens →  Create Selection Screens →  SELECTION-SCREEN 

SELECTION-SCREEN - screen_elements

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax Forms


Blank lines

1. SELECTION-SCREEN SKIP [n] [ldb_additions].

Horizontal lines

2. SELECTION-SCREEN ULINE [[/]pos] [MODIF ID modid]
                         [ldb_additions].

Output fields

3. SELECTION-SCREEN COMMENT [/]pos
                           {text|{[text] FOR FIELD sel}}
                           [VISIBLE LENGTH vlen]
                          [MODIF ID modid]
                           [ldb_additions].

Pushbuttons

4. SELECTION-SCREEN PUSHBUTTON [/]pos button_text
                             USER-COMMAND ucom
                              [VISIBLE LENGTH vlen]
                              [MODIF ID modid]
                              [ldb_additions].

Lines with multiple elements

5. SELECTION-SCREEN BEGIN OF LINE.
  ...
  [SELECTION-SCREEN POSITION pos [ldb_additions]].
  ...
  SELECTION-SCREEN END OF LINE.

Blocks

6. SELECTION-SCREEN BEGIN OF BLOCK block
                                  [WITH FRAME [TITLE title]]
                                  [NO INTERVALS].
  ...
  SELECTION-SCREEN END OF BLOCK block.

Tabstrips

7. SELECTION-SCREEN BEGIN OF TABBED BLOCK tblock FOR n LINES.
  ...
  SELECTION-SCREEN TAB (len) tab USER-COMMAND ucom
                   [DEFAULT [PROGRAM prog] SCREEN dynnr].
  ...
  SELECTION-SCREEN END OF BLOCK tblock.

Pushbuttons in the application toolbar

8. SELECTION-SCREEN FUNCTION KEY n [ldb_additions].

Effect

The selection screen input fields are created using the commands PARAMETERS and SELECT-OPTIONS. By default, each of these commands creates its own row on the selection screen. The variants of the command SELECTION-SCREEN shown above allow selection screens to be created differently. Other screen elements can be defined and the order of elements on the screen modified.

The above commands can be executed within the definition of a selection screen in the global declaration part of executable programs, function groups and module pools.


Notes

  • The maximum width of a selection screen is 83. If this width is exceeded, the screen will be cut off or will not be generated. In the case of blocks with a frame, the maximum width is reduced by the width of the frame.
  • All screen elements that can be created using the command SELECTION-SCREEN are located in a namespace. This is the case even if the elements were created in different selection screens. In the case of selection screen elements, where a global data object is generated when the objects are created, the namespace of the program data object also has to be taken into account. If an element or a data object is to be used in multiple selection screens, the addition INCLUDE of the statement SELECTION-SCREEN can be used.
  • The selection screen elements must be positioned so that they do not overlap. If not, it leads to an error when generating the selection screen.

Shared namespaces particularly apply to a standard selection screen, which consists of the selection screens of a logical database and the program itself. The elements defined in a program cannot be allowed to conflict with the elements in the logical database.

Continue

SELECTION-SCREEN - SKIP

SELECTION-SCREEN - ULINE

SELECTION-SCREEN - COMMENT

SELECTION-SCREEN - PUSHBUTTON

SELECTION-SCREEN - LINE

SELECTION-SCREEN - BLOCK

SELECTION-SCREEN - TABBED BLOCK

SELECTION-SCREEN - FUNCTION KEY

SELECTION-SCREEN - MODIF ID