Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

what is uses of end-of-selection?

Former Member
0 Kudos

what is uses of end-of-selection?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

8 REPLIES 8

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

former_member190178
Participant
0 Kudos

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=-

former_member188827
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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