‎2006 Oct 04 8:22 AM
pls let me know the order of execution in report events, if i have write statements included at start of selection , top of page, at line selection, top of page during line selection, end of page, end of selection
‎2006 Oct 04 8:24 AM
If you have coding 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.
<b>here is your program output sequenece</b>
when you execute the program,
first cursor comes to START of selection event.
as you written some text using WRITE statement,so it will be printed.
TOP OF PAGE event will be triggered(at the same time)when program first finds the WRITE statemnt.
so the text you write in TOP OF PAGE also will be printed .
when ever the page printing is over and cursor going to the next page,just before going to the new page
for printing,END OF PAGE event will be triggered. so your text in this event will be printed.
END OF SELECTION.
its the last event to be triggered in the program flow.
at line selection, top of page during line selection:
these 2 events are interactive event keywords and will be fired when ever user selects a line on the basic list.
top of page during line selection : this event will be triggered in interactive reports when we are displaying 1st,2nd list onnn.
at line selection: when ever user click on a line of a basic list,this event will be fired.
hope this helps you.
Message was edited by: Srikanth Kidambi
‎2006 Oct 04 8:22 AM
hi,
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.
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
rgds
anver
if hlped mark points
‎2006 Oct 04 8:24 AM
If you have coding 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.
<b>here is your program output sequenece</b>
when you execute the program,
first cursor comes to START of selection event.
as you written some text using WRITE statement,so it will be printed.
TOP OF PAGE event will be triggered(at the same time)when program first finds the WRITE statemnt.
so the text you write in TOP OF PAGE also will be printed .
when ever the page printing is over and cursor going to the next page,just before going to the new page
for printing,END OF PAGE event will be triggered. so your text in this event will be printed.
END OF SELECTION.
its the last event to be triggered in the program flow.
at line selection, top of page during line selection:
these 2 events are interactive event keywords and will be fired when ever user selects a line on the basic list.
top of page during line selection : this event will be triggered in interactive reports when we are displaying 1st,2nd list onnn.
at line selection: when ever user click on a line of a basic list,this event will be fired.
hope this helps you.
Message was edited by: Srikanth Kidambi
‎2006 Oct 04 9:01 AM
Order for different events is:
1 . Initialization
2 . At selection-screen output
3 . At selection-screen
4 . Start-of-selection
5 . End-of-selection
Apart from these there are other events like
a. Top-of-page
b. End-of-page
c. At user-command
d. At pfkey
e. At line selection.
This may help you...
Forum points appriciated
‎2006 Oct 04 9:15 AM
hi,
here is the output sequence of events in report.
1. Initialization:- event trigger at the time of execution of report( i.e.. report lode in memory)
2. Start-of-selection:- event trigger at first report display.
3. End-of-selection:-event trigger after completion on start-of-selection.
4. Top-of-page:- event trigger only if there is any write statement in report i.e. if there is a write statement in report other then Top-of-page block .
5.End-of-page:-event trigger only if u specify particular for this i.e. if u maintain like this
Report zreport line-count 3(15).
6 Selection-screen:- event trigger if there is any selection screen in report or any Parameter or Select-option statement used in report.
7.At selection Screen:- event trigger if we double click on any line which is display in basic report.This event use for interactive reporting.
8.At user-command:- event trigger if any event trigger in selection screen i.e. if there is any push btn or radio btn
then this event trigger in report.
‎2006 Oct 04 9:19 AM
i also want to add, if you have also written LOAD-OF-PROGRAM event. This is will be the first event which get executes.
‎2006 Oct 04 9:37 AM
hi,
if ur issue solved, kindly close the thread after marking all the helpful answers
rgds
anver
‎2006 Oct 04 10:02 AM
Hi,
report ztest line-size 190
line-count 25(3)
25(3)->after 22 lines end-of page is triggered
order of execution
initialization
at selection-screen output
at selection-screen on field
at selection-screen .
top-of-page.line count should be defined
start-of-selection
end of page.should be defined in line count
end-of-selection.
Regards
amole