SAP SELECT-OPTIONS SCREEN ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• MODIF ID SELECT-OPTIONS

SELECT-OPTIONS, screen_options
Short Reference

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

ABAP Addition
1 ... OBLIGATORY
2 ... NO-DISPLAY
3 ... VISIBLE LENGTH vlen
4 ... NO-EXTENSION
5 ... NO INTERVALS

What does it do?
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.



Latest notes:

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.
ABAP_HINT_END
• OBLIGATORY SELECT-OPTIONS

ABAP Addition

What does it do?
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 SELECT-OPTIONS

ABAP Addition

What does it do?
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.



Latest notes:

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.
ABAP_HINT_END
• VISIBLE LENGTH SELECT-OPTIONS

ABAP Addition

What does it do?
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.
• NO-EXTENSION SELECT-OPTIONS

ABAP Addition

What does it do?
If this addition is specified, the pushbutton for multiple selection is not created on the selection screen.



Latest notes:

The user cannot access the dialog box for multiple selection on the selection screen and therefore cannot process selection tables containing multiple lines.
ABAP_HINT_END
• NO INTERVALS SELECT-OPTIONS

ABAP Addition

What does it do?
This addition prevents the second input field from being generated on the selection screen.



Latest notes:

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.
ABAP_HINT_END



Example ABAP Coding

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

Return to menu