Selection Screens

See also: Selection screens

Selection screens are automatically-generated screens whose construction you specify using the following ABAP statements: SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN.

Selection screens are a way of giving the user a standardized interface for entering the selection conditions (SELECT-OPTIONS) and program parameters (PARAMETERS). The SELECTION-SCREENstatemetn allows you to add additional objects to the screen, such as comments and pushbuttons, and to group objects together.

The system is responsible for transferring the values entered into the actual data objects. The program receives control of the screen processing at certain points AT SELECTION-SCREEN, so it can carry out checks, for example.

All of the selection screens for a program are generated by the system when the program itself is generated.

You can call selection screens in two ways:

  1. When you SUBMIT a report (type 1 program), or when you execute a report in Transaction SA38 or SE38, the 'standard selection screen 1000 appears. This screen only occurs in reports.

  2. You call all other selection screens using the CALL SELECTION-SCREEN statemtent or by specifying them as initial screens of transactions or dialog modules.

You define the two types as follows:

  1. All of the statements that do not come between SELECTION-SCREEN BEGIN OF SCREEN scrn and SELECTION-SCREEN END OF SCREEN scrn statements belong to the 'standard selection screen 1000. This is only allowed in reports.

  2. All of the statements that occur between SELECTION-SCREEN BEGIN OF SCREEN scrn and SELECTION-SCREEN END OF SCREEN scrn statements belong to selection screen number scrn. You can do this in any program as long as it is not type 'S' (subroutine pool).

Notes

  1. The 'standard selection screen' 1000 is made up not only of the statements in the program, but also of those in the database INCLUDE DBldbSEL of any associated logical database ldb.

  2. You can copy objects from a selection screen onto other selection screens using the SELECTION-SCREEN INCLUDE ... statement.

Help Documentation

Selection Screens