From d7f3208e0e83b45e19162997ce40ea2622b6efd4 Mon Sep 17 00:00:00 2001 From: Nicole Goeddelmann Date: Tue, 15 Jul 2025 11:15:21 +0200 Subject: [PATCH 1/9] Inserting Field Type and Variable Type in AIFP --- file-formats/aifp/aifp-v1.json | 342 ++++++++++++++++-- .../examples/z_aff_example_aifp.aifp.json | 10 +- .../aifp/type/zif_aff_aifp_v1.intf.abap | 97 ++++- 3 files changed, 395 insertions(+), 54 deletions(-) diff --git a/file-formats/aifp/aifp-v1.json b/file-formats/aifp/aifp-v1.json index 069890e41..5aba8e240 100644 --- a/file-formats/aifp/aifp-v1.json +++ b/file-formats/aifp/aifp-v1.json @@ -95,24 +95,144 @@ "type": "string", "maxLength": 3 }, - "messageVariable1": { - "title": "Message Variable 1", - "description": "Message variable 1", + "variable1Type": { + "title": "Variable 1 Type", + "description": "Variable 1 type", + "type": "string", + "enum": [ + "sourceStructure", + "destinationStructure", + "constant", + "systemField", + "messageVariableA", + "messageVariableS" + ], + "enumTitles": [ + "Source Structure", + "Destination Structure", + "Constant", + "System Field", + "Message Variable (All)", + "Message Variable (Single)" + ], + "enumDescriptions": [ + "Field is in source structure", + "Field is in desctination structure", + "Field is constant value", + "Field is system field", + "Message variable (all)", + "Message variable (single)" + ], + "default": "sourceStructure" + }, + "variable1": { + "title": "Variable 1", + "description": "Variable 1", "type": "string" }, - "messageVariable2": { - "title": "Message Variable 2", - "description": "Message variable 2", + "variable2Type": { + "title": "Variable 2 Type", + "description": "Variable 2 type", + "type": "string", + "enum": [ + "sourceStructure", + "destinationStructure", + "constant", + "systemField", + "messageVariableA", + "messageVariableS" + ], + "enumTitles": [ + "Source Structure", + "Destination Structure", + "Constant", + "System Field", + "Message Variable (All)", + "Message Variable (Single)" + ], + "enumDescriptions": [ + "Field is in source structure", + "Field is in desctination structure", + "Field is constant value", + "Field is system field", + "Message variable (all)", + "Message variable (single)" + ], + "default": "sourceStructure" + }, + "variable2": { + "title": "Variable 2", + "description": "Variable 2", "type": "string" }, - "messageVariable3": { - "title": "Message Variable 3", - "description": "Message variable 3", + "variable3Type": { + "title": "Variable 3 Type", + "description": "Variable 3 type", + "type": "string", + "enum": [ + "sourceStructure", + "destinationStructure", + "constant", + "systemField", + "messageVariableA", + "messageVariableS" + ], + "enumTitles": [ + "Source Structure", + "Destination Structure", + "Constant", + "System Field", + "Message Variable (All)", + "Message Variable (Single)" + ], + "enumDescriptions": [ + "Field is in source structure", + "Field is in desctination structure", + "Field is constant value", + "Field is system field", + "Message variable (all)", + "Message variable (single)" + ], + "default": "sourceStructure" + }, + "variable3": { + "title": "Variable 3", + "description": "Variable 3", "type": "string" }, - "messageVariable4": { - "title": "Message Variable 4", - "description": "Message variable 4", + "variable4Type": { + "title": "Variable 4 Type", + "description": "Variable 4 type", + "type": "string", + "enum": [ + "sourceStructure", + "destinationStructure", + "constant", + "systemField", + "messageVariableA", + "messageVariableS" + ], + "enumTitles": [ + "Source Structure", + "Destination Structure", + "Constant", + "System Field", + "Message Variable (All)", + "Message Variable (Single)" + ], + "enumDescriptions": [ + "Field is in source structure", + "Field is in desctination structure", + "Field is constant value", + "Field is system field", + "Message variable (all)", + "Message variable (single)" + ], + "default": "sourceStructure" + }, + "variable4": { + "title": "Variable 4", + "description": "Variable 4", "type": "string" } }, @@ -265,9 +385,30 @@ ], "default": "equals" }, - "pattern": { - "title": "Pattern", - "description": "Pattern for Field Check", + "fieldType": { + "title": "Field Type", + "description": "Field type", + "type": "string", + "enum": [ + "definedFields", + "pattern", + "systemField" + ], + "enumTitles": [ + "Defined Fields", + "Pattern", + "System Field" + ], + "enumDescriptions": [ + "Defined field in the check assignment", + "Pattern", + "Field is system field" + ], + "default": "pattern" + }, + "value": { + "title": "Value", + "description": "Value or pattern for Field Check", "type": "string", "maxLength": 60 } @@ -360,9 +501,30 @@ ], "default": "equals" }, - "pattern": { - "title": "Pattern", - "description": "Pattern for database check", + "fieldType": { + "title": "Field Type", + "description": "Field type", + "type": "string", + "enum": [ + "definedFields", + "pattern", + "systemField" + ], + "enumTitles": [ + "Defined Fields", + "Pattern", + "System Field" + ], + "enumDescriptions": [ + "Defined field in the check assignment", + "Pattern", + "Field is system field" + ], + "default": "pattern" + }, + "value": { + "title": "Value", + "description": "Value or pattern for database check", "type": "string", "maxLength": 60 } @@ -400,24 +562,144 @@ "type": "string", "maxLength": 3 }, - "messageVariable1": { - "title": "Message Variable 1", - "description": "Message variable 1", + "variable1Type": { + "title": "Variable 1 Type", + "description": "Variable 1 type", + "type": "string", + "enum": [ + "sourceStructure", + "destinationStructure", + "constant", + "systemField", + "messageVariableA", + "messageVariableS" + ], + "enumTitles": [ + "Source Structure", + "Destination Structure", + "Constant", + "System Field", + "Message Variable (All)", + "Message Variable (Single)" + ], + "enumDescriptions": [ + "Field is in source structure", + "Field is in desctination structure", + "Field is constant value", + "Field is system field", + "Message variable (all)", + "Message variable (single)" + ], + "default": "sourceStructure" + }, + "variable1": { + "title": "Variable 1", + "description": "Variable 1", "type": "string" }, - "messageVariable2": { - "title": "Message Variable 2", - "description": "Message variable 2", + "variable2Type": { + "title": "Variable 2 Type", + "description": "Variable 2 type", + "type": "string", + "enum": [ + "sourceStructure", + "destinationStructure", + "constant", + "systemField", + "messageVariableA", + "messageVariableS" + ], + "enumTitles": [ + "Source Structure", + "Destination Structure", + "Constant", + "System Field", + "Message Variable (All)", + "Message Variable (Single)" + ], + "enumDescriptions": [ + "Field is in source structure", + "Field is in desctination structure", + "Field is constant value", + "Field is system field", + "Message variable (all)", + "Message variable (single)" + ], + "default": "sourceStructure" + }, + "variable2": { + "title": "Variable 2", + "description": "Variable 2", "type": "string" }, - "messageVariable3": { - "title": "Message Variable 3", - "description": "Message variable 3", + "variable3Type": { + "title": "Variable 3 Type", + "description": "Variable 3 type", + "type": "string", + "enum": [ + "sourceStructure", + "destinationStructure", + "constant", + "systemField", + "messageVariableA", + "messageVariableS" + ], + "enumTitles": [ + "Source Structure", + "Destination Structure", + "Constant", + "System Field", + "Message Variable (All)", + "Message Variable (Single)" + ], + "enumDescriptions": [ + "Field is in source structure", + "Field is in desctination structure", + "Field is constant value", + "Field is system field", + "Message variable (all)", + "Message variable (single)" + ], + "default": "sourceStructure" + }, + "variable3": { + "title": "Variable 3", + "description": "Variable 3", "type": "string" }, - "messageVariable4": { - "title": "Message Variable 4", - "description": "Message variable 4", + "variable4Type": { + "title": "Variable 4 Type", + "description": "Variable 4 type", + "type": "string", + "enum": [ + "sourceStructure", + "destinationStructure", + "constant", + "systemField", + "messageVariableA", + "messageVariableS" + ], + "enumTitles": [ + "Source Structure", + "Destination Structure", + "Constant", + "System Field", + "Message Variable (All)", + "Message Variable (Single)" + ], + "enumDescriptions": [ + "Field is in source structure", + "Field is in desctination structure", + "Field is constant value", + "Field is system field", + "Message variable (all)", + "Message variable (single)" + ], + "default": "sourceStructure" + }, + "variable4": { + "title": "Variable 4", + "description": "Variable 4", "type": "string" } }, diff --git a/file-formats/aifp/examples/z_aff_example_aifp.aifp.json b/file-formats/aifp/examples/z_aff_example_aifp.aifp.json index 11a3439ac..c648a93ce 100644 --- a/file-formats/aifp/examples/z_aff_example_aifp.aifp.json +++ b/file-formats/aifp/examples/z_aff_example_aifp.aifp.json @@ -15,14 +15,16 @@ "description": "Check Business Partner Exist", "scenario": "simpleFieldAndDbCheck", "fieldCheck": { - "checkType": "empty", - "operator": "equals" + "checkType": "empty" }, "databaseCheck": { "table": "BUP000", "whereCondition": "ID = '$1'", - "checkType": "checkExistence", - "operator": "equals" + "checkType": "compare", + "fieldName": "NAME", + "operator": "equals", + "fieldType": "definedFields", + "value": "2" } } ] diff --git a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap index 5fb6feca3..d8a353472 100644 --- a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap +++ b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap @@ -13,28 +13,46 @@ 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. + "! $values { @link zif_aff_aifp_v1.data:co_field_type } + "! $default { @link zif_aff_aifp_v1.data:co_field_type.pattern } + TYPES ty_field_type TYPE c LENGTH 7. + "! $values { @link zif_aff_aifp_v1.data:co_variable_type } + "! $default { @link zif_aff_aifp_v1.data:co_variable_type.source_structure } + TYPES ty_variable_type TYPE c LENGTH 5. TYPES: "!

Check Message

"! Check Message BEGIN OF ty_message, "!

Message Class

"! Message class - message_class TYPE c LENGTH 20, + message_class TYPE c LENGTH 20, "!

Message Number

"! Message number - message_number TYPE c LENGTH 3, - "!

Message Variable 1

- "! Message variable 1 - message_variable_1 TYPE string, - "!

Message Variable 2

- "! Message variable 2 - message_variable_2 TYPE string, - "!

Message Variable 3

- "! Message variable 3 - message_variable_3 TYPE string, - "!

Message Variable 4

- "! Message variable 4 - message_variable_4 TYPE string, + message_number TYPE c LENGTH 3, + "!

Variable 1 Type

+ "! Variable 1 type + variable_1_type TYPE ty_variable_type, + "!

Variable 1

+ "! Variable 1 + variable_1 TYPE string, + "!

Variable 2 Type

+ "! Variable 2 type + variable_2_type TYPE ty_variable_type, + "!

Variable 2

+ "! Variable 2 + variable_2 TYPE string, + "!

Variable 3 Type

+ "! Variable 3 type + variable_3_type TYPE ty_variable_type, + "!

Variable 3

+ "! Variable 3 + variable_3 TYPE string, + "!

Variable 4 Type

+ "! Variable 4 type + variable_4_type TYPE ty_variable_type, + "!

Variable 4

+ "! Variable 4 + variable_4 TYPE string, END OF ty_message. TYPES: "!

Field Check

@@ -46,9 +64,12 @@ INTERFACE zif_aff_aifp_v1 "!

Operator

"! Operator for field check operator TYPE zif_aff_types_v1=>ty_option, - "!

Pattern

- "! Pattern for Field Check - pattern TYPE c LENGTH 60, + "!

Field Type

+ "! Field type + field_type TYPE ty_field_type, + "!

Value

+ "! Value or pattern for Field Check + value TYPE c LENGTH 60, END OF ty_field_check. TYPES: "!

Database Check

@@ -69,9 +90,12 @@ INTERFACE zif_aff_aifp_v1 "!

Operator

"! Operator for database check operator TYPE zif_aff_types_v1=>ty_option, - "!

Pattern

- "! Pattern for database check - pattern TYPE c LENGTH 60, + "!

Field Type

+ "! Field type + field_type TYPE ty_field_type, + "!

Value

+ "! Value or pattern for database check + value TYPE c LENGTH 60, END OF ty_database_check. TYPES: "!

Custom Implementation

@@ -220,4 +244,37 @@ 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, + "!

Defined Fields

+ "! Defined field in the check assignment + defined_fields TYPE ty_field_type VALUE 'DEF_FLD', + "!

Pattern

+ "! Pattern + pattern TYPE ty_field_type VALUE 'STRING', + "!

System Field

+ "! Field is system field + system_field TYPE ty_field_type VALUE 'SYS_FLD', + END OF co_field_type. + CONSTANTS: + BEGIN OF co_variable_type, + "!

Source Structure

+ "! Field is in source structure + source_structure TYPE ty_variable_type VALUE 'SRC_S', + "!

Destination Structure

+ "! Field is in desctination structure + destination_structure TYPE ty_variable_type VALUE 'DST_S', + "!

Constant

+ "! Field is constant value + constant TYPE ty_variable_type VALUE 'CONST', + "!

System Field

+ "! Field is system field + system_field TYPE ty_variable_type VALUE 'SYSTF', + "!

Message Variable (All)

+ "! Message variable (all) + message_variable_a TYPE ty_variable_type VALUE 'MSGVA', + "!

Message Variable (Single)

+ "! Message variable (single) + message_variable_s TYPE ty_variable_type VALUE 'MSGVS', + END OF co_variable_type. ENDINTERFACE. From 2b0b589f9cdcb9460ab9c7dd94ef206e8c2ceddb Mon Sep 17 00:00:00 2001 From: Nicole Goeddelmann Date: Tue, 15 Jul 2025 11:22:51 +0200 Subject: [PATCH 2/9] Inserting Field Type and Variable Type in AIFP --- file-formats/aifp/type/zif_aff_aifp_v1.intf.abap | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap index d8a353472..8d6cbef93 100644 --- a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap +++ b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap @@ -31,28 +31,28 @@ INTERFACE zif_aff_aifp_v1 message_number TYPE c LENGTH 3, "!

Variable 1 Type

"! Variable 1 type - variable_1_type TYPE ty_variable_type, + variable_1_type TYPE ty_variable_type, "!

Variable 1

"! Variable 1 - variable_1 TYPE string, + variable_1 TYPE string, "!

Variable 2 Type

"! Variable 2 type - variable_2_type TYPE ty_variable_type, + variable_2_type TYPE ty_variable_type, "!

Variable 2

"! Variable 2 - variable_2 TYPE string, + variable_2 TYPE string, "!

Variable 3 Type

"! Variable 3 type - variable_3_type TYPE ty_variable_type, + variable_3_type TYPE ty_variable_type, "!

Variable 3

"! Variable 3 - variable_3 TYPE string, + variable_3 TYPE string, "!

Variable 4 Type

"! Variable 4 type - variable_4_type TYPE ty_variable_type, + variable_4_type TYPE ty_variable_type, "!

Variable 4

"! Variable 4 - variable_4 TYPE string, + variable_4 TYPE string, END OF ty_message. TYPES: "!

Field Check

From 487ea6c47227efd5f40d024f8e5fe506fc2bac67 Mon Sep 17 00:00:00 2001 From: Nicole Goeddelmann Date: Tue, 15 Jul 2025 11:37:48 +0200 Subject: [PATCH 3/9] Inserting Field Type and Variable Type in AIFP --- .../aifp/type/zif_aff_aifp_v1.intf.abap | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap index 8d6cbef93..9c5c1e70a 100644 --- a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap +++ b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap @@ -25,34 +25,34 @@ INTERFACE zif_aff_aifp_v1 BEGIN OF ty_message, "!

Message Class

"! Message class - message_class TYPE c LENGTH 20, + message_class TYPE c LENGTH 20, "!

Message Number

"! Message number - message_number TYPE c LENGTH 3, + message_number TYPE c LENGTH 3, "!

Variable 1 Type

"! Variable 1 type - variable_1_type TYPE ty_variable_type, + variable_1_type TYPE ty_variable_type, "!

Variable 1

"! Variable 1 - variable_1 TYPE string, + variable_1 TYPE string, "!

Variable 2 Type

"! Variable 2 type - variable_2_type TYPE ty_variable_type, + variable_2_type TYPE ty_variable_type, "!

Variable 2

"! Variable 2 - variable_2 TYPE string, + variable_2 TYPE string, "!

Variable 3 Type

"! Variable 3 type - variable_3_type TYPE ty_variable_type, + variable_3_type TYPE ty_variable_type, "!

Variable 3

"! Variable 3 - variable_3 TYPE string, + variable_3 TYPE string, "!

Variable 4 Type

"! Variable 4 type - variable_4_type TYPE ty_variable_type, + variable_4_type TYPE ty_variable_type, "!

Variable 4

"! Variable 4 - variable_4 TYPE string, + variable_4 TYPE string, END OF ty_message. TYPES: "!

Field Check

From acf9e25a509ac7523de95d7481e4679c30a933ad Mon Sep 17 00:00:00 2001 From: Nicole Goeddelmann Date: Thu, 21 Aug 2025 08:41:36 +0200 Subject: [PATCH 4/9] Inserting Field Type and Variable Type in AIFP --- file-formats/aifp/aifp-v1.json | 108 +++++++++--------- .../examples/z_aff_example_aifp.aifp.json | 2 +- .../aifp/type/zif_aff_aifp_v1.intf.abap | 30 ++--- 3 files changed, 70 insertions(+), 70 deletions(-) diff --git a/file-formats/aifp/aifp-v1.json b/file-formats/aifp/aifp-v1.json index 5aba8e240..a238c489d 100644 --- a/file-formats/aifp/aifp-v1.json +++ b/file-formats/aifp/aifp-v1.json @@ -104,8 +104,8 @@ "destinationStructure", "constant", "systemField", - "messageVariableA", - "messageVariableS" + "messageVariableAll", + "messageVariableSingle" ], "enumTitles": [ "Source Structure", @@ -116,10 +116,10 @@ "Message Variable (Single)" ], "enumDescriptions": [ - "Field is in source structure", - "Field is in desctination structure", - "Field is constant value", - "Field is system field", + "Source structure", + "Destination structure", + "Constant value", + "System field", "Message variable (all)", "Message variable (single)" ], @@ -139,8 +139,8 @@ "destinationStructure", "constant", "systemField", - "messageVariableA", - "messageVariableS" + "messageVariableAll", + "messageVariableSingle" ], "enumTitles": [ "Source Structure", @@ -151,10 +151,10 @@ "Message Variable (Single)" ], "enumDescriptions": [ - "Field is in source structure", - "Field is in desctination structure", - "Field is constant value", - "Field is system field", + "Source structure", + "Destination structure", + "Constant value", + "System field", "Message variable (all)", "Message variable (single)" ], @@ -174,8 +174,8 @@ "destinationStructure", "constant", "systemField", - "messageVariableA", - "messageVariableS" + "messageVariableAll", + "messageVariableSingle" ], "enumTitles": [ "Source Structure", @@ -186,10 +186,10 @@ "Message Variable (Single)" ], "enumDescriptions": [ - "Field is in source structure", - "Field is in desctination structure", - "Field is constant value", - "Field is system field", + "Source structure", + "Destination structure", + "Constant value", + "System field", "Message variable (all)", "Message variable (single)" ], @@ -209,8 +209,8 @@ "destinationStructure", "constant", "systemField", - "messageVariableA", - "messageVariableS" + "messageVariableAll", + "messageVariableSingle" ], "enumTitles": [ "Source Structure", @@ -221,10 +221,10 @@ "Message Variable (Single)" ], "enumDescriptions": [ - "Field is in source structure", - "Field is in desctination structure", - "Field is constant value", - "Field is system field", + "Source structure", + "Destination structure", + "Constant value", + "System field", "Message variable (all)", "Message variable (single)" ], @@ -390,19 +390,19 @@ "description": "Field type", "type": "string", "enum": [ - "definedFields", + "definedField", "pattern", "systemField" ], "enumTitles": [ - "Defined Fields", + "Defined Field", "Pattern", "System Field" ], "enumDescriptions": [ "Defined field in the check assignment", "Pattern", - "Field is system field" + "System field" ], "default": "pattern" }, @@ -506,19 +506,19 @@ "description": "Field type", "type": "string", "enum": [ - "definedFields", + "definedField", "pattern", "systemField" ], "enumTitles": [ - "Defined Fields", + "Defined Field", "Pattern", "System Field" ], "enumDescriptions": [ "Defined field in the check assignment", "Pattern", - "Field is system field" + "System field" ], "default": "pattern" }, @@ -571,8 +571,8 @@ "destinationStructure", "constant", "systemField", - "messageVariableA", - "messageVariableS" + "messageVariableAll", + "messageVariableSingle" ], "enumTitles": [ "Source Structure", @@ -583,10 +583,10 @@ "Message Variable (Single)" ], "enumDescriptions": [ - "Field is in source structure", - "Field is in desctination structure", - "Field is constant value", - "Field is system field", + "Source structure", + "Destination structure", + "Constant value", + "System field", "Message variable (all)", "Message variable (single)" ], @@ -606,8 +606,8 @@ "destinationStructure", "constant", "systemField", - "messageVariableA", - "messageVariableS" + "messageVariableAll", + "messageVariableSingle" ], "enumTitles": [ "Source Structure", @@ -618,10 +618,10 @@ "Message Variable (Single)" ], "enumDescriptions": [ - "Field is in source structure", - "Field is in desctination structure", - "Field is constant value", - "Field is system field", + "Source structure", + "Destination structure", + "Constant value", + "System field", "Message variable (all)", "Message variable (single)" ], @@ -641,8 +641,8 @@ "destinationStructure", "constant", "systemField", - "messageVariableA", - "messageVariableS" + "messageVariableAll", + "messageVariableSingle" ], "enumTitles": [ "Source Structure", @@ -653,10 +653,10 @@ "Message Variable (Single)" ], "enumDescriptions": [ - "Field is in source structure", - "Field is in desctination structure", - "Field is constant value", - "Field is system field", + "Source structure", + "Destination structure", + "Constant value", + "System field", "Message variable (all)", "Message variable (single)" ], @@ -676,8 +676,8 @@ "destinationStructure", "constant", "systemField", - "messageVariableA", - "messageVariableS" + "messageVariableAll", + "messageVariableSingle" ], "enumTitles": [ "Source Structure", @@ -688,10 +688,10 @@ "Message Variable (Single)" ], "enumDescriptions": [ - "Field is in source structure", - "Field is in desctination structure", - "Field is constant value", - "Field is system field", + "Source structure", + "Destination structure", + "Constant value", + "System field", "Message variable (all)", "Message variable (single)" ], diff --git a/file-formats/aifp/examples/z_aff_example_aifp.aifp.json b/file-formats/aifp/examples/z_aff_example_aifp.aifp.json index c648a93ce..89ffecdf4 100644 --- a/file-formats/aifp/examples/z_aff_example_aifp.aifp.json +++ b/file-formats/aifp/examples/z_aff_example_aifp.aifp.json @@ -23,7 +23,7 @@ "checkType": "compare", "fieldName": "NAME", "operator": "equals", - "fieldType": "definedFields", + "fieldType": "definedField", "value": "2" } } diff --git a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap index 9c5c1e70a..b2af91ae9 100644 --- a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap +++ b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap @@ -246,35 +246,35 @@ INTERFACE zif_aff_aifp_v1 END OF co_database_check_type. CONSTANTS: BEGIN OF co_field_type, - "!

