‎2008 May 21 5:57 AM
Hi all
Please tell me in the below code i mentioned which is the first event that gets triggered.I think its AT-SELECTION-SCREEn event.
REPORT ZPRE_5 .
tables:s026.
parameters:wrbtr1 type bseg-wrbtr.
at selection-screen .
if wrbtr1 is initial.
MESSAGE 'Please enter a value' TYPE 'E'.
endif.
START-OF-SELECTION.
Write:/ 'Hi1'.
Write:/ 'Hi2'.
END-OF-SELECTION.
With Regards
Vijay G
‎2008 May 21 5:58 AM
Hi,
It is At selection screen to be triggered first.
then START-OF-SELECTION
Event related to reports are not triggered based on any statements in ABAP.
The event are triggered depended on the way the output is generated .
for eg:
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 / <field> : 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.
Reward If Helpful,
Jagadish
‎2008 May 21 5:58 AM
Hi,
It is At selection screen to be triggered first.
then START-OF-SELECTION
Event related to reports are not triggered based on any statements in ABAP.
The event are triggered depended on the way the output is generated .
for eg:
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 / <field> : 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.
Reward If Helpful,
Jagadish
‎2008 May 21 6:00 AM
hi,
Yes it is at selection-screen event which triggers first ... which you can view debugging the report ...
Regards,
Santosh
‎2008 May 21 7:35 AM
ur answer is correct.
u just execute the report and put /h on command field in selection-screen give enter then execute there u can see which event is triggering first.
-Prabhu