ABAP - Keyword Documentation →  ABAP - Programming Language →  SAP GUI User Dialogs →  Selection Screens →  Selection Screens - Create →  SELECT-OPTIONS → 
Mail Feedback

SELECT-OPTIONS, value_options

Short Reference

Syntax

... [DEFAULT val1 [TO val2] [OPTION opt] [SIGN sgn]]
    [LOWER CASE]
    [MATCHCODE OBJECT search_help]
    [MEMORY ID pid] ...

Additions:

1. ... DEFAULT val1 [TO val2] [OPTION opt] [SIGN sgn]

2. ... LOWER CASE

3. ... MATCHCODE OBJECT search_help

4. ... MEMORY ID pid

Effect

These additions can be used to define a start value that allows lowercase letters or used to bind a search help or a SPA/GPA parameter.

Addition 1  

... DEFAULT val1 [TO val2] [OPTION opt] [SIGN sgn]

Effect

This addition defines start values for the columns in the first line of the selection table. Without the addition DEFAULT, type-dependent initial values are used as start values.

val1 and val2 are used to define start values for columns low and high. These start values can either be specified as literals or as previously defined data objects. If the data type of the specified start values does not match the data type of the columns, these are converted according to the conversion rules.

The addition OPTION is used to define the start value for the option column. If the addition TO is not specified, one of the expressions eq, ne, ge, gt, le, lt, cp, or np must be specified directly for opt. If the addition TO is specified, either bt or nb must be specified. If the addition OPTION is not used, the content of the option column is set to EQ or BT. If cp or np are specified, the start value in val1 must contain at least one of the wildcard characters * or + when data is passed to the selection table, otherwise the program terminates.

The addition SIGN is used to define the start value for the sign column. Either i or e must be specified directly for sgn. If the addition SIGN is not used, the content of column sign is set to I.

The times at which the start values are passed to the first line of the selection table are processed in the same way as with the addition DEFAULT to the PARAMETERS statement. If the selection table is not initial when the transfer takes place, the start values are not transferred to the first line. Only the header line in the selection table is filled with these values, which does not affect the selection criterion.

Hints



Addition 2  

... LOWER CASE

Effect

This addition prevents the content of character-like fields from being converted to uppercase letters when the data is transported from the input fields on the selection screen to the selection table.

Hint

If a selection criterion is connected to a DDIC domain, the conversion to upper case letters can also be prevented by the respective semantic property of the domain.

Addition 3  

... MATCHCODE OBJECT search_help

Effect

This addition associates the input fields for the selection criterion with a search help search_help from the ABAP Dictionary. The name of the search help must be specified directly. The addition has the same effect on the input fields as when it is used with a PARAMETERS statement for an input field for a selection parameter.

Addition 4  

... MEMORY ID pid

Effect

This addition associates the first input field with an SPA/GPA parameter in the user memory. The ID pid of the SPA/GPA parameter must be specified directly and can contain a maximum of 20 characters. The addition has the same effect on the first input field as when it is used with a PARAMETERS statement for an input field for a selection parameter.

If the specified ID pid is not in the DDIC database table TPARA, the extended program check reports an error.



Continue
Example Selection Screens - Default Values for Selection Criteria