ABAP Keyword Documentation →  ABAP - Reference →  User Dialogs →  Selection Screens →  Create Selection Screens → 

SELECT-OPTIONS  Syntax Diagram

Short Reference


SELECT-OPTIONS selcrit FOR {dobj|(name)}
               [NO DATABASE SELECTION]


This declares a selection criterion selcrit for a data object dobj or a type specified in name. Selection criteria are components of a selection screen, to which are assigned a selection table in the ABAP program, as well as two input fields and a pushbutton for multiple selection.

The name of the selection criterion selcrit is limited to a maximum of 8 characters. This statement is allowed in the global declaration part of executable programs, function groups, and module pools. In function groups and module pools, the statement is only allowed within the definition of an independent selection screen. In executable programs, the statement is otherwise automatically assigned to the standard selection screen.

The statement SELECT-OPTIONS has the following effect:

  1. sign of type c and length 1. The content of sign determines for every row whether the result of the condition formulated in the column is included or excluded in the entire resulting set for all rows. Evaluable values are "I" for include and "E" for exclude.

  2. option of type c and length 2. option contains the selection option for the condition of the row in form of logical operators. Analyzable operators are "EQ", "NE", "GE", "GT", "LE", "LT", "CP", and "NP", if column high is initial, and "BT", "NB", if column high is not initial. For the options "CP" and "NP", the data type of the columns low and high must be c, and special rules apply for entries on the selection screen.

  3. low of the data type defined after FOR. This column is designated for the comparison value or the lower interval limitation.

  4. high of the data type defined after FOR. This column is designated for the upper interval limitation.


SELECT-OPTIONS - screen_options
SELECT-OPTIONS - value_options