SELECT-OPTIONS - screen_options

Syntax

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

Extras:

1. ... OBLIGATORY

2. ... NO-DISPLAY

3. ... VISIBLE LENGTH vlen

4. ... NO-EXTENSION

5. ... NO INTERVALS

6. ... MODIF ID modid

Effect

You can use these additions to declare the first input field as a required field, to suppress display on the selection screen, and to define the visible length. You can suppress display of the second input field and the pushbutton for multiple selection. All screen elements for the selection criterion can be assigned to a modification group.

Note

In addition to the additions available, you can use the function module SELECT_OPTIONS_RESTRICT to restrict the number of selection options available and prohibit the value "E" for 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 required field. If this field is blank, the user cannot exit display of the selection screen using the Execute function (F8), but only using the functions Back, Exit, or Cancel.

Addition 2

... NO-DISPLAY

Effect

If you specify 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. These selection tables can only be supplied with data with a WITH addition to the SUBMIT statement.

Note

The length of the values transferred to 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 defines a visible length of vlen for the input fields, 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, the input field is displayed at a length of vlen and the entry can be scrolled. Otherwise, the addition is ignored.

Addition 4

... NO-EXTENSION

Effect

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

Note

The user cannot access the dialog box for multiple selection on the selection screen, which means they cannot edit selection tables containing several lines.

Addition 5

... NO INTERVALS

Effect

If you specify this addition, the second input screen is not created on the selection screen.

Note

The user can only specify a single comparison in the first line in the selection table on the selection screen. The dialog box for multiple selections still allows interval selections.

Example

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

DATA spfli_wa TYPE spfli.

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

Addition 6

... MODIF ID modid

Effect

The addition MODIF ID assigns all the screen elements for the selection criterion to the modification group modid that is assigned to column group1 in the system table screen. This means they can be modified with a MODIFY SCREEN statement before the selection screen is displayed. You must specify the name of the modification group modid directly and it can only contain a maximum of three characters.

Note

The modification groups that are assigned to columns group2 and group3 in the system table screen are set by the system when a selection screen is generated and are described with the screen elements for a selection screen.