Skip to Content
avatar image
Former Member

when will we use LOAD-OF-PROGRAM event?

Hi,

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Sep 06, 2008 at 01: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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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?

  • avatar image
    Former Member
    Sep 06, 2008 at 01: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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 07, 2008 at 05: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. .

    Add comment
    10|10000 characters needed characters exceeded