SELECT-OPTIONS in ABAP/4
SELECT-OPTIONS is a complex selection. If user want to input value of field more than one value, it is possible by using SELECT-OPTIONS.
Syntax
SELECT-OPTIONSFOR .
Example
SELECT-OPTIONS s_belnr FOR bkpf-belnr.
Structure of Selection
SELECT-OPTIONS have structures:
- SIGN Possoble value are I(Include) and E(Exclude).
- OPTION Possilble value are EQ(Equal), NE(Not Equal), GT(Greater Than),GE(Greater Tahn or Equal), LT(Less Than), LE(Less Than or Equal), CP(Contains Pattern), NP(Not Contains Pattern), BT(Between), NB(Not Between)
- LOW keep low value
- HIGH keep high value
Options
- DEFAULT low [TO high] [OPTION op] [SIGN s]
Example:
SELECT-OPTIONS s1 FOR bkpf-belnr
DEFAULT ’1000000000’
TO ’1200000000’
OPTION NB
SIGN I.
- MEMORY ID
Example:
SELECT-OPTIONS s1 FOR bkpf-belnr MEMORY ID pid.
- MATCHCODE OBJECT
Example:
SELECT-OPTIONS s1 FOR bkpf-belnr MATCHCODE OBJECT zsh_f4_belnr.
- MODIF ID
Example:
SELECT-OPTIONS s1 FOR bkpf-belnr MODIF ID gid.
- NO-DISPLAY
Example:
SELECT-OPTIONS s1 FOR bkpf-belnr NO-DISPLAY.
- LOWER CASE
Example:
SELECT-OPTIONS s1 FOR bkpf-belnr LOWER CASE.
- OBLIGATORY
Example:
SELECT-OPTIONS s1 FOR bkpf-belnr OBLIGATORY.
- NO-EXTENSION
Example:
SELECT-OPTIONS s1 FOR bkpf-belnr NO-EXTENSION.
- NO INTERVALS
Example:
SELECT-OPTIONS s1 FOR bkpf-belnr NO INTERVALS.
- NO DATABASE SELECTION
Example:
SELECT-OPTIONS s1 FOR bkpf-belnr NO DATABASE SELECTION.
- VISIBLE LENGTH
Example:
SELECT-OPTIONS s1 FOR bkpf-belnr VISIBLE LENGTH 5.
- thitima's blog
- 11328 reads
Post new comment