@@ -13,28 +13,50 @@ INTERFACE zif_aff_aifp_v1
13
13
"! $values { @link zif_aff_aifp_v1.data:co_database_check_type }
14
14
"! $default { @link zif_aff_aifp_v1.data:co_database_check_type.check_existence }
15
15
ty_database_check_type TYPE c LENGTH 1 .
16
+ TYPES :
17
+ "! $values { @link zif_aff_aifp_v1.data:co_field_type }
18
+ "! $default { @link zif_aff_aifp_v1.data:co_field_type.pattern }
19
+ ty_field_type TYPE c LENGTH 7 .
20
+ TYPES :
21
+ "! $values { @link zif_aff_aifp_v1.data:co_variable_type }
22
+ "! $default { @link zif_aff_aifp_v1.data:co_variable_type.defined_field }
23
+ ty_variable_type TYPE c LENGTH 5 .
24
+ TYPES :
25
+ "! <p class="shorttext">Variable List</p>
26
+ "! Variable list
27
+ BEGIN OF ty_variable,
28
+ "! <p class="shorttext">Number</p>
29
+ "! Number
30
+ "! $minimum 1
31
+ "! $maximum 4
32
+ number TYPE i ,
33
+ "! <p class="shorttext">Type</p>
34
+ "! Type
35
+ type TYPE ty_variable_type,
36
+ "! <p class="shorttext">Field</p>
37
+ "! Field
38
+ field TYPE string ,
39
+ "! <p class="shorttext">Value</p>
40
+ "! Value
41
+ value TYPE string ,
42
+ END OF ty_variable.
43
+ TYPES :
44
+ "! <p class="shorttext">Variable Details</p>
45
+ "! Variable details
46
+ ty_variables TYPE STANDARD TABLE OF ty_variable WITH DEFAULT KEY .
16
47
TYPES :
17
48
"! <p class="shorttext">Check Message</p>
18
49
"! Check Message
19
50
BEGIN OF ty_message,
20
51
"! <p class="shorttext">Message Class</p>
21
52
"! Message class
22
- message_class TYPE c LENGTH 20 ,
53
+ message_class TYPE c LENGTH 20 ,
23
54
"! <p class="shorttext">Message Number</p>
24
55
"! Message number
25
- message_number TYPE c LENGTH 3 ,
26
- "! <p class="shorttext">Message Variable 1</p>
27
- "! Message variable 1
28
- message_variable_1 TYPE string ,
29
- "! <p class="shorttext">Message Variable 2</p>
30
- "! Message variable 2
31
- message_variable_2 TYPE string ,
32
- "! <p class="shorttext">Message Variable 3</p>
33
- "! Message variable 3
34
- message_variable_3 TYPE string ,
35
- "! <p class="shorttext">Message Variable 4</p>
36
- "! Message variable 4
37
- message_variable_4 TYPE string ,
56
+ message_number TYPE c LENGTH 3 ,
57
+ "! <p class="shorttext">Message Variable Assignments</p>
58
+ "! Message variable assignments
59
+ variable_assignments TYPE ty_variables,
38
60
END OF ty_message.
39
61
TYPES :
40
62
"! <p class="shorttext">Field Check</p>
@@ -46,9 +68,15 @@ INTERFACE zif_aff_aifp_v1
46
68
"! <p class="shorttext">Operator</p>
47
69
"! Operator for field check
48
70
operator TYPE zif_aff_types_v1=>ty_option,
49
- "! <p class="shorttext">Pattern</p>
50
- "! Pattern for Field Check
51
- pattern TYPE c LENGTH 60 ,
71
+ "! <p class="shorttext">Field Type</p>
72
+ "! Field type
73
+ field_type TYPE ty_field_type,
74
+ "! <p class="shorttext">Field</p>
75
+ "! Field
76
+ field TYPE c LENGTH 60 ,
77
+ "! <p class="shorttext">Value</p>
78
+ "! Value or pattern for Field Check
79
+ value TYPE c LENGTH 60 ,
52
80
END OF ty_field_check.
53
81
TYPES :
54
82
"! <p class="shorttext">Database Check</p>
@@ -69,9 +97,15 @@ INTERFACE zif_aff_aifp_v1
69
97
"! <p class="shorttext">Operator</p>
70
98
"! Operator for database check
71
99
operator TYPE zif_aff_types_v1=>ty_option,
72
- "! <p class="shorttext">Pattern</p>
73
- "! Pattern for database check
74
- pattern TYPE c LENGTH 60 ,
100
+ "! <p class="shorttext">Field Type</p>
101
+ "! Field type
102
+ field_type TYPE ty_field_type,
103
+ "! <p class="shorttext">Field</p>
104
+ "! Field
105
+ field TYPE c LENGTH 60 ,
106
+ "! <p class="shorttext">Value</p>
107
+ "! Value or pattern for database check
108
+ value TYPE c LENGTH 60 ,
75
109
END OF ty_database_check.
76
110
TYPES :
77
111
"! <p class="shorttext">Custom Implementation</p>
@@ -81,17 +115,19 @@ INTERFACE zif_aff_aifp_v1
81
115
"! Class name for check
82
116
class TYPE zif_aff_types_v1 =>ty_object_name_30 ,
83
117
END OF ty_custom_implementation .
118
+
84
119
TYPES :
85
- "! <p class="shorttext">Check Details </p>
86
- "! Check details
120
+ "! <p class="shorttext">Single Check </p>
121
+ "! Single check
87
122
BEGIN OF ty_single_check,
88
- "! <p class="shorttext">Number</p>
89
- "! Number
90
- "! $required
91
- number TYPE n LENGTH 3 ,
92
123
"! <p class="shorttext">Description</p>
93
124
"! Description
125
+ "! $required
94
126
description TYPE c LENGTH 120 ,
127
+ "! <p class="shorttext">ID</p>
128
+ "! ID
129
+ "! $required
130
+ id TYPE n LENGTH 3 ,
95
131
"! <p class="shorttext">Scenario</p>
96
132
"! Scenario
97
133
scenario TYPE ty_check_scenario,
@@ -130,22 +166,22 @@ INTERFACE zif_aff_aifp_v1
130
166
"! Check
131
167
BEGIN OF ty_main,
132
168
"! $required
133
- format_version TYPE zif_aff_types_v1=>ty_format_version,
169
+ format_version TYPE zif_aff_types_v1=>ty_format_version,
134
170
"! <p class="shorttext">Header</p>
135
171
"! Header
136
172
"! $required
137
- header TYPE zif_aff_types_v1=>ty_header_60_cloud,
173
+ header TYPE zif_aff_types_v1=>ty_header_60_cloud,
138
174
"! <p class="shorttext">General Information</p>
139
175
"! General information
140
176
"! $required
141
- general_information TYPE ty_general_information,
177
+ general_information TYPE ty_general_information,
142
178
"! <p class="shorttext">Error Message</p>
143
179
"! Error message
144
- error_message TYPE ty_message,
145
- "! <p class="shorttext">Check Assignments</p>
146
- "! Check assignments
180
+ error_message TYPE ty_message,
181
+ "! <p class="shorttext">Single Check Assignments</p>
182
+ "! Single check assignments
147
183
"! $required
148
- check_assignments TYPE ty_single_checks,
184
+ single_check_assignments TYPE ty_single_checks,
149
185
END OF ty_main.
150
186
151
187
CONSTANTS :
@@ -220,4 +256,34 @@ INTERFACE zif_aff_aifp_v1
220
256
"! Compare
221
257
compare TYPE ty_database_check_type VALUE '3' ,
222
258
END OF co_database_check_type.
259
+ CONSTANTS :
260
+ BEGIN OF co_field_type,
261
+ "! <p class="shorttext">Defined Field</p>
262
+ "! Defined field in the check assignment
263
+ defined_field TYPE ty_field_type VALUE 'DEF_FLD' ,
264
+ "! <p class="shorttext">Pattern</p>
265
+ "! Pattern
266
+ pattern TYPE ty_field_type VALUE 'STRING' ,
267
+ "! <p class="shorttext">System Field</p>
268
+ "! System field
269
+ system_field TYPE ty_field_type VALUE 'SYS_FLD' ,
270
+ END OF co_field_type.
271
+ CONSTANTS :
272
+ BEGIN OF co_variable_type,
273
+ * "! <p class="shorttext">Source Structure</p>
274
+ * "! Source structure
275
+ * source_structure TYPE ty_variable_type VALUE 'SRC_S',
276
+ * "! <p class="shorttext">Destination Structure</p>
277
+ * "! Destination structure
278
+ * destination_structure TYPE ty_variable_type VALUE 'DST_S',
279
+ "! <p class="shorttext">Constant</p>
280
+ "! Constant value
281
+ constant TYPE ty_variable_type VALUE 'CONST' ,
282
+ "! <p class="shorttext">System Field</p>
283
+ "! System field
284
+ system_field TYPE ty_variable_type VALUE 'SYSTF' ,
285
+ "! <p class="shorttext">Defined Field</p>
286
+ "! Defined field in the check assignment
287
+ defined_field TYPE ty_variable_type VALUE 'D_FLD' ,
288
+ END OF co_variable_type.
223
289
ENDINTERFACE .
0 commit comments