Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Start-of-selection

Hi Friends,

i have a doubt in Start-of-selection,

This Start-of-selection is default one , so if we dont write this statement what will happens?

and also i want to write all events except this Start-of-selection? in this situation what will happens?

Regards,

Pandu

Tags:
replied

Hi pandurangarao,

Start-of-selection is Usually Not Required

BUT

If the code is confusing, the system

won't be able to detect and give error

'STATEMENT IS NOT ACCESSIBLE'

At that time, we need to give START-OF-SELECTION.

Have a Look on the sequence

First event -

Initialization : triggered when the report is loaded in memory.

At selection-screen output : triggered when the selection screen is loaded in memory before being displayed.

At selection-screen : before leaving the selection screen.

start-of-selection : the first event for displaying the report.

This event keyword defines an event block whose event is triggered by the ABAP runtime environment

when calling the executable program selection screen processing of a selection screen.

In an executable program, all statements that are not declarations,

and are listed before the first explicit processing block, are assigned to this event block.

If the program does not contain an explicitly defined event block START-OF-SELECTION,

these statements form the complete event block START-OF-SELECTION.

If a program contains an explicitly defined event block START-OF-SELECTION,

these statements are added to the beginning of the event block.

If the program contains no explicitly defined event blocks,

these statements form the entire event block START-OF-SELECTION.

end-of-selection : after the start-of-selection is completed.

classiscal report events.

top-of-page : every time a new page is started in the list.

end-of-page : every time the list data reaches the footer region of the page.

interactive report events.

top of page during line selection : top of page event for secondary list.

at line-selection : evey time user dbl-clicks(F2) on the list data.

at pF<key> : function key from F5 to F12 to perform interactive action on the list.

at user-command

Also go through the following link:

http://help.sap.com/saphelp_47x200/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm

Hope this will help.

Regards,

Nitin.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question