Entering content frame

START-OF-SELECTION Locate the document in its SAP Library structure

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 PROGRAMstatement and the first processing block are also processed in the START-OF-SELECTION block. See also Defining Event Blocks.

Example

The following executable program is connected to the logical database F1S.

REPORT demo_program_start_of_selectio.

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.

  ...

 

 

Leaving content frame