ABAP Keyword Documentation → ABAP - Quick Reference
SELECT-OPTIONS - Quick reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
SELECT-OPTIONS selcrit FOR {dobj|(name)}
[OBLIGATORY|NO-DISPLAY]
[VISIBLE LENGTH vlen]
[NO-EXTENSION]
[NO INTERVALS]
[MODIF ID modid]
[DEFAULT val1 [TO val2] [OPTION opt] [SIGN sign]]
[LOWER CASE]
[MATCHCODE OBJECT search_help]
[MEMORY ID pid]
[NO DATABASE SELECTION]
[HELP-REQUEST
[FOR {LOW|HIGH}]]
[VALUE-REQUEST [FOR {LOW|HIGH}]].
Effect
Declares an internal selection table selcrit
for a
selection criterion and creates the corresponding input fields on the current
selection screen.
Additions
-
FOR {dobj|(name)}
Specifies the data type with a static reference to a data objectdobj
or defines the data type usingc
with a length of 45, and represents the input fields according to the type specified dynamically inname
. -
OBLIGATORY
Defines the first input field as a mandatory field. -
NO-DISPLAY
No input fields are created on the selection screen. -
VISIBLE LENGTH vlen
Sets the visible length of the input fields tovlen
. -
NO-EXTENSION
Prevents multiple selections. -
NO INTERVALS
Only the first input field on the selection screen is created. -
MODIF ID modid
Assigns the input fields to the modification groupmodid
. -
DEFAULT val1 [TO val2] [OPTION opt] [SIGN sign]
Creates start valuesval1
,val2
,opt
, andsign
for the first row of the selection table. -
LOWER CASE
Prevents the content of character-type data objects from being converted into uppercase when they are transferred between input fields and an internal table. -
MATCHCODE OBJECT search_help
Associates the input fields with a search helpsearch_help
from ABAP Dictionary. -
MEMORY ID pid
Associates the first input field with the SPA/GPA parameterpid
in the user memory. -
NO DATABASE SELECTION
Does not send the selection table to the logical database as a dynamic selection after selection screen processing. -
[HELP-REQUEST] [VALUE-REQUEST] [FOR {LOW|HIGH}]
Obsolete: Enables self-defined field helps and input helps in logical databases for the first or second input field.