‎2007 Aug 10 10:37 AM
Hi,
What is the sequence of events in reports (both classical and interactive).
‎2007 Aug 10 10:41 AM
Hi..
This is the Sequence:
Event Name Triggering Action
LOAD-OF-PROGRAM.
INTITIALIZATION. Immediately when the Execution starts.
AT SELECTION-SCREEN OUTPUT Before displaying a Selection screen
AT SELECTION-SCREEN Before leaving a Selection screen
START-OF-SELECTION At the start of list after Selection screen
END-OF-SELECTION After completion of START-OF-SELECTION
TOP-OF-PAGE
END-OF-PAGE
Interactive
AT LINE-SELECTION For Double Click
AT USER-COMMAND For Clicking on GUI function
<b>Reward if Helpful</b>
‎2007 Aug 10 10:46 AM
<b>Description of Events</b>
This section describes in more detail the events that occur when you run an executable program.
The following events occur when you run a typical executable program with a logical database:
Event Occurs
<b>INITIALIZATION</b>
Before the standard selection screen is displayed
<b>AT SELECTION-SCREEN</b>
After user input on a selection screen has been processed, but while the selection screen is still active
<b>START-OF-SELECTION</b>
After the standard selection screen has been processed, before data is read from the logical database
<b>GET <table></b>
After the logical database has read an entry from the node <table>
<b>GET <table> LATE</b>
After all of the nodes of the logical database have been processed that are below <table> in the database hierarchy
<b>END-OF-SELECTION</b>
After all data has been read by the logical database
<b>List processor events:</b>
Event Occurs
<b>TOP-OF-PAGE</b>
In list processing when a new page starts
<b>END-OF-PAGE</b>
In list processing when a page ends
<b>AT LINE-SELECTION</b>
When the user triggers the predefined function code PICK
<b>AT PF<nn></b>
When the user triggers the predefined function code PF<nn>
<b>AT USER-COMMAND</b>
When the user triggers a function code defined in the program
Regards,
Pavan
‎2007 Aug 10 10:47 AM
Hi,
Common Events:
1. Intialization:
This is the first event will be trigerred among all the events. In this event you will assigning values to variables.
For eg: if you want to display comments on the selection -screen.
v1 = 'HAI'. and write this variable in the at selection screen then HAI will be displayed in the selection screen.
2. At Selection-screen OUTPUT.
This is triggered before displaying the selection screen. It's just like PBO in Module pool.
3. At Selection-screen.
This event is triggered when the before leaving the selection screen.
4. Start-of-selection.
this is default event trigerred for every executable program. Here you can do all the retrival logic.
5. End-of-selection:
This event is triggered after the start-of-selection. to display the contents on the report.
Classical report events:
1.Top-of-page: Every time a new page is triggered. Mainly this is used for header of the report.
2. End-of-page : every time the list data reaches the footer region of the page.
Interactive report events.
top of page during line selection : top of page event for secondary list.
1. At line-selection : evey time user dbl-clicks(F2) on the list data.
2. At pF<key> :function key from F5 to F12 to perform interactive action on the lis
3. At user-command: to assign the function code for the button on the report.
It's just like PAI of the Module pool program.
Also Check This Link..
http://www.sap-img.com/abap/events-related-to-reporting.htm
First event -
Initialization : triggered when the report is loaded in memory.
At selection-screen output : triggered when the selection screen is loaded in memory before being displayed.
At selection-screen : before leaving the selection screen.
start-of-selection : the first event for displaying the report.
This event keyword defines an event block whose event is triggered by the ABAP runtime environment
when calling the executable program selection screen processing of a selection screen.
In an executable program, all statements that are not declarations,
and are listed before the first explicit processing block, are assigned to this event block.
If the program does not contain an explicitly defined event block START-OF-SELECTION,
these statements form the complete event block START-OF-SELECTION.
If a program contains an explicitly defined event block START-OF-SELECTION,
these statements are added to the beginning of the event block.
If the program contains no explicitly defined event blocks,
these statements form the entire event block START-OF-SELECTION.
end-of-selection : after the start-of-selection is completed.
classiscal report events.
top-of-page : every time a new page is started in the list.
end-of-page : every time the list data reaches the footer region of the page.
interactive report events.
top of page during line selection : top of page event for secondary list.
at line-selection : evey time user dbl-clicks(F2) on the list data.
at pF<key> : function key from F5 to F12 to perform interactive action on the list.
at user-command
http://help.sap.com/saphelp_47x200/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm
Regards,
Priyanka.
‎2007 Aug 10 10:53 AM
hi
1) initilization.
2)at selecion-screen
. ..
| { ON {para|selcrit} }
| { ON END OF selcrit }
| { ON BLOCK block }
| { ON RADIOBUTTON GROUP radi }
| { }
| { ON {HELP-REQUEST|VALUE-REQUEST}
| FOR {para|selcrit-low|selcrit-high} }
| { ON EXIT-COMMAND }.
3)start-of-selection
4)top-of-page
5)end-of-page
6)end-of-selection
7)at line selection
8)at pf-key
9)at user-command
10)top-of-page during line selection
11)at first
12)at last
13)at new
14)at end of
etc ..
reward if usefull