Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  SAP GUI User Dialogs →  Selection Screens →  Create Selection Screens →  SELECTION-SCREEN 

SELECTION-SCREEN INCLUDE

Quick Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax Forms


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].

Effect

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 included. 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 included must be arranged before the current selection screen.


Example

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. 

Continue

SELECTION-SCREEN INCLUDE PARAMETERS

SELECTION-SCREEN INCLUDE SELECT-OPTIONS

SELECTION-SCREEN INCLUDE COMMENT

SELECTION-SCREEN INCLUDE PUSHBUTTON

SELECTION-SCREEN INCLUDE BLOCKS