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

LOAD-OF-PROGRAM

Former Member
0 Likes
2,979

What is the use of LOAD-OF-PROGRAM event?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,911

Hi suresh,

Load of Program is the very First Event that Trigerred when Program is Compiled by ABAP Editor.

then Execution of that Program proceeds.

in other way u can say Loading of program from A..P. layer in to Presentation layer is done by this Event.

Hope it will you...

Pls reward if helpful......!!!

Regards,

Nitin

What is the use of LOAD-OF-PROGRAM event?

8 REPLIES 8
Read only

Former Member
0 Likes
1,912

Hi suresh,

Load of Program is the very First Event that Trigerred when Program is Compiled by ABAP Editor.

then Execution of that Program proceeds.

in other way u can say Loading of program from A..P. layer in to Presentation layer is done by this Event.

Hope it will you...

Pls reward if helpful......!!!

Regards,

Nitin

Read only

Former Member
0 Likes
1,911

Load-of-program

Triggers the associated event in an internal session after loading a program of type 1, M, F, or S. Also runs the associated processing block once and once only for each program and internal session. The processing block LOAD-OF-PROGRAM has roughly the same function for an ABAP program of type 1, M, F or S as a constructor has for classes in ABAP Objects

Hope this helps you.

Reward points if found useful

Read only

Former Member
0 Likes
1,911

hi,

« Sample program in REPORT.EVENTS IN ABAP »Events in an ABAP/4 Report Program

There is no mandatory event in a report program. Events are actually used to organize the statements and control the flow of the program. If the program contains no explicitly defined event blocks, all the statements in the program form the entire event block START-OF-SELECTION. ABAP runtime environment automatically introduces a START-OF-SELECTION at the first execution line.

ABAP/4 report programs are event driven programs. Following events are triggered in a report.

LOAD OF PROGRAM. - If propgram is of type 1, M, F, or S; then LOAD-OF-PROGRAM is trigerred first and then INITIALIZATION. The purpose of load of program is to load the program into system memory so that the program can be executed.

INITIALIZATION. - just once.

AT SELECTION-SCREEN OUTPUT. - when there is selection-screen

AT SELECTION-SCREEN. - when user interacts.

START-OF-SELECTION. - when F8.This is the default event in ABAP.

END-OF-SELECTION. - At the end

EVENTS IN A CLASSICAL REPORT:

1. INITIALIZATION: This is triggered when the report is loaded in memory.

2. AT SELECTION-SCREEN OUTPUT: This is triggered when the selection screen is loaded in memory before being displayed.

3. AT SELECTION-SCREEN/ : function key from F5 to F12 to perform interactive action on the list.

4. At user-command.

==================================================

Finally I want to include one point:

If you debug your report program from the Abap editor screen then it triggers from

1.Initialization,

2.At Selection-screen,

3.Start-of Selection,

4.End-of Selection,

5.Top-of-page,

6.End-of-page.

But if you debug from the selection-screen then it triggers from

1.At Selection-Screen,

2.Start-of-selection,

3.Top-of-page,

4.End-of-page.

Hope this helps, Do reward.

Read only

Former Member
0 Likes
1,911

LOAD-OF-PROGRAM is triggered directly after the system has loaded a program with type 1, M, F, or S

into an internal session. The processing block is executed once only for each program in each internal

session.

Reward if useful..............

Read only

Former Member
0 Likes
1,911

Hi,

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.

Initialization is differ from load of program.

reward point if helpful

Regards

pankaj

Read only

Former Member
0 Likes
1,911

THANKS EVEERYBODY

Read only

Former Member
0 Likes
1,911

Hi

LOAD-OF-PROGRAM.

Triggers the associated event in an internal session after loading a program of type 1, M, F, or S. Also runs the associated processing block once and once only for each program and internal session.

Read only

Former Member
0 Likes
1,911

hai Reddy,

LOAD-OF-PROGRAM is the default EVENT that sap triggers internally.

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.

Regards.

Eshwar.