-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathzcl_glds_demo_test_cfg.clas.abap
101 lines (74 loc) · 2.32 KB
/
zcl_glds_demo_test_cfg.clas.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
CLASS zcl_glds_demo_test_cfg DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_glds_demo_command_list .
INTERFACES zif_glds_demo_description .
INTERFACES zif_glds_demo_test_interface .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS ZCL_GLDS_DEMO_TEST_CFG IMPLEMENTATION.
METHOD zif_glds_demo_command_list~get_black_list.
"Blacklist
commands = VALUE #(
( `->` )
( `=>` ) ).
ENDMETHOD.
METHOD zif_glds_demo_command_list~get_white_list.
"Whitelist
commands = VALUE #(
( `FIELD-SYMBOLS` )
( `CHECK` )
( `EXIT` )
( `RETURN` )
( `DO` )
( `ENDDO` )
( `WHILE` )
( `ENDWHILE` )
( `CASE` )
( `WHEN` )
( `ENDCASE` )
( `IF` )
( `ELSEIF` )
( `ELSE` )
( `ENDIF` )
( `MOVE-CORRESPONDING` )
( `ASSIGN` )
( `UNASSIGN` )
( `CLEAR` )
( `FREE` )
( `FIND` )
( `REPLACE` )
( `APPEND` )
( `INSERT` )
( `MODIFY` )
( `DELETE` )
( `COLLECT` )
( `READ` )
( `LOOP` )
( `ENDLOOP` )
( `SORT` ) ).
ENDMETHOD.
METHOD zif_glds_demo_description~get.
CONCATENATE
`This is a challenge.`
`Try to find out what formula is used for computing the result.`
INTO text SEPARATED BY cl_abap_char_utilities=>cr_lf.
"Signature
DATA(signature_description) = zcl_glds_demo_helper=>get_signature_description( me ).
IF signature_description IS NOT INITIAL.
CONCATENATE
text cl_abap_char_utilities=>cr_lf
signature_description cl_abap_char_utilities=>cr_lf
INTO text.
ENDIF.
ENDMETHOD.
METHOD zif_glds_demo_test_interface~get_interface.
rv_interface = 'ZIF_GLDS_DEMO_TEST'.
ENDMETHOD.
METHOD zif_glds_demo_test_interface~get_template.
rv_template = 'ZGLDS_DEMO_TEST_TEMPLATE'.
ENDMETHOD.
ENDCLASS.