Defined Fields

+ "!

Defined Field

"! Defined field in the check assignment - defined_fields TYPE ty_field_type VALUE 'DEF_FLD', + defined_field TYPE ty_field_type VALUE 'DEF_FLD', "!

Pattern

"! Pattern - pattern TYPE ty_field_type VALUE 'STRING', + pattern TYPE ty_field_type VALUE 'STRING', "!

System Field

- "! Field is system field - system_field TYPE ty_field_type VALUE 'SYS_FLD', + "! System field + system_field TYPE ty_field_type VALUE 'SYS_FLD', END OF co_field_type. CONSTANTS: BEGIN OF co_variable_type, "!

Source Structure

- "! Field is in source structure - source_structure TYPE ty_variable_type VALUE 'SRC_S', + "! Source structure + source_structure TYPE ty_variable_type VALUE 'SRC_S', "!

Destination Structure

- "! Field is in desctination structure - destination_structure TYPE ty_variable_type VALUE 'DST_S', + "! Destination structure + destination_structure TYPE ty_variable_type VALUE 'DST_S', "!

Constant

- "! Field is constant value - constant TYPE ty_variable_type VALUE 'CONST', + "! Constant value + constant TYPE ty_variable_type VALUE 'CONST', "!

System Field

- "! Field is system field - system_field TYPE ty_variable_type VALUE 'SYSTF', + "! System field + system_field TYPE ty_variable_type VALUE 'SYSTF', "!

