SAP START-OF-SELECTION ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID START-OF-SELECTION
• START-OF-SELECTION ABAP Statement

START-OF-SELECTION
Short Reference

ABAP_SYNTAX
START-OF-SELECTION.

What does it do?
This event keyword defines the standard processing block of an executable program. The associated event is raised by the ABAP runtime framework during the processing of an executable program after selection screen processing of any standard selection screen.
In an executable program, the following statements are assigned to an implicit START-OF-SELECTION event block, which is inserted before any explicit START-OF-SELECTION event block if one exists:
All statements that are not declaration and are listed before the first explicit processing block.
All functional statements of the program if it does not contain any explicit processing blocks,



Latest notes:

If the program is linked to a logical database, preparatory work can be performed in START-OF-SELECTION before the logical database reads data. If the program is not linked to a logical database, this event block represents a main program , so to speak, from which procedures or classic screens are called.
ABAP_HINT_END



Example ABAP Coding

The following program section shows the recommended use of START-OF-SELECTION in an executable program. A dedicated method is called instead of a function implementation.
ABEXA 00685
ABAP_EXAMPLE_END



Example ABAP Coding

The following three executable programs all have the same functionality:
The first program contains an explicit event block START-OF-SELECTION and shows the recommended arrangement.
ABEXA 00686
In the second program, there is an assignment before the first processing block, which constructs a second implicit event block START-OF-SELECTION before the explicit event block.
ABEXA 00687
In the third program, there is no explicit processing block. All statements implicitly construct the event block START-OF-SELECTION .
ABEXA 00688
The third program has the same meaning as the first program. The second program, however, would have the following form if expressed explicitly:
ABEXA 00689
ABAP_EXAMPLE_END

Return to menu