ABAP Keyword Documentation → ABAP − Reference → Program Layout → Modularization Statements → Event Blocks → Reporting Events
INITIALIZATION
Other versions: 7.31 | 7.40 | 7.54
Syntax
INITIALIZATION.
Effect
This event keyword defines an event block for initializing an executable program. The associated event is raised by the
ABAP runtime environment during the
flow of an
executable program, directly after LOAD-OF-PROGRAM
and before the
selection screen processing of any existing standard selection screen. This enables the input fields of the
selection screen to be initialized once only, including those fields defined in the
logical database associated with the program.
Note
When an executable program defines a standard selection screen, it is called again by the ABAP runtime
environment after execution, which raises the event INITIALIZATION
again.
In this case, the initialization of parameters or selection criteria of the selection screen is ignored, however, because they are automatically supplied with the preceding user input from the selection screen during the
selection screen
event AT SELECTION-SCREEN OUTPUT
. To initialize the selection screen explicitly for each call, the event AT SELECTION-SCREEN OUTPUT
must be used.
Example
Prefills a parameter on the standard selection screen of an executable program when the event INITIALIZATION
is raised.
PARAMETERS p_langu TYPE pgl_langu.
INITIALIZATION.
p_langu = sy-langu.