Application Development and Automation 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: 
Read only

OBJECT CREATION PROBLEM

Former Member
0 Likes
414

Hi gurus,

I want to know about, when we create object oops before that we have to define START_OF_SELECTION.

Why we are using this and what is the purpose.

REGARDS,

SKMOHANTY

2 REPLIES 2
Read only

Former Member
0 Likes
384

Hi Mohanty,

ABAP Programs are generally driven by events. The first event which comes is INITIALIZATION. It is the place where all the variables, structures and other data objects are initialized. However, this event is not a mandatory one.

The next very important event is the START-OF-SELECTION. There are couple of more events which comes before this event like AT SELECTION-SCREEN and AT SELECTION-SCREEN OUTPUT. In an ABAP report, non declarative statements (means other than data: or type Statements ) that are not assigned to a processing block are never executed. Only exception to this are the statements between the REPORT or PROGRAM statement and the first processing block (say a subroutine). These statements are assigned to the default event START-OF-SELECTION.

Have a look at the following link for a complete example of the difference.

http://www.sap-basis-abap.com/abap/when-start-of-selection-is-not-required.htm

For the Start of Selection Event :

http://help.sap.com/saphelp_nw04/helpdata/EN/9f/db9a9635c111d1829f0000e829fbfe/content.htm

Hope this helps.

Thanks,

Samantak.

Read only

Former Member
0 Likes
384

THANKS.