09-16-2008 6:49 PM
Hi Gurus,
I found the follwoing statements from SAP help
Initialization event can be used to initialize the input fields of the standard selection screen.
This event keyword defines an event block whose event is triggered 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.
Now my doubt is if a program doesn't have a selection screen does Initialization event would still get called?
09-16-2008 6:54 PM
yes it will call initialization even if it doesnt have any selection screen fields.
For example,
code -
DATA a TYPE i.
START-OF-SELECTION.
WRITE a .
a = 9.
WRITE a.
INITIALIZATION.
a = 10.
now answer will be 10 and 9.
So the value for A will be 10 first which is set in intialization event.
09-16-2008 6:54 PM
yes it will call initialization even if it doesnt have any selection screen fields.
For example,
code -
DATA a TYPE i.
START-OF-SELECTION.
WRITE a .
a = 9.
WRITE a.
INITIALIZATION.
a = 10.
now answer will be 10 and 9.
So the value for A will be 10 first which is set in intialization event.
09-16-2008 7:03 PM