Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

initialization and load of program

Former Member
0 Likes
584

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

3 REPLIES 3
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
548

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.

Read only

satykumar
Product and Topic Expert
Product and Topic Expert
0 Likes
548

Hi Neetesh,

Please go through this link

Thanks

Satyendra

Read only

Former Member
0 Likes
548

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.