09-06-2008 2:20 PM
Hi,
Can anyone tell me with example when will we use LOAD-OF-PROGRAM event in Report& what is the use of this event?
09-06-2008 2:40 PM
HI,
Load of program is default event and it will be triggered before INITILISATION event.In ABAP this is default event .
Thanks,
radha.
09-06-2008 2:49 PM
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?
09-06-2008 2:55 PM
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.
09-06-2008 3:15 PM
09-07-2008 6:31 AM
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. .