ABAP - Keyword Documentation →  ABAP - Programming Language →  SAP GUI User Dialogs →  Selection Screens →  Selection Screens - Create →  SELECT-OPTIONS → 
Mail Feedback

SELECT-OPTIONS, screen_options

Short Reference

Syntax

... [OBLIGATORY|NO-DISPLAY]
    [VISIBLE LENGTH vlen]
    [NO-EXTENSION]
    [NO INTERVALS]
    [MODIF ID modid] ...

Additions:

1. ... OBLIGATORY

2. ... NO-DISPLAY

3. ... VISIBLE LENGTH vlen

4. ... NO-EXTENSION

5. ... NO INTERVALS

Effect

These additions can be used to declare the first input field as a mandatory field, hide the input field on the selection screen, and define the visible length of the field. The display of the second input field and the pushbutton for multiple selection can be prevented. The addition MODIF ID assigns all screen elements of the selection criterion to the modification group modid.

Hint

In addition to the additions already available, the function module SELECT_OPTIONS_RESTRICT can also be used to restrict the number of selection options offered and prohibit the value E for the column sign in the selection table before the selection screen is sent.

Addition 1  

... OBLIGATORY

Effect

This addition defines the first input field for the selection criterion on the selection screen as a mandatory field. If this field is blank, the user cannot exit the selection screen using the Execute function (F8) and can only use the Back, Exit, or Cancel functions.

Addition 2  

... NO-DISPLAY

Effect

Using this addition, no screen elements are created on the selection screen for the selection criterion. In an executable program, a selection criterion of this type is used exclusively as part of the interface defined by the selection screen. It can be supplied with a value by the calling program when it is called with SUBMIT.

If the addition NO-DISPLAY is specified, the low and high columns in the selection table can have any flat data types. Such selection tables can only be supplied with data using the addition WITH of the statement SUBMIT.

Hint

The length of the values passed to the columns low and high in the selection table, for which there is no input field, is not restricted to 45 characters, as is the case for selection criteria with input fields.

Addition 3  

... VISIBLE LENGTH vlen

Effect

This addition determines the visible length of the input field as vlen, where vlen must be specified directly as a positive number. If vlen is shorter than the length of columns low and high in the selection table and shorter than the maximum visible length, it is possible to scroll in the input field, which is displayed with the length of vlen. Otherwise, the addition is ignored.

Addition 4  

... NO-EXTENSION

Effect

If this addition is specified, the pushbutton for multiple selection is not created on the selection screen.

Hint

The user cannot access the dialog box for multiple selection on the selection screen and therefore cannot process selection tables containing multiple lines.

Addition 5  

... NO INTERVALS

Effect

This addition prevents the second input field from being generated on the selection screen.

Hint

The user can only enter a single comparison in the first line of the selection table on the selection screen. Intervals can still be selected in the dialog box for multiple selection.

Example

Declaration of a selection criterion for which a single comparison is possible on the selection screen, but multiple selection is not possible.

DATA spfli_wa TYPE spfli.

SELECT-OPTIONS s_carrid FOR spfli_wa-carrid NO-EXTENSION
                                            NO INTERVALS.