SELECTION-SCREEN INCLUDE
Short Reference
ABAP Syntax:
Include parameters
1 SELECTION-SCREEN INCLUDE PARAMETERS para
[OBLIGATORY [OFF]]
[MODIF ID modid]
[ID id].
Include selection criteria
2 SELECTION-SCREEN INCLUDE SELECT-OPTIONS selcrit
[OBLIGATORY [OFF]]
[NO INTERVALS [OFF]]
[MODIF ID modid]
[ID id].
Include output field
3 SELECTION-SCREEN INCLUDE COMMENT [/][pos](len) text
[FOR FIELD sel]
[MODIF ID modid]
[ID id].
Include pushbutton
4 SELECTION-SCREEN INCLUDE PUSHBUTTON [/][pos](len) button_text
[USER-COMMAND ucom]
[MODIF ID modid]
[ID id].
Include blocks
5 SELECTION-SCREEN INCLUDE BLOCKS block [ID id].
What does it do? These variants of the statement SELECTION-SCREEN
enable elements that have already been created in other
selection screens of the same
program to be included in a selection screen. Either parameters,
selection criteria, output fields, pushbuttons, or whole blocks can be
transferred. They can be included in all and from all selection screens
of the elements of the program. No elements can be included within the
same selection screen. An element cannot be used more than once in the
same selection screen. The definition of the selection screen from which
the elements are transferred must be arranged before the current
selection screen.
Example ABAP Coding Reusing a block of the
standard selection screen of an
executable program in a
standalone selection screen that has 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,
INCLUDE BLOCKS block,
END OF SCREEN 500.
INITIALIZATION.
text = 'Standard Selection'.
START-OF-SELECTION.
...
CALL SELECTION-SCREEN '0500' STARTING AT 10 10.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved