Ansicht
Dokumentation

ABAPSELECTION-SCREEN_LAYOUT - SELECTION-SCREEN LAYOUT

ABAPSELECTION-SCREEN_LAYOUT - SELECTION-SCREEN LAYOUT

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

SELECTION-SCREEN, screen_elements

Short Reference



Blank lines

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

Horizontal lines

2. SELECTION-SCREEN ULINE $[$[/$]$[pos$](len)$] $[MODIF ID modid$]
                         $[ldb_additions$].

Output fields

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

Pushbuttons

4. SELECTION-SCREEN PUSHBUTTON $[/$]$[pos$](len) 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 statements PARAMETERS and SELECT-OPTIONS. By default, each of these statements creates its own line on the selection screen. The variants of the statement 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 statements can be executed within the definition of a selection screen in the global declaration part of executable programs, function pools and module pools.

Notes

  • The maximum width of a selection screen is 83. If this width is exceeded, the selection screen is truncated or not generated. In the case of blocks with a frame, the maximum width is reduced by the width of the frame.
  • All selection screen elements that can be created using the statement SELECTION-SCREEN are located in one 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 the objects are created, the namespace of the program data object must also be respected. 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, an error is produced when the selection screen is generated.
  • 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 must not conflict with the elements in the logical database.






BAL_S_LOG - Application Log: Log header data   General Material Data  
This documentation is copyright by SAP AG.

Length: 6962 Date: 20240510 Time: 101214     sap01-206 ( 68 ms )