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: 

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

Former Member
0 Kudos

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

5 REPLIES 5

rosenberg_eitan
Active Contributor
0 Kudos

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.

paul_bakker2
Active Contributor
0 Kudos

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

0 Kudos

Hi bakker,

But the programme will no excute with out START-of-Selection event in OOABAP...

My qtn is why we should write the start-of-selection event in OOABAP programme?

0 Kudos

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( ).

/.

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

You can also create Transaction type: Object transaction.

I did not had the chance to check this .

Regards.