ABAP Keyword Documentation → ABAP - Reference → User Dialogs → Selection Screens → Create Selection Screens → SELECT-OPTIONS
SELECT-OPTIONS - screen_options
Other versions: 7.31 | 7.40 | 7.54
Syntax
... [OBLIGATORY|NO-DISPLAY]
[VISIBLE LENGTH vlen]
[NO-EXTENSION]
[NO INTERVALS]
[MODIF ID modid] ... .
Extras
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.
Addition 1
... OBLIGATORY
Effect
ExecuteBackExitCancel
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 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.
Addition 3
... 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.
Addition 4
... 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.
Addition 5
... 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.