Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  User Dialogs →  Selection Screens →  Create Selection Screens →  SELECTION-SCREEN →  SELECTION-SCREEN - BEGIN OF 

SELECTION-SCREEN - AS SUBSCREEN

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


SELECTION-SCREEN BEGIN OF SCREEN dynnr AS SUBSCREEN 
                                      [NO INTERVALS]
                                       [NESTING LEVEL n].
...
SELECTION-SCREEN END OF SCREEN dynnr.

Extras

1. ... NO INTERVALS
2. ... NESTING LEVEL n

Effect

These statements serve the same function as the statements for creating selection screens as normal screens, but here the selection screen is defined as a subscreen screen.

Like all subscreen screens, selection screens defined as subscreen screens can be included in other screens or selection screens, or in subscreen areas and page elements. However, they cannot be accessed with a CALL SELECTION-SCREEN statement. They can be integrated into selection screens using the addition TABBED BLOCK to the statement SELECTION-SCREEN. This addition enables an individual subscreen area to be defined without tab titles as a special case.

A selection screen defined as a subscreen must not contain any tabstrip areas defined with TABBED BLOCK.


Note

If selection screens defined as subscreens are included in screens, you should note that, as is the case with normal subscreen screens, the CALL SUBSCREEN statement in the dynpro flow logic must be executed at PBO and PAI so that the data is transported between the selection screen and the ABAP program. User actions on selection screens defined as subscreens trigger standard selection screen processing, even if they are included in screens.

Addition 1

... NO INTERVALS

Effect

If you specify NO INTERVALS, the addition of the same name is used implicitly in the SELECT-OPTIONS statement when defining all the selection criteria for this selection screen, and the subscreen is narrowed accordingly.

Addition 2

... NESTING LEVEL n

Effect

The NESTING LEVEL addition allows you to adjust the width of the subscreen if it is to be included in a tabstrip control in one or more frames. You must specify n directly as a number between 0 and 4. To ensure that the width is adjusted correctly, the number n must be the same as the number of frames that surround the tabstrip control. If the tabstrip control is not in a frame, you can specify a 0 with the addition or simply omit it.


Example

Define selection screens 100 and 200 as subscreen screens and include them in a tabstrip control on the standard selection screen in an executable program.

REPORT ... 
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN. 
PARAMETERS: p1 TYPE c LENGTH 10, 
            p2 TYPE c LENGTH 10, 
            p3 TYPE c LENGTH 10. 
SELECTION-SCREEN END OF SCREEN 100. 

SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN. 
PARAMETERS: q1 TYPE c LENGTH 10, 
            q2 TYPE c LENGTH 10, 
            q3 TYPE c LENGTH 10. 
SELECTION-SCREEN END OF SCREEN 200. 

SELECTION-SCREEN: BEGIN OF TABBED BLOCK mytab FOR 10 LINES, 
                  TAB (20) button1 USER-COMMAND push1 
                                  DEFAULT SCREEN 100, 
                  TAB (20) button2 USER-COMMAND push2 
                                  DEFAULT SCREEN 200, 
                  END OF BLOCK mytab. 

INITIALIZATION. 
  button1 = 'Selection Screen 1'. 
  button2 = 'Selection Screen 2'. 

Continue

Selection Screens as Subscreens

Selection Screens in Tabstrips