11-15-2007 6:25 AM
11-15-2007 6:28 AM
Hi
<b>End-Of-Selection</b> is the last of the events called by the runtime environment to occur. It is triggered after all of the data has been read from the logical database, and before the list processor is started. You can use the corresponding event block to process and format all data that the program has stored in sequential datasets, such as internal tables or extracts, during the various GET events.
Thanks
Vijay
PLZ reward points if helpful
11-15-2007 6:28 AM
Hi
<b>End-Of-Selection</b> is the last of the events called by the runtime environment to occur. It is triggered after all of the data has been read from the logical database, and before the list processor is started. You can use the corresponding event block to process and format all data that the program has stored in sequential datasets, such as internal tables or extracts, during the various GET events.
Thanks
Vijay
PLZ reward points if helpful
11-15-2007 6:28 AM
We are suppose to use the END-OF-SELECTION to show the output and to do the process after all data selection from DB.
Regards,
Atish
11-15-2007 6:28 AM
11-15-2007 6:33 AM
Hi
<b>END-OF-PAGE</b> - In list processing when a page ends
u can find the action of event end-of-selection in case u are using logical database in ur program.
This is the last of the events called by the runtime environment to occur. It is triggered after all of the data has been read from the logical database, and before the list processor is started. You can use the corresponding event block to process and format the data that the program has stored in internal tables or extracts during the various GET events.
example:
REPORT EVENT_DEMO.
NODES SPFLI.
DATA: SPFLI_TAB TYPE SORTED TABLE OF SPFLI
WITH UNIQUE KEY CITYFROM CITYTO CARRID CONNID,
SPFLI_LINE TYPE SPFLI.
START-OF-SELECTION.
WRITE 'Demo program for END-OF-SELECTION'.
SKIP.
GET SPFLI FIELDS CARRID CONNID CITYFROM CITYTO.
MOVE-CORRESPONDING SPFLI TO SPFLI_LINE.
INSERT SPFLI_LINE INTO TABLE SPFLI_TAB.
END-OF-SELECTION.
LOOP AT SPFLI_TAB INTO SPFLI_LINE.
WRITE: / SPFLI_LINE-CITYFROM,
SPFLI_LINE-CITYTO,
SPFLI_LINE-CARRID,
SPFLI_LINE-CONNID.
ENDLOOP.
11-15-2007 6:52 AM
hi,
End-of-selection event are mostly used when we are writing HR-ABAP code. In the HR-ABAP code, data is retrived in the Start-of-selection event and Printing on the list and all will be done in End-of-selection event.
Hope this is helpful, Do reward.
11-15-2007 6:57 AM
Hi
"End of selection" is the last system event which is triggered just before the Basic list is generated. We can use this event just to clear our work areas or header lines or the internal tables through which we have selected the data to print on the basic list.
Feel free if you have any doubt.
-=Maddu=-
11-15-2007 7:02 AM
END-OF-SELECTION.
Effect
This statement defines an event block, whose event is raised by the ABAP-runtime environment during the calling of an executable program , if the logical database, with which the program is linked, has completely finished its work.
Note
In this event block, all data read by the logical data base , can be processed summarically. In an executable program without logical data base, there is no need to implement the event block END-OF-SELECTION.
Message was edited by:
user_15
11-15-2007 8:37 AM
In addition to others ... If you use any STOP statement in your report then you can find the use of end-of-selection event .
If you are using stop statement in any event(after selection-screen) it will directly process end-of-selection event by passing all other events.
just check this link
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9ae435c111d1829f0000e829fbfe/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9ae435c111d1829f0000e829fbfe/content.htm</a>
regards
shiba dutta