‎2007 Aug 14 9:04 AM
hi all
cud any1 please tell me why we are using
START-OF-SELECTION .
when we create class
means what event this trigers
please explain it in detrail
thanks in advance
anuj
‎2007 Aug 14 9:08 AM
Hello Anuj,
Its not the matter that START-OF-SELECTION in OOPS. In normal reports also we need to use it. Just go through bellow.
Basic form START-OF-SELECTION.
Effect Event keyword:
In an executable program, the corresponding event is processed
after the selection screen has been displayed and before data
is read using a logical database.
Note The REPORT statement always executes a START-OF-SELECTION
implcitly. Consequently all processing logic between the
REPORT statement and the next event keyword is automatically
processed in the START-OF-SELECTION event.
Immediately afterwards, the system processes the statements
that belong to an explicit START-OF-SELECTION block.
Reward If Helpful
Regards
--
Sasidhar Reddy Matli.
‎2007 Aug 14 9:09 AM
This event occurs after the selection screen has been processed and before data is read using the logical database. You can use it to prepare for reading data and creating the list by, for example, setting values for internal fields and writing introductory notes on the output list.
In an executable program, any non-declarative statements that occur between the REPORT or PROGRAM statement and the first processing block are also processed in the START-OF-SELECTION block. See also Defining Event Blocks.
The following program is connected to the logical database F1S.
REPORT EVENT_DEMO.
NODES SPFLI.
...
AT SELECTION-SCREEN.
...
START-OF-SELECTION.
WRITE: / 'List of Flights' COLOR COL_HEADING,
/ 'Created by', SY-USERID, 'on', SY-DATUM.
ULINE.
GET SPFLI.
default event is START-OF-SELECTION .
when do not specified in the program automatical trigger START-OF-SELECTION