SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → User Dialogs → Selection Screens → Create Selection Screens → SELECT-OPTIONS →
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
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. You can suppress the second input field and the pushbutton
for multiple selection. The addition MODIF ID assigns all screen elements of the
selection criterion to the
modification group modid.
Note
As well as the additions already available, you can use the function module SELECT_OPTIONS_RESTRICT 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.
... 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.
... 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 using the WITH addition of the SUBMIT statement.
Note
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.
... VISIBLE LENGTH vlen
Effect
This addition defines the visible length of the input field as vlen, whereby
vlen is entered 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, you can scroll in the input field, which is displayed with the length of vlen. Otherwise, the addition is ignored.
... NO-EXTENSION
Effect
If you specify this addition, the pushbutton for multiple selection is not generated on the selection screen.
Note
The user cannot access the dialog box for multiple selection on the selection screen, which means that he or she cannot edit
selection tables containing multiple rows.
... NO INTERVALS
Effect
If you specify this addition, the second input field is not generated on the selection screen.
Note
The user can only specify a single comparison in the first row 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.