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


Empty lines

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

Horizontal rules

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].

Rows 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

You create the selection screen input fields 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 you to to create selection screens differently. With them, you can define other screen elements and influence the order of elements on the screen.

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 you exceed this width, 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 for which a global data object is generated when they are created, the namespace of the program data object also has to be taken into account. If you want to use an element or a data object in multiple selection screens, you can use the addition INCLUDE of the command SELECTION-SCREEN.
  • 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 that is composed 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