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

default event

Former Member
0 Likes
1,428

hi can u tell me what is the default event and wht is mandatory event in reporting

4 REPLIES 4
Read only

Former Member
0 Likes
929

There is nothing called as default events. The following events generally fire for for every report.

START-OF-SELECTION.

END-OF-SELECTION.

Rest of them are fire only when required.

Regards,

Ravi

Note : Please mark all the helpful answers

Read only

Former Member
0 Likes
929

hi

good

default event is INITIALIZTION

mandatory is START-OF-SELECTION.

THANKS

MRUTYUN

Read only

0 Likes
929

If you have coding the LOAD-OF-PROGRAM and INITIALIZATION events in your program, these will be fired first when running the program, before the selection screen, if there is one, is fired. If there is a selection screen, the the AT SELECTION-SCREEN OUTPUT event will be fired automatically before the screen is shown. Also, if there is a selection screen, the START-OF-SELECTION event will only be fired when the user clicks the "Execute" button on the selection screen. TOP-OF-PAGE will automically be fired when you use the first WRITE statement as well as anytime the line count is reached.

I hope this gives you a brief overview.

REgards,

Rich Heilman

Read only

Former Member
0 Likes
929

Hi Pavan,

<b>Load-of-program</b> is the very first event that is fired in a report program. here is the description of rest of the vents:

<b> 1.</b> The runtime environment creates the INITIALIZATION event and calls the corresponding event block (if it has been defined in the ABAP program).

<b>2.</b> If there is a selection screen defined in the program, control returns to the selection screen processor. This generates the corresponding events and calls their event blocks.

<b>3.</b> Control then passes to the reporting processor. It creates the START-OF-SELECTION event and calls the corresponding event block (if it has been defined in the ABAP program).

<b>4.</b> The logical database, if you are using one, calls further event blocks at this point.

<b>5.</b> The reporting processor creates the END-OF-SELECTION event and calls the corresponding event block (if it has been defined in the ABAP program).

<b>6.</b> If the program contains a list description, control now passes to the list processor. The list processor calls for Top-of-page event at first for every page and displays the list defined in the ABAP program. It converts user actions on the list into events and calls the corresponding event blocks.

Hope this helps you.

Regards,

Pragya