Message Variable (All)

"! Message variable (all) - message_variable_a TYPE ty_variable_type VALUE 'MSGVA', + message_variable_all TYPE ty_variable_type VALUE 'MSGVA', "!

Message Variable (Single)

"! Message variable (single) - message_variable_s TYPE ty_variable_type VALUE 'MSGVS', + message_variable_single TYPE ty_variable_type VALUE 'MSGVS', END OF co_variable_type. ENDINTERFACE. From 788cf0131242db854a33afeaa1b8df602c3605fd Mon Sep 17 00:00:00 2001 From: Nicole Goeddelmann Date: Mon, 8 Sep 2025 11:54:40 +0200 Subject: [PATCH 5/9] Adjust AFF for AIFP --- file-formats/aifp/aifp-v1.json | 437 ++++++------------ .../examples/z_aff_example_aifp.aifp.json | 19 +- .../aifp/type/zif_aff_aifp_v1.intf.abap | 106 +++-- 3 files changed, 219 insertions(+), 343 deletions(-) diff --git a/file-formats/aifp/aifp-v1.json b/file-formats/aifp/aifp-v1.json index a238c489d..e18e497ab 100644 --- a/file-formats/aifp/aifp-v1.json +++ b/file-formats/aifp/aifp-v1.json @@ -95,171 +95,91 @@ "type": "string", "maxLength": 3 }, - "variable1Type": { - "title": "Variable 1 Type", - "description": "Variable 1 type", - "type": "string", - "enum": [ - "sourceStructure", - "destinationStructure", - "constant", - "systemField", - "messageVariableAll", - "messageVariableSingle" - ], - "enumTitles": [ - "Source Structure", - "Destination Structure", - "Constant", - "System Field", - "Message Variable (All)", - "Message Variable (Single)" - ], - "enumDescriptions": [ - "Source structure", - "Destination structure", - "Constant value", - "System field", - "Message variable (all)", - "Message variable (single)" - ], - "default": "sourceStructure" - }, - "variable1": { - "title": "Variable 1", - "description": "Variable 1", - "type": "string" - }, - "variable2Type": { - "title": "Variable 2 Type", - "description": "Variable 2 type", - "type": "string", - "enum": [ - "sourceStructure", - "destinationStructure", - "constant", - "systemField", - "messageVariableAll", - "messageVariableSingle" - ], - "enumTitles": [ - "Source Structure", - "Destination Structure", - "Constant", - "System Field", - "Message Variable (All)", - "Message Variable (Single)" - ], - "enumDescriptions": [ - "Source structure", - "Destination structure", - "Constant value", - "System field", - "Message variable (all)", - "Message variable (single)" - ], - "default": "sourceStructure" - }, - "variable2": { - "title": "Variable 2", - "description": "Variable 2", - "type": "string" - }, - "variable3Type": { - "title": "Variable 3 Type", - "description": "Variable 3 type", - "type": "string", - "enum": [ - "sourceStructure", - "destinationStructure", - "constant", - "systemField", - "messageVariableAll", - "messageVariableSingle" - ], - "enumTitles": [ - "Source Structure", - "Destination Structure", - "Constant", - "System Field", - "Message Variable (All)", - "Message Variable (Single)" - ], - "enumDescriptions": [ - "Source structure", - "Destination structure", - "Constant value", - "System field", - "Message variable (all)", - "Message variable (single)" - ], - "default": "sourceStructure" - }, - "variable3": { - "title": "Variable 3", - "description": "Variable 3", - "type": "string" - }, - "variable4Type": { - "title": "Variable 4 Type", - "description": "Variable 4 type", - "type": "string", - "enum": [ - "sourceStructure", - "destinationStructure", - "constant", - "systemField", - "messageVariableAll", - "messageVariableSingle" - ], - "enumTitles": [ - "Source Structure", - "Destination Structure", - "Constant", - "System Field", - "Message Variable (All)", - "Message Variable (Single)" - ], - "enumDescriptions": [ - "Source structure", - "Destination structure", - "Constant value", - "System field", - "Message variable (all)", - "Message variable (single)" - ], - "default": "sourceStructure" - }, - "variable4": { - "title": "Variable 4", - "description": "Variable 4", - "type": "string" + "variableAssignments": { + "title": "Message Variable Assignments", + "description": "Message variable assignments", + "type": "array", + "items": { + "title": "Variable List", + "description": "Variable list", + "type": "object", + "properties": { + "number": { + "title": "Number", + "description": "Number", + "type": "integer", + "minimum": 1, + "maximum": 4 + }, + "type": { + "title": "Type", + "description": "Type", + "type": "string", + "enum": [ + "sourceStructure", + "destinationStructure", + "constant", + "systemField", + "messageVariableAll", + "messageVariableSingle" + ], + "enumTitles": [ + "Source Structure", + "Destination Structure", + "Constant", + "System Field", + "Message Variable (All)", + "Message Variable (Single)" + ], + "enumDescriptions": [ + "Source structure", + "Destination structure", + "Constant value", + "System field", + "Message variable (all)", + "Message variable (single)" + ], + "default": "sourceStructure" + }, + "path": { + "title": "Path", + "description": "path", + "type": "string" + }, + "value": { + "title": "Value", + "description": "Value", + "type": "string" + } + }, + "additionalProperties": false + } } }, "additionalProperties": false }, - "checkAssignments": { - "title": "Check Assignments", - "description": "Check assignments", + "singleCheckAssignments": { + "title": "Single Check Assignments", + "description": "Single check assignments", "type": "array", "items": { - "title": "Check Details", - "description": "Check details", + "title": "Single Check", + "description": "Single check", "type": "object", "properties": { - "number": { - "title": "Number", - "description": "Number", - "type": "string", - "maxLength": 3, - "pattern": "^[0-9]+$" - }, "description": { "title": "Description", "description": "Description", "type": "string", "maxLength": 120 }, + "id": { + "title": "ID", + "description": "ID", + "type": "string", + "maxLength": 3, + "pattern": "^[0-9]+$" + }, "scenario": { "title": "Scenario", "description": "Scenario", @@ -406,6 +326,12 @@ ], "default": "pattern" }, + "field": { + "title": "Field", + "description": "Field", + "type": "string", + "maxLength": 60 + }, "value": { "title": "Value", "description": "Value or pattern for Field Check", @@ -522,6 +448,12 @@ ], "default": "pattern" }, + "field": { + "title": "Field", + "description": "Field", + "type": "string", + "maxLength": 60 + }, "value": { "title": "Value", "description": "Value or pattern for database check", @@ -562,145 +494,65 @@ "type": "string", "maxLength": 3 }, - "variable1Type": { - "title": "Variable 1 Type", - "description": "Variable 1 type", - "type": "string", - "enum": [ - "sourceStructure", - "destinationStructure", - "constant", - "systemField", - "messageVariableAll", - "messageVariableSingle" - ], - "enumTitles": [ - "Source Structure", - "Destination Structure", - "Constant", - "System Field", - "Message Variable (All)", - "Message Variable (Single)" - ], - "enumDescriptions": [ - "Source structure", - "Destination structure", - "Constant value", - "System field", - "Message variable (all)", - "Message variable (single)" - ], - "default": "sourceStructure" - }, - "variable1": { - "title": "Variable 1", - "description": "Variable 1", - "type": "string" - }, - "variable2Type": { - "title": "Variable 2 Type", - "description": "Variable 2 type", - "type": "string", - "enum": [ - "sourceStructure", - "destinationStructure", - "constant", - "systemField", - "messageVariableAll", - "messageVariableSingle" - ], - "enumTitles": [ - "Source Structure", - "Destination Structure", - "Constant", - "System Field", - "Message Variable (All)", - "Message Variable (Single)" - ], - "enumDescriptions": [ - "Source structure", - "Destination structure", - "Constant value", - "System field", - "Message variable (all)", - "Message variable (single)" - ], - "default": "sourceStructure" - }, - "variable2": { - "title": "Variable 2", - "description": "Variable 2", - "type": "string" - }, - "variable3Type": { - "title": "Variable 3 Type", - "description": "Variable 3 type", - "type": "string", - "enum": [ - "sourceStructure", - "destinationStructure", - "constant", - "systemField", - "messageVariableAll", - "messageVariableSingle" - ], - "enumTitles": [ - "Source Structure", - "Destination Structure", - "Constant", - "System Field", - "Message Variable (All)", - "Message Variable (Single)" - ], - "enumDescriptions": [ - "Source structure", - "Destination structure", - "Constant value", - "System field", - "Message variable (all)", - "Message variable (single)" - ], - "default": "sourceStructure" - }, - "variable3": { - "title": "Variable 3", - "description": "Variable 3", - "type": "string" - }, - "variable4Type": { - "title": "Variable 4 Type", - "description": "Variable 4 type", - "type": "string", - "enum": [ - "sourceStructure", - "destinationStructure", - "constant", - "systemField", - "messageVariableAll", - "messageVariableSingle" - ], - "enumTitles": [ - "Source Structure", - "Destination Structure", - "Constant", - "System Field", - "Message Variable (All)", - "Message Variable (Single)" - ], - "enumDescriptions": [ - "Source structure", - "Destination structure", - "Constant value", - "System field", - "Message variable (all)", - "Message variable (single)" - ], - "default": "sourceStructure" - }, - "variable4": { - "title": "Variable 4", - "description": "Variable 4", - "type": "string" + "variableAssignments": { + "title": "Message Variable Assignments", + "description": "Message variable assignments", + "type": "array", + "items": { + "title": "Variable List", + "description": "Variable list", + "type": "object", + "properties": { + "number": { + "title": "Number", + "description": "Number", + "type": "integer", + "minimum": 1, + "maximum": 4 + }, + "type": { + "title": "Type", + "description": "Type", + "type": "string", + "enum": [ + "sourceStructure", + "destinationStructure", + "constant", + "systemField", + "messageVariableAll", + "messageVariableSingle" + ], + "enumTitles": [ + "Source Structure", + "Destination Structure", + "Constant", + "System Field", + "Message Variable (All)", + "Message Variable (Single)" + ], + "enumDescriptions": [ + "Source structure", + "Destination structure", + "Constant value", + "System field", + "Message variable (all)", + "Message variable (single)" + ], + "default": "sourceStructure" + }, + "path": { + "title": "Path", + "description": "path", + "type": "string" + }, + "value": { + "title": "Value", + "description": "Value", + "type": "string" + } + }, + "additionalProperties": false + } } }, "additionalProperties": false @@ -708,7 +560,8 @@ }, "additionalProperties": false, "required": [ - "number" + "description", + "id" ] } } @@ -718,6 +571,6 @@ "formatVersion", "header", "generalInformation", - "checkAssignments" + "singleCheckAssignments" ] } diff --git a/file-formats/aifp/examples/z_aff_example_aifp.aifp.json b/file-formats/aifp/examples/z_aff_example_aifp.aifp.json index 89ffecdf4..3ecc665f0 100644 --- a/file-formats/aifp/examples/z_aff_example_aifp.aifp.json +++ b/file-formats/aifp/examples/z_aff_example_aifp.aifp.json @@ -3,16 +3,27 @@ "header": { "description": "Example AIFP for ABAP File Format", "originalLanguage": "en", - "abapLanguageVersion": "cloudDevelopment" + "abapLanguageVersion": "standard" }, "generalInformation": { - "namespace": "AIFNS", + "namespace": "ZAIFNS", "aifCheck": "BP_EXIST" }, - "checkAssignments": [ + "errorMessage": { + "messageClass": "/AIF/CREATE_CUST", + "messageNumber": "001", + "variableAssignments": [ + { + "number": 1, + "type": "sourceStructure", + "path": "BP_ID" + } + ] + }, + "singleCheckAssignments": [ { - "number": "10", "description": "Check Business Partner Exist", + "id": "10", "scenario": "simpleFieldAndDbCheck", "fieldCheck": { "checkType": "empty" diff --git a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap index b2af91ae9..f53cf67cb 100644 --- a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap +++ b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap @@ -1,58 +1,62 @@ INTERFACE zif_aff_aifp_v1 - PUBLIC. + PUBLIC . TYPES: "! $values { @link zif_aff_aifp_v1.data:co_check_scenario } "! $default { @link zif_aff_aifp_v1.data:co_check_scenario.simple_field_check } - ty_check_scenario TYPE c LENGTH 10. + ty_check_scenario TYPE c LENGTH 10 . TYPES: "! $values { @link zif_aff_aifp_v1.data:co_simple_check_type } "! $default { @link zif_aff_aifp_v1.data:co_simple_check_type.empty } - ty_simple_check_type TYPE c LENGTH 1. + ty_simple_check_type TYPE c LENGTH 1 . TYPES: "! $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. + 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 } - TYPES ty_field_type TYPE c LENGTH 7. + 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.source_structure } - TYPES ty_variable_type TYPE c LENGTH 5. + ty_variable_type TYPE c LENGTH 5 . + TYPES: + "!

