Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/zif_aff_aifa_v1.intf.abap
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,13 @@ INTERFACE zif_aff_aifa_v1
BEGIN OF ty_field_to_check,
"! <p class="shorttext">Type</p>
"! Type
type TYPE ty_field_type,
"! <p class="shorttext">Name/Value</p>
"! Name/Value
name TYPE string,
type TYPE ty_field_type,
"! <p class="shorttext">Name</p>
"! Name
name TYPE string,
"! <p class="shorttext">Value</p>
"! Value
value TYPE string,
END OF ty_field_to_check,
"! <p class="shorttext">Fields To Check</p>
"! Fields to check
Expand Down
132 changes: 99 additions & 33 deletions src/zif_aff_aifp_v1.intf.abap
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,50 @@ INTERFACE zif_aff_aifp_v1
"! $values { @link zif_aff_aifp_v1.data:co_database_check_type }
"! $default { @link zif_aff_aifp_v1.data:co_database_check_type.check_existence }
ty_database_check_type TYPE c LENGTH 1.
TYPES:
"! $values { @link zif_aff_aifp_v1.data:co_field_type }
"! $default { @link zif_aff_aifp_v1.data:co_field_type.pattern }
ty_field_type TYPE c LENGTH 7.
TYPES:
"! $values { @link zif_aff_aifp_v1.data:co_variable_type }
"! $default { @link zif_aff_aifp_v1.data:co_variable_type.defined_field }
ty_variable_type TYPE c LENGTH 5.
TYPES:
"! <p class="shorttext">Variable List</p>
"! Variable list
BEGIN OF ty_variable,
"! <p class="shorttext">Number</p>
"! Number
"! $minimum 1
"! $maximum 4
number TYPE i,
"! <p class="shorttext">Type</p>
"! Type
type TYPE ty_variable_type,
"! <p class="shorttext">Field</p>
"! Field
field TYPE string,
"! <p class="shorttext">Value</p>
"! Value
value TYPE string,
END OF ty_variable.
TYPES:
"! <p class="shorttext">Variable Details</p>
"! Variable details
ty_variables TYPE STANDARD TABLE OF ty_variable WITH DEFAULT KEY.
TYPES:
"! <p class="shorttext">Check Message</p>
"! Check Message
BEGIN OF ty_message,
"! <p class="shorttext">Message Class</p>
"! Message class
message_class TYPE c LENGTH 20,
message_class TYPE c LENGTH 20,
"! <p class="shorttext">Message Number</p>
"! Message number
message_number TYPE c LENGTH 3,
"! <p class="shorttext">Message Variable 1</p>
"! Message variable 1
message_variable_1 TYPE string,
"! <p class="shorttext">Message Variable 2</p>
"! Message variable 2
message_variable_2 TYPE string,
"! <p class="shorttext">Message Variable 3</p>
"! Message variable 3
message_variable_3 TYPE string,
"! <p class="shorttext">Message Variable 4</p>
"! Message variable 4
message_variable_4 TYPE string,
message_number TYPE c LENGTH 3,
"! <p class="shorttext">Message Variable Assignments</p>
"! Message variable assignments
variable_assignments TYPE ty_variables,
END OF ty_message.
TYPES:
"! <p class="shorttext">Field Check</p>
Expand All @@ -46,9 +68,15 @@ INTERFACE zif_aff_aifp_v1
"! <p class="shorttext">Operator</p>
"! Operator for field check
operator TYPE zif_aff_types_v1=>ty_option,
"! <p class="shorttext">Pattern</p>
"! Pattern for Field Check
pattern TYPE c LENGTH 60,
"! <p class="shorttext">Field Type</p>
"! Field type
field_type TYPE ty_field_type,
"! <p class="shorttext">Field</p>
"! Field
field TYPE c LENGTH 60,
"! <p class="shorttext">Value</p>
"! Value or pattern for Field Check
value TYPE c LENGTH 60,
END OF ty_field_check.
TYPES:
"! <p class="shorttext">Database Check</p>
Expand All @@ -69,9 +97,15 @@ INTERFACE zif_aff_aifp_v1
"! <p class="shorttext">Operator</p>
"! Operator for database check
operator TYPE zif_aff_types_v1=>ty_option,
"! <p class="shorttext">Pattern</p>
"! Pattern for database check
pattern TYPE c LENGTH 60,
"! <p class="shorttext">Field Type</p>
"! Field type
field_type TYPE ty_field_type,
"! <p class="shorttext">Field</p>
"! Field
field TYPE c LENGTH 60,
"! <p class="shorttext">Value</p>
"! Value or pattern for database check
value TYPE c LENGTH 60,
END OF ty_database_check.
TYPES:
"! <p class="shorttext">Custom Implementation</p>
Expand All @@ -81,17 +115,19 @@ INTERFACE zif_aff_aifp_v1
"! Class name for check
class TYPE zif_aff_types_v1=>ty_object_name_30,
END OF ty_custom_implementation.

