SAP SELECT-OPTIONS - Reference ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for SELECT-OPTIONS

SELECT-OPTIONS

ABAP Reference
ABAP Code Snippet


ABAP 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}]].
ABAP Code Snippet

What does it do? Declares an internal selection table selcrit for a selection criterion and creates the corresponding input fields on the current selection screen.

ABAP Addition FOR {dobj|(name)}
Specifies the data type with a static reference to a data object dobj or defines the data type using c with a length of 45, and represents the input fields according to the type specified dynamically in name.
OBLIGATORY
Defines the first input field as an obligatory field.
NO-DISPLAY
No input fields are created on the selection screen.
VISIBLE LENGTH vlen
Sets the visible length of the input fields to vlen.
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 group modid.
DEFAULT val1 [TO val2] [OPTION opt] [SIGN sign]
Creates start values val1, val2, opt, and sign 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
Links the input fields with a search help search_help from the ABAP Dictionary.
MEMORY ID pid
Links the first input field with the SPA/GPA parameter pid in the SAP memory.
NO DATABASE SELECTION
After selection screen processing , the selection table is not sent to the logical database as a dynamic selection.
[HELP-REQUEST] [VALUE-REQUEST] [FOR {LOW|HIGH}]
Obsolete: enables self-defined field helps (in logical databases) and input helps for the first or second input field.

Return to menu