Variable List

+ "! Variable list + BEGIN OF ty_variable, + "!

Number

+ "! Number + "! $minimum 1 + "! $maximum 4 + number TYPE i, + "!

Type

+ "! Type + type TYPE ty_variable_type, + "!

Path

+ "! path + path TYPE string, + "!

Value

+ "! Value + value TYPE string, + END OF ty_variable. + TYPES: + "!

Variable Details

+ "! Variable details + ty_variables TYPE STANDARD TABLE OF ty_variable WITH DEFAULT KEY . TYPES: "!

Check Message

"! Check Message BEGIN OF ty_message, "!

Message Class

"! Message class - message_class TYPE c LENGTH 20, + message_class TYPE c LENGTH 20, "!

Message Number

"! Message number - message_number TYPE c LENGTH 3, - "!

Variable 1 Type

- "! Variable 1 type - variable_1_type TYPE ty_variable_type, - "!

Variable 1

- "! Variable 1 - variable_1 TYPE string, - "!

Variable 2 Type

- "! Variable 2 type - variable_2_type TYPE ty_variable_type, - "!

Variable 2

- "! Variable 2 - variable_2 TYPE string, - "!

Variable 3 Type

- "! Variable 3 type - variable_3_type TYPE ty_variable_type, - "!

Variable 3

