Application Development 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: 

when will we use LOAD-OF-PROGRAM event?

Former Member
0 Kudos

Hi,

Can anyone tell me with example when will we use LOAD-OF-PROGRAM event in Report& what is the use of this event?

5 REPLIES 5

Former Member
0 Kudos

HI,

Load of program is default event and it will be triggered before INITILISATION event.In ABAP this is default event .

Thanks,

radha.

0 Kudos

HI Radha,

I know that . But that event have some more functionality. In some reports we will use it. Do u have any Idea when & where it has to use?

Former Member
0 Kudos

Source help.sap.com

Load of program.

Directly after an executable program, a module pool, a function group or a subroutine pool has been loaded, a special processing block can be executed exactly once. This processing block is defined as an event block using the event keyword LOAD-OF-PROGRAM. The processing block for LOAD-OF-PROGRAM has the same function for ABAP programs as a constructor has for classes.

The purpose of load of program is to load the program into system memory so that the program can be executed.

0 Kudos

Thanks K.P.N

Former Member
0 Kudos

LOAD OF PROGRAM. -

The purpose of load of program is to load the program into system memory so that the program can be executed

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.

If program is of type 1, M, F, or S; then LOAD-OF-PROGRAM is trigerred first and then INITIALIZATION. .