TYPES:
"! <p class="shorttext">Check Details</p>
"! Check details
"! <p class="shorttext">Single Check</p>
"! Single check
BEGIN OF ty_single_check,
"! <p class="shorttext">Number</p>
"! Number
"! $required
number TYPE n LENGTH 3,
"! <p class="shorttext">Description</p>
"! Description
"! $required
description TYPE c LENGTH 120,
"! <p class="shorttext">ID</p>
"! ID
"! $required
id TYPE n LENGTH 3,
"! <p class="shorttext">Scenario</p>
"! Scenario
scenario TYPE ty_check_scenario,
Expand Down Expand Up @@ -130,22 +166,22 @@ INTERFACE zif_aff_aifp_v1
"! Check
BEGIN OF ty_main,
"! $required
format_version TYPE zif_aff_types_v1=>ty_format_version,
format_version TYPE zif_aff_types_v1=>ty_format_version,
"! <p class="shorttext">Header</p>
"! Header
"! $required
header TYPE zif_aff_types_v1=>ty_header_60_cloud,
header TYPE zif_aff_types_v1=>ty_header_60_cloud,
"! <p class="shorttext">General Information</p>
"! General information
"! $required
general_information TYPE ty_general_information,
general_information TYPE ty_general_information,
"! <p class="shorttext">Error Message</p>
"! Error message
error_message TYPE ty_message,
"! <p class="shorttext">Check Assignments</p>
"! Check assignments
error_message TYPE ty_message,
"! <p class="shorttext">Single Check Assignments</p>
"! Single check assignments
"! $required
check_assignments TYPE ty_single_checks,
single_check_assignments TYPE ty_single_checks,
END OF ty_main.

CONSTANTS:
Expand Down Expand Up @@ -220,4 +256,34 @@ INTERFACE zif_aff_aifp_v1
"! Compare
compare TYPE ty_database_check_type VALUE '3',
END OF co_database_check_type.
CONSTANTS:
BEGIN OF co_field_type,
"! <p class="shorttext">Defined Field</p>
"! Defined field in the check assignment
defined_field TYPE ty_field_type VALUE 'DEF_FLD',
"! <p class="shorttext">Pattern</p>
"! Pattern
pattern TYPE ty_field_type VALUE 'STRING',
"! <p class="shorttext">System Field</p>
"! System field
system_field TYPE ty_field_type VALUE 'SYS_FLD',
END OF co_field_type.
CONSTANTS:
BEGIN OF co_variable_type,
* "! <p class="shorttext">Source Structure</p>
* "! Source structure
* source_structure TYPE ty_variable_type VALUE 'SRC_S',
* "! <p class="shorttext">Destination Structure</p>
* "! Destination structure
* destination_structure TYPE ty_variable_type VALUE 'DST_S',
"! <p class="shorttext">Constant</p>
"! Constant value
constant TYPE ty_variable_type VALUE 'CONST',
"! <p class="shorttext">System Field</p>
"! System field
system_field TYPE ty_variable_type VALUE 'SYSTF',
"! <p class="shorttext">Defined Field</p>
"! Defined field in the check assignment
defined_field TYPE ty_variable_type VALUE 'D_FLD',
END OF co_variable_type.
ENDINTERFACE.