- "! Variable 3 - variable_3 TYPE string, - "!

Variable 4 Type

- "! Variable 4 type - variable_4_type TYPE ty_variable_type, - "!

Variable 4

- "! Variable 4 - variable_4 TYPE string, + message_number TYPE c LENGTH 3, + "!

Message Variable Assignments

+ "! Message variable assignments + variable_assignments TYPE ty_variables, END OF ty_message. TYPES: "!

Field Check

@@ -67,6 +71,9 @@ INTERFACE zif_aff_aifp_v1 "!

Field Type

"! Field type field_type TYPE ty_field_type, + "!

Field

+ "! Field + field TYPE c LENGTH 60, "!

Value

"! Value or pattern for Field Check value TYPE c LENGTH 60, @@ -93,6 +100,9 @@ INTERFACE zif_aff_aifp_v1 "!

Field Type

"! Field type field_type TYPE ty_field_type, + "!

Field

+ "! Field + field TYPE c LENGTH 60, "!

Value

"! Value or pattern for database check value TYPE c LENGTH 60, @@ -105,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: - "!

Check Details

- "! Check details + "!

Single Check

+ "! Single check BEGIN OF ty_single_check, - "!

Number

- "! Number - "! $required - number TYPE n LENGTH 3, "!

Description

"! Description + "! $required description TYPE c LENGTH 120, + "!

