Select Statement
Select Statement
html
Select-Options is statement which is used to define two input fields so that users can
enter a range of values, Select-Options have below additional features.
When ever we declare Select-Options, an internal table will be created with the
following fields.
1. SIGN: This field contains I or E, where I stands for an inclusive (Include that
value) and E stands for exclusive (Exclude that values), default value is I.
2. OPTIONS: This field can accept values BT (Between), NB (Not Between), EQ
(Equal), NE(Not equal), GT(Greater than), LT(Less than) .
3. LOW: This field stores a low value of entering the range.
4. HIGH: This field stores a high value of entering the range.
Select-Options design
TABLES MARA. "SPECIFY TABLE FOR WHICH YOU ARE CREATING SELECT-OPTIONS
SELECT-OPTIONS S_MATNR FOR MARA-MATNR . "PRINT SELECT-OPTIONS ON SCREEN
The above statement prints a select-options with intervals and extension .
TABLES MARA. "SPECIFY TABLE FOR WHICH YOU ARE CREATING SELECT-OPTIONS
SELECT-OPTIONS S_MATNR FOR MARA-MATNR NO INTERVALS. "PRINT SELECT-OPTIONS
ON SCREEN
The above statement prints a select-options with no intervals.
TABLES MARA. "SPECIFY TABLE FOR WHICH YOU ARE CREATING SELECT-OPTIONS
SELECT-OPTIONS S_MATNR FOR MARA-MATNR NO-EXTENSIONS . "PRINT SELECT-
OPTIONS ON SCREEN
The above statement prints a select-options with out extension.
TABLES MARA. "SPECIFY TABLE FOR WHICH YOU ARE CREATING SELECT-OPTIONS
SELECT-OPTIONS S_MATNR FOR MARA-MATNR NO-EXTENSION NO INTERVALS. "PRINT
SELECT-OPTIONS ON SCREEN
The above statement prints a select-options with out intervals and with out extensions.