‎2007 Jan 08 5:42 AM
Hi ,
Can anybody tell me the difference between initialization and load of program events because both of these events functions in a similar way .
Neetesh
‎2007 Jan 08 5:49 AM
Hi,
In ABAPDOCU you can see the clear difference.
INITIALIZATION.
Only occurs in executable programs. The ABAP runtime environment triggers the INITIALIZATION event before the selection screen is processed, at which point the corresponding event block is processed.
LOAD-OF-PROGRAM.
When an ABAP program is loaded in an internal session, the runtime environment triggers the LOAD-OF-PROGRAM event, and the corresponding event block is executed.
‎2007 Jan 08 5:52 AM
‎2007 Jan 08 5:54 AM
Hi neetesh,
1. In normal programming for se38 reports,
it does not make any difference between initialization and load-of-program.
2. HOWEVER,
3. Suppose u want to call some FORM in another program
using PERFORM MYFORM(ZREPORT2)
and u want to fill some global varaiables of ZREPORT2,
then WHAT ?
4. In that case,
when PERFORM is encountered in report1,
then the ZREPORT2 is LOADED
and the event LOAD-OF-PROGRAM is fired,
where we can fill values in global variables.
(in such case, initializatino won't be fired)
regards,
amit m.