ID

+ "! ID + "! $required + id TYPE n LENGTH 3, "!

Scenario

"! Scenario scenario TYPE ty_check_scenario, @@ -135,7 +147,7 @@ INTERFACE zif_aff_aifp_v1 TYPES: "!

Check Details

"! Check details - ty_single_checks TYPE STANDARD TABLE OF ty_single_check WITH DEFAULT KEY. + ty_single_checks TYPE STANDARD TABLE OF ty_single_check WITH DEFAULT KEY . TYPES: "!

General Information

"! General information @@ -148,28 +160,28 @@ INTERFACE zif_aff_aifp_v1 "! SAP Application Interface check "! $required aif_check TYPE c LENGTH 20, - END OF ty_general_information. + END OF ty_general_information . TYPES: "!

Check

"! 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, "!

Header

"! Header "! $required - header TYPE zif_aff_types_v1=>ty_header_60_cloud, + header TYPE zif_aff_types_v1=>ty_header_60_cloud, "!

General Information

"! General information "! $required - general_information TYPE ty_general_information, + general_information TYPE ty_general_information, "!

Error Message

"! Error message - error_message TYPE ty_message, - "!

Check Assignments

- "! Check assignments + error_message TYPE ty_message, + "!

Single Check Assignments

+ "! Single check assignments "! $required - check_assignments TYPE ty_single_checks, + single_check_assignments TYPE ty_single_checks, END OF ty_main. CONSTANTS: From 61ae7900eb7a7a77988a96bcd56e93a37d0a890f Mon Sep 17 00:00:00 2001 From: Nicole Goeddelmann Date: Mon, 8 Sep 2025 11:59:07 +0200 Subject: [PATCH 6/9] Adjust AFF for AIFP --- .../aifp/type/zif_aff_aifp_v1.intf.abap | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap index f53cf67cb..d460d224e 100644 --- a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap +++ b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap @@ -1,26 +1,26 @@ INTERFACE zif_aff_aifp_v1 - PUBLIC . + PUBLIC. TYPES: "! $values { @link zif_aff_aifp_v1.data:co_check_scenario } "! $default { @link zif_aff_aifp_v1.data:co_check_scenario.simple_field_check } - ty_check_scenario TYPE c LENGTH 10 . + ty_check_scenario TYPE c LENGTH 10. TYPES: "! $values { @link zif_aff_aifp_v1.data:co_simple_check_type } "! $default { @link zif_aff_aifp_v1.data:co_simple_check_type.empty } - ty_simple_check_type TYPE c LENGTH 1 . + ty_simple_check_type TYPE c LENGTH 1. TYPES: "! $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 . + 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 . + 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.source_structure } - ty_variable_type TYPE c LENGTH 5 . + ty_variable_type TYPE c LENGTH 5. TYPES: "!

