‎2007 Jul 17 2:26 PM
what is last event that will trigger in an report,is it end-of-selection or end-of-page
‎2007 Jul 17 2:30 PM
Hi,
<b>End of selection triggered at last.....</b>
<i>Some more info for ur help.......</i>
CLASSICAL REPORT
**************************
1.INITIALIZATION:
This event is used to initialize the values.
Example:
Data date1 like sy-datum.
date1 = sy-datum.
2.AT SELECTION-SCREEN.
When user enters the values in the fields of the selection screen and clicks on execution button, this even gets triggered.
3.AT SELECTION-SCREEN ON<field>
When you want to check for specific value of a field for example carrid should be in the range of 'LH' and 'SQ'.
Select-option carrid1 for sflight-carrid.
AT SELECTION-SCREEN.
if carrid1-low ne 'LH' and carrid1-high ne 'SQ'.
Error message
Endif.
4.START-OF-SELECTION.
This is the first event for your list. Once all the events are triggered for selection screen, the data is retrieved from the database.
5.TOP-OF-PAGE.
This event is triggered with first WRITE statement or whenever new page is triggered.
Example:
Write:/'Reliance Global Services'
Write:/10 'Carrid',20 'Connid', 30 'fldate'.
6.END-OF-PAGE.
This event is triggered when end of page is reached.
End-of-Page.
Write:/'Page number', sy-pageno.
2.INTERACTIVE REPORT:
*********************************
1.AT LINE-SELECTION EVENT:
This event will trigger when the user Double click the statement.
Example:
Start-of-selection.
Write:/'This is basic list'
At line selection
Write:/'This is first secondary list'
2.AT USER COMMAND.
When the user select menu item of presses any functional key the even that is triggered is AT USER-COMMAND.
<b>IF USEFULL REWARD</b>
regards....
Abhay Singh.
‎2007 Jul 17 2:28 PM
Hi,
It will be end-of-selection, this is an event that makes sense only for reports with Logical database assignment.
In normal reports this does not make sense. End-of-page is called at the end of each page of the list.
Regards,
Sesh
‎2007 Jul 17 2:29 PM
Hi,
end-of-selection
Reward points if helpful.
Regards.
Srikanta Gope
‎2007 Jul 17 2:29 PM
‎2007 Jul 17 2:30 PM
Hi,
The events as per their order of execution are:
Events are:
1. INITIALIZATION
2. AT SELECTION-SCREEN
3. AT SELECTION-SCREEN ON <field>
4. START-OF-SELECTION
5. TOP-OF-PAGE
6. TOP-OF-PAGE DURING LINE SELECTION
7. END-OF-PAGE
8. END-OF-SELECTION
9. AT USER-COMMAND
10. AT LINE-SELECTION
11. AT PF<NN>
12. GET
13. GET LATE.
14. AT User Command
Hope it is useful.
Thanks,
Sandeep.
‎2007 Jul 17 2:30 PM
Hi,
<b>End of selection triggered at last.....</b>
<i>Some more info for ur help.......</i>
CLASSICAL REPORT
**************************
1.INITIALIZATION:
This event is used to initialize the values.
Example:
Data date1 like sy-datum.
date1 = sy-datum.
2.AT SELECTION-SCREEN.
When user enters the values in the fields of the selection screen and clicks on execution button, this even gets triggered.
3.AT SELECTION-SCREEN ON<field>
When you want to check for specific value of a field for example carrid should be in the range of 'LH' and 'SQ'.
Select-option carrid1 for sflight-carrid.
AT SELECTION-SCREEN.
if carrid1-low ne 'LH' and carrid1-high ne 'SQ'.
Error message
Endif.
4.START-OF-SELECTION.
This is the first event for your list. Once all the events are triggered for selection screen, the data is retrieved from the database.
5.TOP-OF-PAGE.
This event is triggered with first WRITE statement or whenever new page is triggered.
Example:
Write:/'Reliance Global Services'
Write:/10 'Carrid',20 'Connid', 30 'fldate'.
6.END-OF-PAGE.
This event is triggered when end of page is reached.
End-of-Page.
Write:/'Page number', sy-pageno.
2.INTERACTIVE REPORT:
*********************************
1.AT LINE-SELECTION EVENT:
This event will trigger when the user Double click the statement.
Example:
Start-of-selection.
Write:/'This is basic list'
At line selection
Write:/'This is first secondary list'
2.AT USER COMMAND.
When the user select menu item of presses any functional key the even that is triggered is AT USER-COMMAND.
<b>IF USEFULL REWARD</b>
regards....
Abhay Singh.