The standard selection screen of an executable program consists of
· the selections of a logical database that may be linked to the program
· all selection screen elements from the declaration part of a program that are not assigned to a user-defined selection screen.
As long as at least one input field is defined for the standard selection screen, it is called fully automatically between the INITIALIZATION and START-OF-SELECTION events. During selection screen processing, the ABAP runtime environment generates special selection screen events. In the flow of an executable program, these events occur between the INTIALIZATION and the START-OF-SELECTION event. You can define event blocks for these events in the program.
If a standard selection screen is declared in an executable program, the same program will be automatically called again after it was completely processed and the standard selection screen will be displayed. The previous user data were stored temporarily in this case and will be displayed again on the standard selection screen. Possible initialization at the time of LOAD-OF-PROGRAM and INITIALIZATION will be overwritten by the pervious user inputs. These can now be overwritten at the time of PBO of the Selection Screen.
SELECTION-SCREEN BEGIN OF BLOCK mysel WITH FRAME TITLE tit.
PARAMETERS: deptime TYPE spfli-deptime,
arrtime TYPE spfli-arrtime.
SELECTION-SCREEN END OF BLOCK mysel.
tit = 'Times'.
If the executable program is linked to logical database F1S, the following selection screen is displayed automatically when the program is started:
The top three blocks are defined in the logical database. The bottom block is defined in the program itself.