Variable List

"! Variable list @@ -43,7 +43,7 @@ INTERFACE zif_aff_aifp_v1 TYPES: "!

Variable Details

"! Variable details - ty_variables TYPE STANDARD TABLE OF ty_variable WITH DEFAULT KEY . + ty_variables TYPE STANDARD TABLE OF ty_variable WITH DEFAULT KEY. TYPES: "!

Check Message

"! Check Message @@ -147,7 +147,7 @@ INTERFACE zif_aff_aifp_v1 TYPES: "!

Check Details

"! Check details - ty_single_checks TYPE STANDARD TABLE OF ty_single_check WITH DEFAULT KEY . + ty_single_checks TYPE STANDARD TABLE OF ty_single_check WITH DEFAULT KEY. TYPES: "!

General Information

"! General information @@ -160,7 +160,7 @@ INTERFACE zif_aff_aifp_v1 "! SAP Application Interface check "! $required aif_check TYPE c LENGTH 20, - END OF ty_general_information . + END OF ty_general_information. TYPES: "!

Check

"! Check From 8a2c913d016bd107509db13c6275695efac2ec62 Mon Sep 17 00:00:00 2001 From: Nicole Goeddelmann Date: Tue, 9 Sep 2025 08:56:32 +0200 Subject: [PATCH 7/9] Adjust AFF for AIFP --- file-formats/aifp/aifp-v1.json | 34 +++++-------------- .../examples/z_aff_example_aifp.aifp.json | 4 +-- .../aifp/type/zif_aff_aifp_v1.intf.abap | 23 ++++++------- 3 files changed, 20 insertions(+), 41 deletions(-) diff --git a/file-formats/aifp/aifp-v1.json b/file-formats/aifp/aifp-v1.json index e18e497ab..88a1da9b6 100644 --- a/file-formats/aifp/aifp-v1.json +++ b/file-formats/aifp/aifp-v1.json @@ -116,30 +116,21 @@ "description": "Type", "type": "string", "enum": [ - "sourceStructure", - "destinationStructure", "constant", "systemField", - "messageVariableAll", - "messageVariableSingle" + "definedField" ], "enumTitles": [ - "Source Structure", - "Destination Structure", "Constant", "System Field", - "Message Variable (All)", - "Message Variable (Single)" + "Defined Field" ], "enumDescriptions": [ - "Source structure", - "Destination structure", "Constant value", "System field", - "Message variable (all)", - "Message variable (single)" + "Defined field in the check assignment" ], - "default": "sourceStructure" + "default": "definedField" }, "path": { "title": "Path", @@ -515,30 +506,21 @@ "description": "Type", "type": "string", "enum": [ - "sourceStructure", - "destinationStructure", "constant", "systemField", - "messageVariableAll", - "messageVariableSingle" + "definedField" ], "enumTitles": [ - "Source Structure", - "Destination Structure", "Constant", "System Field", - "Message Variable (All)", - "Message Variable (Single)" + "Defined Field" ], "enumDescriptions": [ - "Source structure", - "Destination structure", "Constant value", "System field", - "Message variable (all)", - "Message variable (single)" + "Defined field in the check assignment" ], - "default": "sourceStructure" + "default": "definedField" }, "path": { "title": "Path", diff --git a/file-formats/aifp/examples/z_aff_example_aifp.aifp.json b/file-formats/aifp/examples/z_aff_example_aifp.aifp.json index 3ecc665f0..3224c8947 100644 --- a/file-formats/aifp/examples/z_aff_example_aifp.aifp.json +++ b/file-formats/aifp/examples/z_aff_example_aifp.aifp.json @@ -15,8 +15,8 @@ "variableAssignments": [ { "number": 1, - "type": "sourceStructure", - "path": "BP_ID" + "type": "definedField", + "value": "1" } ] }, diff --git a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap index d460d224e..33e699e3c 100644 --- a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap +++ b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap @@ -19,7 +19,7 @@ INTERFACE zif_aff_aifp_v1 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.source_structure } + "! $default { @link zif_aff_aifp_v1.data:co_variable_type.defined_field } ty_variable_type TYPE c LENGTH 5. TYPES: "!

