SAP START-OF-SELECTION ABAP Statements
Get Example source ABAP code based on a different SAP table
Standard SAP Help for START-OF-SELECTION
START-OF-SELECTION
• START-OF-SELECTION ABAP Statement
ABAP Syntax
What does it do? This event keyword defines the standard processing block of an executable program. The associated event is triggered by the
In an executable program, all statements that are not declarations and that are listed before the first explicit
Latest notes:If the program is associated with a
Example ABAP Coding
The following are three executable programs with exactly the same functions:
The first program contains an explicit event block
DATA text TYPE string.
START-OF-SELECTION.
text = `Hello World!`.
cl_demo_output=>display_data( text ).
In the second program, an assignment is inserted before the first processing block, which forms a second implicit event block
DATA text TYPE string.
text = `Hello World!`.
START-OF-SELECTION.
cl_demo_output=>display_data( text ).
In the third program, there is no explicit processing block. All statements implicitly form the event block
DATA text TYPE string.
text = `Hello World!`.
cl_demo_output=>display_data( text ).
The third program has exactly the same meaning as the first program. The second program, in contrast, would have the following form if expressed explicitly: REPORT test_start_of_selection.
DATA text TYPE string.
START-OF-SELECTION.
text = `Hello World!`.
START-OF-SELECTION.
cl_demo_output=>display_data( text ).
Return to menu