Skip to content

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

SELECTION-SCREEN - AS SUBSCREEN

Quick 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 have the same function as the statements for creating selection screens as regular dynpros, but here the selection screen is defined as a subscreen dynpro.

Like all subscreen dynpros, selection screens defined as subscreen dynpros can be included in other dynpros or selection screens, or in subscreen areas or tab pages. However, they cannot be called using CALL SELECTION-SCREEN. They can be integrated into selection screens using the addition TABBED BLOCK of the statement SELECTION-SCREEN. This addition enables an individual subscreen area to be defined without tab titles as a special tabstrip control.

A selection screen defined as a subscreen dynpro cannot contain any tabstrip controls defined using TABBED BLOCK.


Note

If selection screens defined as subscreens are included in dynpros, note that, as is the case with regular subscreen dynpros, the statement CALL SUBSCREEN 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 regular selection screen processing, even if they are included in dynpros.

Addition 1

... NO INTERVALS

Effect

If NO INTERVALS is specified, the addition of the same name (NO INTERVALS) is used implicitly in the statement SELECT-OPTIONS when defining all the selection criteria for this selection screen, and the subscreen is made narrower accordingly.

Addition 2

... NESTING LEVEL n

Effect

The addition NESTING LEVEL allows the width of the subscreen to be adjusted if it is included in one or more frames in a tabstrip control. n must be specified 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, the addition can be specified with the number 0 or omitted.


Example

Defines the selection screens 100 and 200 as subscreen dynpros and includes 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