Variable List

@@ -270,23 +270,20 @@ INTERFACE zif_aff_aifp_v1 END OF co_field_type. CONSTANTS: BEGIN OF co_variable_type, - "!

Source Structure

- "! Source structure - source_structure TYPE ty_variable_type VALUE 'SRC_S', - "!

Destination Structure

- "! Destination structure - destination_structure TYPE ty_variable_type VALUE 'DST_S', +* "!

Source Structure

+* "! Source structure +* source_structure TYPE ty_variable_type VALUE 'SRC_S', +* "!

Destination Structure

+* "! Destination structure +* destination_structure TYPE ty_variable_type VALUE 'DST_S', "!

Constant

"! Constant value constant TYPE ty_variable_type VALUE 'CONST', "!

System Field

"! System field system_field TYPE ty_variable_type VALUE 'SYSTF', - "!

Message Variable (All)

- "! Message variable (all) - message_variable_all TYPE ty_variable_type VALUE 'MSGVA', - "!

Message Variable (Single)

- "! Message variable (single) - message_variable_single TYPE ty_variable_type VALUE 'MSGVS', + "!

Defined Field

+ "! Defined field in the check assignment + defined_field TYPE ty_variable_type VALUE 'D_FLD', END OF co_variable_type. ENDINTERFACE. From 48f0504ea410b8912e804f69db346630158d86f4 Mon Sep 17 00:00:00 2001 From: Nicole Goeddelmann Date: Tue, 9 Sep 2025 09:49:20 +0200 Subject: [PATCH 8/9] Adjust AFF for AIFP --- file-formats/aifp/aifp-v1.json | 12 ++++++------ file-formats/aifp/type/zif_aff_aifp_v1.intf.abap | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/file-formats/aifp/aifp-v1.json b/file-formats/aifp/aifp-v1.json index 88a1da9b6..5a2201775 100644 --- a/file-formats/aifp/aifp-v1.json +++ b/file-formats/aifp/aifp-v1.json @@ -132,9 +132,9 @@ ], "default": "definedField" }, - "path": { - "title": "Path", - "description": "path", + "field": { + "title": "Field", + "description": "Field", "type": "string" }, "value": { @@ -522,9 +522,9 @@ ], "default": "definedField" }, - "path": { - "title": "Path", - "description": "path", + "field": { + "title": "Field", + "description": "Field", "type": "string" }, "value": { diff --git a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap index 33e699e3c..b8586f055 100644 --- a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap +++ b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap @@ -33,9 +33,9 @@ INTERFACE zif_aff_aifp_v1 "!

Type

"! Type type TYPE ty_variable_type, - "!

Path

- "! path - path TYPE string, + "!

Field

+ "! Field + field TYPE string, "!

Value

"! Value value TYPE string, From a72611003f826696b2f75eaa7d55ccae7c473606 Mon Sep 17 00:00:00 2001 From: Nicole Goeddelmann Date: Tue, 9 Sep 2025 09:51:31 +0200 Subject: [PATCH 9/9] Adjust AFF for AIFP --- file-formats/aifp/type/zif_aff_aifp_v1.intf.abap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap index b8586f055..244c05b31 100644 --- a/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap +++ b/file-formats/aifp/type/zif_aff_aifp_v1.intf.abap @@ -35,7 +35,7 @@ INTERFACE zif_aff_aifp_v1 type TYPE ty_variable_type, "!

Field

"! Field - field TYPE string, + field TYPE string, "!

Value

"! Value value TYPE string,