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

objected oriented

Former Member
0 Likes
296

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

2 REPLIES 2
Read only

Former Member
0 Likes
278

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.

Read only

Former Member
0 Likes
278

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