SAP SELECTION-SCREEN NORMAL ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• TITLE SELECTION-SCREEN BEGIN OF
• AS WINDOW SELECTION-SCREEN BEGIN OF

SELECTION-SCREEN, SCREEN
Short Reference

ABAP_SYNTAX
SELECTION-SCREEN BEGIN OF SCREEN dynnr $[TITLE title$]
$[AS WINDOW$].
...
SELECTION-SCREEN END OF SCREEN dynnr.

ABAP Addition
1 ... TITLE title
2 ... AS WINDOW

What does it do?
These statements can be specified in the global declaration part of executable programs, function pools, and module pools. They create a standalone selection screen with the dynpro number dynnr. The dynpro number must be specified directly and can have a maximum of four digits.
All PARAMETERS, SELECT-OPTIONS, and SELECTION-SCREEN statements that are executed within these statements define the screen elements for the standalone selection screen. No further selection screens can be defined within the definition of a selection screen.

ABAP Addition

What does it do?
The addition TITLE can be used to define a title for the title bar of a standalone selection screen. The title can either be freely selectable name with a maximum of eight characters or the name of a text symbol from the program in the form text-idf, where idf is the three-character ID of the text symbol. If a name is chosen freely, the runtime framework generates an identically named type c global variant and 70 characters in length. When the selection screen is displayed, the first 70 characters of the text symbol or global variants are placed in the title bar. If the specified text symbol is not found, the name of the text symbol is displayed as the title in the form TEXT-idf. If the addition TITLE is not specified, the system uses the title of the program defined in the program properties.

ABAP Addition

What does it do?
The addition AS WINDOW can be used to define a standalone selection screen to be displayed in a modal dialog box. The actual shape of the GUI window is not defined until it is accessed using CALL SELECTION-SCREEN. The addition AS WINDOW also displays warnings and error messages that occur during processing of a selection screen event as a modal dialog box.



Latest notes:

The specified dynpro number dynnr must not already be assigned to existing dynpros or selection screens. Also note that the number 1000 for the standard selection screen cannot be used for a standalone selection screen in an executable program.
ABAP_HINT_END



Example ABAP Coding

Defines and calls a selection screen as a modal dialog box.
ABEXA 00578
ABAP_EXAMPLE_END

Return to menu