Skip to Content
avatar image
Former Member

END-OF-SELECTION event in ABAP

Hello Experts,

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

7 Answers

  • avatar image
    Former Member
    Nov 11, 2013 at 05:47 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 11, 2013 at 05:56 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 11, 2013 at 06:11 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 11, 2013 at 06:14 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 11, 2013 at 06:29 AM

    This message was moderated.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 11, 2013 at 07:50 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 11, 2013 at 10:40 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded