SAP SELECTION SCREEN OVERVIEW



Get Example source ABAP code based on a different SAP table
  



ABAP_SELSCR - Overview
ITOC

Selection Screens as Dynpros
Selection screens are special dynpros that can be defined in executable programs, function pools, and module pools. Selection screens are defined in the global declaration part of the specified ABAP programs with the statements SELECT-OPTIONS, SELECTION-SCREEN and PARAMETERS without using the Screen Painter. The screen layouts of selection screens can contain a subset of the screen elements of general dynpros.
Selection screens are in the same namespace as the dynpros of the program. In executable programs, dynpro number 1000 is reserved for a standard selection screen. In addition to the standard selection screen, standalone selection screens can also be defined. Standalone selection screens can only be defined in function pools and module pools.
When an ABAP program is activated, the components of the program selection screen, that is, screens with screen elements and dynpro flow logic, are generated automatically.



Latest notes:

The generated dynpros cannot be edited directly, which also means that certain default settings cannot be disabled. For example, input fields are always templates in which certain characters (!, = , _) have special functions.
ABAP_HINT_END

Selection Screen Tasks
Selection screens essentially have two tasks:
They enable users to input selection parameters (single values) and selection criteria (interval selections in tabular form).
they represent the interface of executable programs whose input fields can be supplied by the calling program with SUBMIT.

GUI Status of Selection Screens
The ABAP runtime framework sets a default GUI status and a default title for a selection screen. There is no guarantee that the statement SET PF-STATUS works at PBO for the selection screen. To define a separate GUI status for a selection screen or to deactivate the functions of the screen generated, one of the function modules RS_SET_SELSCREEN_STATUS or RS_EXTERNAL_SELSCREEN_STATUS can be used in exceptional cases.
The default title in the title bar of selection screens is the title of the program defined in the program properties. This title can be overwritten as follows:
With the addition TITLE in the case of selection screens defined using SELECTION-SCREEN BEGIN OF SCREEN.
With the statement SET TITLEBAR at PBO in the case of standard selection screens.

Selection Screen Events
No dialog modules for selection screens can be defined in the ABAP program. Instead, the runtime framework raises specific events during PBO and PAI processing of the dynpro, which can be handled in corresponding event blocks during selection screen processing.

Selection Screens and Logical Databases
A standard selection screen can also be defined in a logical database. If an executable program is linked with a logical database, its standard selection screen is composed of the logical database and its own database.