SAP SELECTION-SCREEN INCLUDE BLOCK ABAP Statements
Get Example source ABAP code based on a different SAP table
ABAP Code Snippet
ABAP Code Snippet
ABAP Code Snippet
ABAP Code Snippet
What does it do? The
The new block has exactly the same structure as the original block and contains the same screen elements. The properties of all the parameters, selection criteria, output fields, and pushbuttons in the new block are copied from the corresponding elements in the original block as if they ABAP Code Snippet statement.
If a block is copied within a block with a frame, the width of the original block is adjusted to fit the area within the frame. The original block cannot contain any elements outside this area.
The
ABAP Code Snippet once a block structure has been defined, the structure and the corresponding global variables can be used by multiple selection screens at the same time.
Example ABAP Coding
Reuses a block from the standard selection screen of an executable program in a separate selection screen with the number 500. SELECTION-SCREEN: BEGIN OF BLOCK block,
COMMENT /1(40) text,
ULINE.
PARAMETERS: p1(10) TYPE c,
p2(10) TYPE c,
p3(10) TYPE c.
SELECTION-SCREEN END OF BLOCK block.
SELECTION-SCREEN: BEGIN OF SCREEN 500 AS WINDOW,
ABAP Code Snippet
END OF SCREEN 500.
INITIALIZATION.
text = 'Standard Selection'.
START-OF-SELECTION.
...
CALL SELECTION-SCREEN '0500' STARTING AT 10 10.
Return to menu