Skip to Content
avatar image
Former Member

Qtn:Why we have to write the start-of-selection event in object oriented programme?

Qtn:Why we have to write the start-of-selection event in object oriented programme?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Sep 13, 2014 at 06:22 PM

    Hi,

    See here http://help.sap.com/abapdocu_70/en/ABAPSTART-OF-SELECTION.htm

    "In the third program, there is no explicit processing block. All statements implicitly form the event block START-OF-SELECTION."

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 14, 2014 at 03:07 AM

    Hi,

    Start-of-selection is just one of the standard events in ABAP reports.

    A report can used object-oriented code (or not); this does not affect the use of start-of-selection..

    I'm curious - why do you ask?

    cheers

    Paul

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I believe your issue can be demonstrated using this snippet which does not compile without addition of start-of-selection.

      1. *----------------------------------------------------------------------*
      2. CLASS mainclass DEFINITION.
      3.   PUBLIC SECTION.
      4.     CLASS-METHODS main.
      5. ENDCLASS.                    "mainclass DEFINITION
      6. *----------------------------------------------------------------------*
      7. CLASS mainclass IMPLEMENTATION.
      8.   METHOD main.
      9.     WRITE 'hello'.
      10.   ENDMETHOD.                    "main
      11. ENDCLASS.                    "mainclass IMPLEMENTATION
      12. START-OF-SELECTION.
      13.   mainclass=>main( ).

      /.

  • Sep 14, 2014 at 04:41 AM

    Hi,

    You can also create Transaction type: Object transaction.

    I did not had the chance to check this .

    Regards.

    Add comment
    10|10000 characters needed characters exceeded