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: 

END-OF-SELECTION event in ABAP

Former Member
0 Kudos

Hello Experts,

Can we write the logic part of the report in the END-OF-SELECTION event??

1 ACCEPTED SOLUTION

nabheetscn
Active Contributor
0 Kudos

Hi Sandeep

Just to give you a background why do we have start and end of selection. Earlier when STOP statment etc were allowed what we used to do was in start of selection at any point of time we think our data has been fetched and its a time to display it we will use STOP statement which will trigger the End of Selection. The end of selection use to contain the code where you write data on to the screen.

Now since these statement have been obsolete you can do at both places.

Please read documentation for more detail.

Nabheet

7 REPLIES 7

Former Member
0 Kudos

Hi Sandeep,

We can always write program logic in the END-OF-SELECTION event. Like the name says, it is used for processing the data that was selected/retrieved during START-OF-SELECTION event.

Regards,

~Athreya

nabheetscn
Active Contributor
0 Kudos

Hi Sandeep

Just to give you a background why do we have start and end of selection. Earlier when STOP statment etc were allowed what we used to do was in start of selection at any point of time we think our data has been fetched and its a time to display it we will use STOP statement which will trigger the End of Selection. The end of selection use to contain the code where you write data on to the screen.

Now since these statement have been obsolete you can do at both places.

Please read documentation for more detail.

Nabheet

Former Member
0 Kudos

code in the end-of-selection are processed when all the logical database records are read.

former_member289261
Active Contributor
0 Kudos

Yes you can write program logic in END-OF-SELECTION, but depending upon the situation that logic is not has to be incorporated in some other Event block

former_member209120
Active Contributor
0 Kudos

This message was moderated.

former_member209120
Active Contributor
0 Kudos

Hi  Sandeep Majumder

Can we write the logic part of the report in the END-OF-SELECTION event??

Yes... we write the logic part of the report in the END-OF-SELECTION event

Former Member
0 Kudos

Hi Sandeep,

END-OF-SELECTION is bascially we used in LDB to end GET statement.

In Normal Report it has not much significance.

Hope this helps.