forked from kkayacan/abap-reference
-
Notifications
You must be signed in to change notification settings - Fork 2
/
SELECT_OPTIONS_RESTRICT.abap
32 lines (29 loc) · 1.08 KB
/
SELECT_OPTIONS_RESTRICT.abap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
INITIALIZATION.
PERFORM initialization.
FORM initialization .
CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
EXPORTING
restriction = VALUE sscr_restrict(
opt_list_tab = VALUE #(
( name = 'EQ_LE_GE'
options = VALUE #(
eq = abap_true
le = abap_true
ge = abap_true ) ) )
ass_tab = VALUE #(
( kind = 'S'
name = 'S_SPMON'
sg_main = 'I'
sg_addy = ''
op_main = 'EQ_LE_GE' ) ) )
EXCEPTIONS
too_late = 1
repeated = 2
selopt_without_options = 3
selopt_without_signs = 4
invalid_sign = 5
empty_option_list = 6
invalid_kind = 7
repeated_kind_a = 8
OTHERS = 9.
ENDFORM.