‎2010 Feb 02 4:02 AM
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
‎2010 Feb 02 4:50 AM
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.
‎2010 Feb 04 3:36 AM