From a8ec8b75890715e5247aa9ccbebc18b20f6f40af Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Mon, 27 Jan 2025 13:15:53 +0100 Subject: [PATCH 01/24] Add files for EDOI & EDOT --- file-formats/edoi/.DS_Store | Bin 0 -> 6148 bytes file-formats/edoi/README.md | 5 + file-formats/edoi/edoi-v1.json | 209 ++++++++++++++++++ .../edoi/type/zif_aff_edoi_v1.intf.abap | 121 ++++++++++ .../edoi/type/zif_aff_edoi_v1.intf.json | 7 + file-formats/edot/.DS_Store | Bin 0 -> 6148 bytes file-formats/edot/README.md | 5 + file-formats/edot/edot-v1.json | 185 ++++++++++++++++ .../edot/type/zif_aff_edot_v1.intf.abap | 105 +++++++++ .../edot/type/zif_aff_edot_v1.intf.json | 7 + 10 files changed, 644 insertions(+) create mode 100644 file-formats/edoi/.DS_Store create mode 100644 file-formats/edoi/README.md create mode 100644 file-formats/edoi/edoi-v1.json create mode 100644 file-formats/edoi/type/zif_aff_edoi_v1.intf.abap create mode 100644 file-formats/edoi/type/zif_aff_edoi_v1.intf.json create mode 100644 file-formats/edot/.DS_Store create mode 100644 file-formats/edot/README.md create mode 100644 file-formats/edot/edot-v1.json create mode 100644 file-formats/edot/type/zif_aff_edot_v1.intf.abap create mode 100644 file-formats/edot/type/zif_aff_edot_v1.intf.json diff --git a/file-formats/edoi/.DS_Store b/file-formats/edoi/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..15c04208536080b609881173172966e05394ceb5 GIT binary patch literal 6148 zcmeH~F>b>!3`IW^4*{}x?5L#&$PI)bIYBQ_H0~B40n!fLbo72wTb%_`(ma_?&L1^T*|K_9AW70Z-{8X8XAOSd_o2|8HQ74j)4>oU06DN6#&ygRWbp!7ldY2#n&tFh z*=jL{cs<(5lGoK_>+J2Y96l`XY(B-%thd7o6Pne4f)tPfGX>T?AN~A4(jU$LvlgXN zKnnab1#CFH9rk>wJX`Nx&+G45^>w3@aXG`Ep8zI)6u;2JxLET HJXL{T_8Ah# literal 0 HcmV?d00001 diff --git a/file-formats/edoi/README.md b/file-formats/edoi/README.md new file mode 100644 index 000000000..4061063fc --- /dev/null +++ b/file-formats/edoi/README.md @@ -0,0 +1,5 @@ +# EDOI File Format + +File | Cardinality | Definition | Schema | Example +:--- | :--- | :--- | :--- | :--- +`.edoi.json` | 1 | [`zif_aff_edoi_v1.intf.abap`](./type/zif_aff_edoi_v1.intf.abap) | [`edoi-v1.json`](./edoi-v1.json) diff --git a/file-formats/edoi/edoi-v1.json b/file-formats/edoi/edoi-v1.json new file mode 100644 index 000000000..1ad363d6e --- /dev/null +++ b/file-formats/edoi/edoi-v1.json @@ -0,0 +1,209 @@ +{ + "$comment": "This file is autogenerated, do not edit manually, see https://github.com/SAP/abap-file-formats for more information.", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://github.com/SAP/abap-file-formats/blob/main/file-formats/edoi/edoi-v1.json", + "title": "eDocument Interface", + "description": "eDocument Interface", + "type": "object", + "properties": { + "formatVersion": { + "title": "Format Version", + "description": "Format version", + "type": "string", + "const": "1" + }, + "header": { + "title": "Header", + "description": "Header", + "type": "object", + "properties": { + "description": { + "title": "Description", + "description": "Description of the ABAP object", + "type": "string", + "maxLength": 60 + }, + "originalLanguage": { + "title": "Original Language", + "description": "Original language of the ABAP object", + "type": "string", + "minLength": 2 + }, + "abapLanguageVersion": { + "title": "ABAP Language Version", + "description": "ABAP language version", + "type": "string", + "enum": [ + "standard", + "keyUser", + "cloudDevelopment" + ], + "enumTitles": [ + "Standard", + "ABAP for Key Users", + "ABAP Cloud Development" + ], + "enumDescriptions": [ + "Standard", + "ABAP for key user extensibility", + "ABAP cloud development" + ], + "default": "standard" + } + }, + "additionalProperties": false, + "required": [ + "description", + "originalLanguage" + ] + }, + "generalInformation": { + "title": "eDocument Interface", + "description": "eDocument Interface", + "type": "object", + "properties": { + "edocumentInterfaceId": { + "title": "eDocument Interface", + "description": "eDocument Interface", + "type": "string", + "maxLength": 30 + }, + "interfaceDescription": { + "title": "eDocument Interface Description", + "description": "Interface Description.", + "type": "string", + "maxLength": 100 + }, + "interfaceDirection": { + "title": "eDocument Interface Direction", + "description": "Interface Direction.", + "type": "string", + "enum": [ + "outbound", + "inbound" + ], + "enumTitles": [ + "Outbound", + "Inbound" + ], + "enumDescriptions": [ + "Outbound", + "Inbound" + ], + "default": "outbound" + }, + "edocumentInterfaceVersion": { + "title": "Interface Version", + "description": "Interface Version", + "type": "array", + "uniqueItems": true, + "items": { + "title": "Interface Version", + "description": "eDocument Interface Version", + "type": "object", + "properties": { + "intVersion": { + "title": "Interface Version", + "description": "Interface Version", + "type": "string", + "maxLength": 4, + "pattern": "^[0-9]+$" + }, + "intVersionDesc": { + "title": "Interface Version Description", + "description": "Interface Version Description", + "type": "string", + "maxLength": 30 + }, + "activeFrom": { + "title": "Active From", + "description": "Active from", + "type": "string", + "format": "date-time" + } + }, + "additionalProperties": false, + "required": [ + "intVersion", + "intVersionDesc", + "activeFrom" + ] + } + }, + "edocSpecAdditionalTable": { + "title": "Attribute Determination for Communication with Cloud Edition", + "description": "DRC Integration Attribute Determination", + "type": "array", + "uniqueItems": true, + "items": { + "title": "Attribute Determination for Communication with Cloud Edition", + "description": "DRC Integration Attribute Determination", + "type": "object", + "properties": { + "processType": { + "title": "Process Type", + "description": "DRC Process Type", + "type": "string", + "maxLength": 50 + }, + "processVersion": { + "title": "Process Version", + "description": "DRC Process Version", + "type": "string", + "maxLength": 20 + }, + "processSubtype": { + "title": "Process Subtype", + "description": "DRC Process Subtype", + "type": "string", + "maxLength": 50 + }, + "drcAction": { + "title": "Action", + "description": "DRC Process Action", + "type": "string", + "maxLength": 30 + }, + "respInterfaceId": { + "title": "Response Interface", + "description": "eDoc Response Interface", + "type": "string", + "maxLength": 30 + }, + "respIntVersion": { + "title": "Response Interface Version", + "description": "Response Interface Version", + "type": "string", + "maxLength": 4, + "pattern": "^[0-9]+$" + } + }, + "additionalProperties": false, + "required": [ + "processType", + "processVersion", + "processSubtype", + "drcAction", + "respInterfaceId", + "respIntVersion" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "edocumentInterfaceId", + "interfaceDescription", + "interfaceDirection", + "edocumentInterfaceVersion", + "edocSpecAdditionalTable" + ] + } + }, + "additionalProperties": false, + "required": [ + "formatVersion", + "header", + "generalInformation" + ] +} diff --git a/file-formats/edoi/type/zif_aff_edoi_v1.intf.abap b/file-formats/edoi/type/zif_aff_edoi_v1.intf.abap new file mode 100644 index 000000000..3a77f0aef --- /dev/null +++ b/file-formats/edoi/type/zif_aff_edoi_v1.intf.abap @@ -0,0 +1,121 @@ +INTERFACE zif_aff_edoi_v1 + PUBLIC. + + "!

Interface direction

+ "! Interface direction + "! $required + "! $values {@link zif_aff_edoi_v1.data:co_edoc_int_direction} + "! $default {@link zif_aff_edoi_v1.data:co_edoc_int_direction.outbound} + TYPES ty_int_direction TYPE c LENGTH 1. + TYPES: + "!

Interface Version

+ "! eDocument Interface Version + BEGIN OF ty_edoc_interface_version, + "!

Interface Version

+ "! Interface Version + "! $required + int_version TYPE numc04, + "!

Interface Version Description

+ "! Interface Version Description + "! $required + int_version_desc TYPE c LENGTH 30, + "!

Active From

+ "! Active from + "! $required + active_from TYPE sy-datum, + + END OF ty_edoc_interface_version. + "!

Interface Versions

+ "! eDocument Interface Versions + TYPES tt_edoc_interface_version TYPE SORTED TABLE OF ty_edoc_interface_version WITH UNIQUE KEY int_version. + TYPES: + "!

Attribute Determination for Communication with Cloud Edition

+ "! DRC Integration Attribute Determination + BEGIN OF ty_edoc_int_drc_attr, + "!

Process Type

+ "! DRC Process Type + "! $required + process_type TYPE c LENGTH 50, + "!

Process Version

+ "! DRC Process Version + "! $required + process_version TYPE c LENGTH 20, + "!

Process Subtype

+ "! DRC Process Subtype + "! $required + process_subtype TYPE c LENGTH 50, + "!

Action

+ "! DRC Process Action + "! $required + drc_action TYPE c LENGTH 30, + "!

Response Interface

+ "! eDoc Response Interface + "! $required + resp_interface_id TYPE c LENGTH 30, + "!

Response Interface Version

+ "! Response Interface Version + "! $required + resp_int_version TYPE numc04, + + END OF ty_edoc_int_drc_attr. + "!

Interface Versions

+ "! eDocument Interface Versions + TYPES tt_edoc_int_drc_attr TYPE SORTED TABLE OF ty_edoc_int_drc_attr WITH UNIQUE KEY process_type. + TYPES: + "!

General Information

+ "! eDocument Interface + BEGIN OF ty_edoc_interface, + "!

eDocument Interface

+ "! eDocument Interface + "! $required + edocument_interface_id TYPE c LENGTH 30, + "!

eDocument Interface Description

+ "! Interface Description. + "! $required + interface_description TYPE c LENGTH 100, + + "!

eDocument Interface Direction

+ "! Interface Direction. + "! $required + interface_direction TYPE ty_int_direction, + + "!

Interface Version

+ "! Interface Version + "! $required + edocument_interface_version TYPE tt_edoc_interface_version, + "!

Attribute Determination for Communication with Cloud Edition

+ "! DRC Integration Attribute Determination + "! $required + edoc_spec_additional_table TYPE tt_edoc_int_drc_attr, + END OF ty_edoc_interface. + TYPES: + "!

eDocument Interface

+ "! eDocument Interface + BEGIN OF ty_main, + "!

Format Version

+ "! Format version + "! $required + format_version TYPE zif_aff_types_v1=>ty_format_version, + "!

Header

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

eDocument Interface

+ "! eDocument Interface + "! $required + general_information TYPE ty_edoc_interface, + + END OF ty_main. + + CONSTANTS: + "!

Interface Direction

+ "! Interface Direction + BEGIN OF co_edoc_int_direction, + "!

Outbound

+ "! Outbound + outbound TYPE ty_int_direction VALUE 'O', + "!

Inbound

+ "! Inbound + inbound TYPE ty_int_direction VALUE 'I', + END OF co_edoc_int_direction. +ENDINTERFACE. diff --git a/file-formats/edoi/type/zif_aff_edoi_v1.intf.json b/file-formats/edoi/type/zif_aff_edoi_v1.intf.json new file mode 100644 index 000000000..77d2b8841 --- /dev/null +++ b/file-formats/edoi/type/zif_aff_edoi_v1.intf.json @@ -0,0 +1,7 @@ +{ + "formatVersion": "1", + "header": { + "description": "Create eDocument Types", + "originalLanguage": "en" + } +} diff --git a/file-formats/edot/.DS_Store b/file-formats/edot/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..15c04208536080b609881173172966e05394ceb5 GIT binary patch literal 6148 zcmeH~F>b>!3`IW^4*{}x?5L#&$PI)bIYBQ_H0~B40n!fLbo72wTb%_`(ma_?&L1^T*|K_9AW70Z-{8X8XAOSd_o2|8HQ74j)4>oU06DN6#&ygRWbp!7ldY2#n&tFh z*=jL{cs<(5lGoK_>+J2Y96l`XY(B-%thd7o6Pne4f)tPfGX>T?AN~A4(jU$LvlgXN zKnnab1#CFH9rk>wJX`Nx&+G45^>w3@aXG`Ep8zI)6u;2JxLET HJXL{T_8Ah# literal 0 HcmV?d00001 diff --git a/file-formats/edot/README.md b/file-formats/edot/README.md new file mode 100644 index 000000000..23a553e6b --- /dev/null +++ b/file-formats/edot/README.md @@ -0,0 +1,5 @@ +# EDOT File Format + +File | Cardinality | Definition | Schema | Example +:--- | :--- | :--- | :--- | :--- +`.edot.json` | 1 | [`zif_aff_edot_v1.intf.abap`](./type/zif_aff_edot_v1.intf.abap) | [`edot-v1.json`](./edot-v1.json) diff --git a/file-formats/edot/edot-v1.json b/file-formats/edot/edot-v1.json new file mode 100644 index 000000000..35fe1e474 --- /dev/null +++ b/file-formats/edot/edot-v1.json @@ -0,0 +1,185 @@ +{ + "$comment": "This file is autogenerated, do not edit manually, see https://github.com/SAP/abap-file-formats for more information.", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://github.com/SAP/abap-file-formats/blob/main/file-formats/edot/edot-v1.json", + "title": "eDocument Type", + "description": "eDocument Type", + "type": "object", + "properties": { + "formatVersion": { + "title": "Format Version", + "description": "Format version", + "type": "string", + "const": "1" + }, + "header": { + "title": "Header", + "description": "Header", + "type": "object", + "properties": { + "description": { + "title": "Description", + "description": "Description of the ABAP object", + "type": "string", + "maxLength": 60 + }, + "originalLanguage": { + "title": "Original Language", + "description": "Original language of the ABAP object", + "type": "string", + "minLength": 2 + }, + "abapLanguageVersion": { + "title": "ABAP Language Version", + "description": "ABAP language version", + "type": "string", + "enum": [ + "standard", + "keyUser", + "cloudDevelopment" + ], + "enumTitles": [ + "Standard", + "ABAP for Key Users", + "ABAP Cloud Development" + ], + "enumDescriptions": [ + "Standard", + "ABAP for key user extensibility", + "ABAP cloud development" + ], + "default": "standard" + } + }, + "additionalProperties": false, + "required": [ + "description", + "originalLanguage" + ] + }, + "generalInformation": { + "title": "eDocument Type", + "description": "eDocument Type", + "type": "object", + "properties": { + "edocumentType": { + "title": "eDocument Type", + "description": "eDoc Type", + "type": "string", + "maxLength": 10 + }, + "edocTypeDesc": { + "title": "Description", + "description": "eDocument Type Description", + "type": "string", + "maxLength": 30 + }, + "contingency": { + "title": "Created in Contingency Mode", + "description": "Contingency", + "type": "boolean" + }, + "contingencyType": { + "title": "eDocument Type Created Using Contingency", + "description": "Contingency Type", + "type": "string", + "maxLength": 10 + }, + "tableName": { + "title": "Table Name", + "description": "Table name", + "type": "string", + "maxLength": 30 + }, + "archivePrepReqType": { + "title": "Preprocess Before Archiving", + "description": "Archive Prep Req Type", + "type": "boolean" + }, + "edocumentSralConfiguration": { + "title": "Additional Selection Fields", + "description": "Additional selection fields of validation report", + "type": "array", + "uniqueItems": true, + "items": { + "title": "SRAL Configuration Type", + "description": "eDocument SRAL Configuration type", + "type": "object", + "properties": { + "fileType": { + "title": "File Type", + "description": "File Type", + "type": "string", + "maxLength": 10 + }, + "fileStructureType": { + "title": "File Structure Type", + "description": "File Structure type", + "type": "string", + "maxLength": 30 + }, + "fileDescriptionType": { + "title": "File Description", + "description": "File Description type", + "type": "string", + "maxLength": 60 + }, + "notCloudRelevantType": { + "title": "File Cloud Relevancy", + "description": "File Cloud Relevancy type", + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "fileType", + "fileStructureType" + ] + } + }, + "edocSpecAdditionalTable": { + "title": "eDocument Type Specific Additional Tables", + "description": "eDocument Type Specific Additional Tables", + "type": "array", + "uniqueItems": true, + "items": { + "title": "eDocument Type Specific Additional Table Type", + "description": "eDocument Type Specific Additional Table type", + "type": "object", + "properties": { + "sequenceNumberType": { + "title": "Sequence Number Type", + "description": "Sequence Number", + "type": "string", + "maxLength": 10 + }, + "tableName": { + "title": "Table Name", + "description": "Table name", + "type": "string", + "maxLength": 30 + } + }, + "additionalProperties": false, + "required": [ + "sequenceNumberType", + "tableName" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "edocumentType", + "edocTypeDesc", + "archivePrepReqType" + ] + } + }, + "additionalProperties": false, + "required": [ + "formatVersion", + "header", + "generalInformation" + ] +} diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.abap b/file-formats/edot/type/zif_aff_edot_v1.intf.abap new file mode 100644 index 000000000..7347b5e13 --- /dev/null +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.abap @@ -0,0 +1,105 @@ +"!

Create eDocument Types

+"! eDocument types that can be used in eInvoice Process +INTERFACE zif_aff_edot_v1 +PUBLIC. + + TYPES: + "!

eDocument Type

+ "! Specify eDocument types + ty_edoc_type TYPE c LENGTH 10. + + "!

Description

+ "! Description + TYPES ty_short_description TYPE c LENGTH 30. + TYPES: + "!

SRAL Configuration Type

+ "! eDocument SRAL Configuration type + BEGIN OF ty_sral_configuration, + "!

File Type

+ "! File Type + "! $required + file_type TYPE c LENGTH 10, + "!

File Structure Type

+ "! File Structure type + "! $required + file_structure_type TYPE c LENGTH 30, + "!

File Description

+ "! File Description type + file_description_type TYPE c LENGTH 60, + "!

File Cloud Relevancy

+ "! File Cloud Relevancy type + not_cloud_relevant_type TYPE abap_bool, + END OF ty_sral_configuration. + "!

SRAL Configuration Types

+ "! SRAL Configuration types + TYPES tt_sral_configuration TYPE SORTED TABLE OF ty_sral_configuration WITH UNIQUE KEY file_type. + + TYPES: + "!

eDocument Type Specific Additional Table Type

+ "! eDocument Type Specific Additional Table type + BEGIN OF ty_edoc_spec_additional_table, + "!

Sequence Number Type

+ "! Sequence Number + "! $required + sequence_number_type TYPE c LENGTH 10, + "!

Table Name

+ "! Table name + "! $required + table_name TYPE zif_aff_types_v1=>ty_object_name_30, + END OF ty_edoc_spec_additional_table. + "!

eDocument Type Specific Additional Table Types

+ "! eDocument Type Specific Additional Table types + TYPES tt_edoc_spec_additional_table TYPE SORTED TABLE OF ty_edoc_spec_additional_table WITH UNIQUE KEY sequence_number_type. + + TYPES: + "!

General Information

+ "! eDocument Type + BEGIN OF ty_edoc_information, + "!

eDocument Type

+ "! eDoc Type + "! $required + edocument_type TYPE ty_edoc_type, + "!

Description

+ "! eDocument Type Description + "! $required + edoc_type_desc TYPE ty_short_description, + "!

Created in Contingency Mode

+ "! Contingency + contingency TYPE abap_bool, + "!

eDocument Type Created Using Contingency

+ "! Contingency Type + contingency_type TYPE c LENGTH 10, + "!

Table Name

+ "! Table name + table_name TYPE zif_aff_types_v1=>ty_object_name_30, + "!

Preprocess Before Archiving

+ "! Archive Prep Req Type + "! $required + archive_prep_req_type TYPE abap_bool, + "!

Additional Selection Fields

+ "! Additional selection fields of validation report + edocument_sral_configuration TYPE tt_sral_configuration, + "!

eDocument Type Specific Additional Tables

+ "! eDocument Type Specific Additional Tables + edoc_spec_additional_table TYPE tt_edoc_spec_additional_table, + END OF ty_edoc_information. + + TYPES: + "!

eDocument Type

+ "! eDocument Type + BEGIN OF ty_main, + "!

Format Version

+ "! Format version + "! $required + format_version TYPE zif_aff_types_v1=>ty_format_version, + "!

Header

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

eDocument Type

+ "! eDocument Type + "! $required + general_information TYPE ty_edoc_information, + + END OF ty_main. +ENDINTERFACE. diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.json b/file-formats/edot/type/zif_aff_edot_v1.intf.json new file mode 100644 index 000000000..77d2b8841 --- /dev/null +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.json @@ -0,0 +1,7 @@ +{ + "formatVersion": "1", + "header": { + "description": "Create eDocument Types", + "originalLanguage": "en" + } +} From 499d83ab10a4805ecabd10802d95e68d7c1b1aa5 Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Mon, 27 Jan 2025 15:11:17 +0100 Subject: [PATCH 02/24] React to abaplint --- .../edoi/type/zif_aff_edoi_v1.intf.abap | 15 +++++++-------- .../edot/type/zif_aff_edot_v1.intf.abap | 18 ++++++++---------- 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/file-formats/edoi/type/zif_aff_edoi_v1.intf.abap b/file-formats/edoi/type/zif_aff_edoi_v1.intf.abap index 3a77f0aef..bed1d9928 100644 --- a/file-formats/edoi/type/zif_aff_edoi_v1.intf.abap +++ b/file-formats/edoi/type/zif_aff_edoi_v1.intf.abap @@ -1,5 +1,4 @@ -INTERFACE zif_aff_edoi_v1 - PUBLIC. +INTERFACE zif_aff_edoi_v1 PUBLIC. "!

Interface direction

"! Interface direction @@ -14,7 +13,7 @@ INTERFACE zif_aff_edoi_v1 "!

Interface Version

"! Interface Version "! $required - int_version TYPE numc04, + int_version TYPE edoc_int_version, "!

Interface Version Description

"! Interface Version Description "! $required @@ -27,7 +26,7 @@ INTERFACE zif_aff_edoi_v1 END OF ty_edoc_interface_version. "!

Interface Versions

"! eDocument Interface Versions - TYPES tt_edoc_interface_version TYPE SORTED TABLE OF ty_edoc_interface_version WITH UNIQUE KEY int_version. + TYPES ty_edoc_interface_versions TYPE SORTED TABLE OF ty_edoc_interface_version WITH UNIQUE KEY int_version. TYPES: "!

Attribute Determination for Communication with Cloud Edition

"! DRC Integration Attribute Determination @@ -55,12 +54,12 @@ INTERFACE zif_aff_edoi_v1 "!

Response Interface Version

"! Response Interface Version "! $required - resp_int_version TYPE numc04, + resp_int_version TYPE edoc_int_version, END OF ty_edoc_int_drc_attr. "!

Interface Versions

"! eDocument Interface Versions - TYPES tt_edoc_int_drc_attr TYPE SORTED TABLE OF ty_edoc_int_drc_attr WITH UNIQUE KEY process_type. + TYPES ty_edoc_int_drc_attributes TYPE SORTED TABLE OF ty_edoc_int_drc_attr WITH UNIQUE KEY process_type. TYPES: "!

General Information

"! eDocument Interface @@ -82,11 +81,11 @@ INTERFACE zif_aff_edoi_v1 "!

Interface Version

"! Interface Version "! $required - edocument_interface_version TYPE tt_edoc_interface_version, + edocument_interface_version TYPE ty_edoc_interface_versions, "!

Attribute Determination for Communication with Cloud Edition

"! DRC Integration Attribute Determination "! $required - edoc_spec_additional_table TYPE tt_edoc_int_drc_attr, + edoc_spec_additional_table TYPE ty_edoc_int_drc_attributes, END OF ty_edoc_interface. TYPES: "!

eDocument Interface

diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.abap b/file-formats/edot/type/zif_aff_edot_v1.intf.abap index 7347b5e13..95f1d611c 100644 --- a/file-formats/edot/type/zif_aff_edot_v1.intf.abap +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.abap @@ -1,12 +1,10 @@ "!

Create eDocument Types

"! eDocument types that can be used in eInvoice Process -INTERFACE zif_aff_edot_v1 -PUBLIC. +INTERFACE zif_aff_edot_v1 PUBLIC. - TYPES: "!

eDocument Type

"! Specify eDocument types - ty_edoc_type TYPE c LENGTH 10. + TYPES ty_edoc_type TYPE c LENGTH 10. "!

Description

"! Description @@ -32,12 +30,12 @@ PUBLIC. END OF ty_sral_configuration. "!

SRAL Configuration Types

"! SRAL Configuration types - TYPES tt_sral_configuration TYPE SORTED TABLE OF ty_sral_configuration WITH UNIQUE KEY file_type. + TYPES ty_sral_configurations TYPE SORTED TABLE OF ty_sral_configuration WITH UNIQUE KEY file_type. TYPES: "!

eDocument Type Specific Additional Table Type

"! eDocument Type Specific Additional Table type - BEGIN OF ty_edoc_spec_additional_table, + BEGIN OF ty_additional_table, "!

Sequence Number Type

"! Sequence Number "! $required @@ -46,10 +44,10 @@ PUBLIC. "! Table name "! $required table_name TYPE zif_aff_types_v1=>ty_object_name_30, - END OF ty_edoc_spec_additional_table. + END OF ty_additional_table. "!

eDocument Type Specific Additional Table Types

"! eDocument Type Specific Additional Table types - TYPES tt_edoc_spec_additional_table TYPE SORTED TABLE OF ty_edoc_spec_additional_table WITH UNIQUE KEY sequence_number_type. + TYPES ty_additional_tables TYPE SORTED TABLE OF ty_additional_table WITH UNIQUE KEY sequence_number_type. TYPES: "!

General Information

@@ -78,10 +76,10 @@ PUBLIC. archive_prep_req_type TYPE abap_bool, "!

Additional Selection Fields

"! Additional selection fields of validation report - edocument_sral_configuration TYPE tt_sral_configuration, + edocument_sral_configuration TYPE ty_sral_configurations, "!

eDocument Type Specific Additional Tables

"! eDocument Type Specific Additional Tables - edoc_spec_additional_table TYPE tt_edoc_spec_additional_table, + edoc_spec_additional_table TYPE ty_additional_tables, END OF ty_edoc_information. TYPES: From e1e96b219f7a6dbbac864dbb4f222addb319585b Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Mon, 27 Jan 2025 15:19:42 +0100 Subject: [PATCH 03/24] React to abaplint --- file-formats/edoi/edoi-v1.json | 6 ++---- file-formats/edoi/type/zif_aff_edoi_v1.intf.abap | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/file-formats/edoi/edoi-v1.json b/file-formats/edoi/edoi-v1.json index 1ad363d6e..0e20aaed2 100644 --- a/file-formats/edoi/edoi-v1.json +++ b/file-formats/edoi/edoi-v1.json @@ -106,8 +106,7 @@ "title": "Interface Version", "description": "Interface Version", "type": "string", - "maxLength": 4, - "pattern": "^[0-9]+$" + "maxLength": 4 }, "intVersionDesc": { "title": "Interface Version Description", @@ -174,8 +173,7 @@ "title": "Response Interface Version", "description": "Response Interface Version", "type": "string", - "maxLength": 4, - "pattern": "^[0-9]+$" + "maxLength": 4 } }, "additionalProperties": false, diff --git a/file-formats/edoi/type/zif_aff_edoi_v1.intf.abap b/file-formats/edoi/type/zif_aff_edoi_v1.intf.abap index bed1d9928..90d3997e0 100644 --- a/file-formats/edoi/type/zif_aff_edoi_v1.intf.abap +++ b/file-formats/edoi/type/zif_aff_edoi_v1.intf.abap @@ -13,7 +13,7 @@ INTERFACE zif_aff_edoi_v1 PUBLIC. "!

Interface Version

"! Interface Version "! $required - int_version TYPE edoc_int_version, + int_version TYPE c LENGTH 4, "!

Interface Version Description

"! Interface Version Description "! $required @@ -54,7 +54,7 @@ INTERFACE zif_aff_edoi_v1 PUBLIC. "!

Response Interface Version

"! Response Interface Version "! $required - resp_int_version TYPE edoc_int_version, + resp_int_version TYPE c LENGTH 4, END OF ty_edoc_int_drc_attr. "!

Interface Versions

From 3a2e9b9517d1f1c06a49a28a34d7dd0491846001 Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Tue, 28 Jan 2025 09:45:40 +0100 Subject: [PATCH 04/24] React to comments from Michael Schneider --- file-formats/edoi/.DS_Store | Bin 6148 -> 0 bytes file-formats/edot/.DS_Store | Bin 6148 -> 0 bytes file-formats/edot/README.md | 5 - file-formats/edot/edot-v1.json | 185 ------------------ .../edot/type/zif_aff_edot_v1.intf.abap | 103 ---------- .../edot/type/zif_aff_edot_v1.intf.json | 7 - 6 files changed, 300 deletions(-) delete mode 100644 file-formats/edoi/.DS_Store delete mode 100644 file-formats/edot/.DS_Store delete mode 100644 file-formats/edot/README.md delete mode 100644 file-formats/edot/edot-v1.json delete mode 100644 file-formats/edot/type/zif_aff_edot_v1.intf.abap delete mode 100644 file-formats/edot/type/zif_aff_edot_v1.intf.json diff --git a/file-formats/edoi/.DS_Store b/file-formats/edoi/.DS_Store deleted file mode 100644 index 15c04208536080b609881173172966e05394ceb5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~F>b>!3`IW^4*{}x?5L#&$PI)bIYBQ_H0~B40n!fLbo72wTb%_`(ma_?&L1^T*|K_9AW70Z-{8X8XAOSd_o2|8HQ74j)4>oU06DN6#&ygRWbp!7ldY2#n&tFh z*=jL{cs<(5lGoK_>+J2Y96l`XY(B-%thd7o6Pne4f)tPfGX>T?AN~A4(jU$LvlgXN zKnnab1#CFH9rk>wJX`Nx&+G45^>w3@aXG`Ep8zI)6u;2JxLET HJXL{T_8Ah# diff --git a/file-formats/edot/.DS_Store b/file-formats/edot/.DS_Store deleted file mode 100644 index 15c04208536080b609881173172966e05394ceb5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~F>b>!3`IW^4*{}x?5L#&$PI)bIYBQ_H0~B40n!fLbo72wTb%_`(ma_?&L1^T*|K_9AW70Z-{8X8XAOSd_o2|8HQ74j)4>oU06DN6#&ygRWbp!7ldY2#n&tFh z*=jL{cs<(5lGoK_>+J2Y96l`XY(B-%thd7o6Pne4f)tPfGX>T?AN~A4(jU$LvlgXN zKnnab1#CFH9rk>wJX`Nx&+G45^>w3@aXG`Ep8zI)6u;2JxLET HJXL{T_8Ah# diff --git a/file-formats/edot/README.md b/file-formats/edot/README.md deleted file mode 100644 index 23a553e6b..000000000 --- a/file-formats/edot/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# EDOT File Format - -File | Cardinality | Definition | Schema | Example -:--- | :--- | :--- | :--- | :--- -`.edot.json` | 1 | [`zif_aff_edot_v1.intf.abap`](./type/zif_aff_edot_v1.intf.abap) | [`edot-v1.json`](./edot-v1.json) diff --git a/file-formats/edot/edot-v1.json b/file-formats/edot/edot-v1.json deleted file mode 100644 index 35fe1e474..000000000 --- a/file-formats/edot/edot-v1.json +++ /dev/null @@ -1,185 +0,0 @@ -{ - "$comment": "This file is autogenerated, do not edit manually, see https://github.com/SAP/abap-file-formats for more information.", - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/SAP/abap-file-formats/blob/main/file-formats/edot/edot-v1.json", - "title": "eDocument Type", - "description": "eDocument Type", - "type": "object", - "properties": { - "formatVersion": { - "title": "Format Version", - "description": "Format version", - "type": "string", - "const": "1" - }, - "header": { - "title": "Header", - "description": "Header", - "type": "object", - "properties": { - "description": { - "title": "Description", - "description": "Description of the ABAP object", - "type": "string", - "maxLength": 60 - }, - "originalLanguage": { - "title": "Original Language", - "description": "Original language of the ABAP object", - "type": "string", - "minLength": 2 - }, - "abapLanguageVersion": { - "title": "ABAP Language Version", - "description": "ABAP language version", - "type": "string", - "enum": [ - "standard", - "keyUser", - "cloudDevelopment" - ], - "enumTitles": [ - "Standard", - "ABAP for Key Users", - "ABAP Cloud Development" - ], - "enumDescriptions": [ - "Standard", - "ABAP for key user extensibility", - "ABAP cloud development" - ], - "default": "standard" - } - }, - "additionalProperties": false, - "required": [ - "description", - "originalLanguage" - ] - }, - "generalInformation": { - "title": "eDocument Type", - "description": "eDocument Type", - "type": "object", - "properties": { - "edocumentType": { - "title": "eDocument Type", - "description": "eDoc Type", - "type": "string", - "maxLength": 10 - }, - "edocTypeDesc": { - "title": "Description", - "description": "eDocument Type Description", - "type": "string", - "maxLength": 30 - }, - "contingency": { - "title": "Created in Contingency Mode", - "description": "Contingency", - "type": "boolean" - }, - "contingencyType": { - "title": "eDocument Type Created Using Contingency", - "description": "Contingency Type", - "type": "string", - "maxLength": 10 - }, - "tableName": { - "title": "Table Name", - "description": "Table name", - "type": "string", - "maxLength": 30 - }, - "archivePrepReqType": { - "title": "Preprocess Before Archiving", - "description": "Archive Prep Req Type", - "type": "boolean" - }, - "edocumentSralConfiguration": { - "title": "Additional Selection Fields", - "description": "Additional selection fields of validation report", - "type": "array", - "uniqueItems": true, - "items": { - "title": "SRAL Configuration Type", - "description": "eDocument SRAL Configuration type", - "type": "object", - "properties": { - "fileType": { - "title": "File Type", - "description": "File Type", - "type": "string", - "maxLength": 10 - }, - "fileStructureType": { - "title": "File Structure Type", - "description": "File Structure type", - "type": "string", - "maxLength": 30 - }, - "fileDescriptionType": { - "title": "File Description", - "description": "File Description type", - "type": "string", - "maxLength": 60 - }, - "notCloudRelevantType": { - "title": "File Cloud Relevancy", - "description": "File Cloud Relevancy type", - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "fileType", - "fileStructureType" - ] - } - }, - "edocSpecAdditionalTable": { - "title": "eDocument Type Specific Additional Tables", - "description": "eDocument Type Specific Additional Tables", - "type": "array", - "uniqueItems": true, - "items": { - "title": "eDocument Type Specific Additional Table Type", - "description": "eDocument Type Specific Additional Table type", - "type": "object", - "properties": { - "sequenceNumberType": { - "title": "Sequence Number Type", - "description": "Sequence Number", - "type": "string", - "maxLength": 10 - }, - "tableName": { - "title": "Table Name", - "description": "Table name", - "type": "string", - "maxLength": 30 - } - }, - "additionalProperties": false, - "required": [ - "sequenceNumberType", - "tableName" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "edocumentType", - "edocTypeDesc", - "archivePrepReqType" - ] - } - }, - "additionalProperties": false, - "required": [ - "formatVersion", - "header", - "generalInformation" - ] -} diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.abap b/file-formats/edot/type/zif_aff_edot_v1.intf.abap deleted file mode 100644 index 95f1d611c..000000000 --- a/file-formats/edot/type/zif_aff_edot_v1.intf.abap +++ /dev/null @@ -1,103 +0,0 @@ -"!

Create eDocument Types

-"! eDocument types that can be used in eInvoice Process -INTERFACE zif_aff_edot_v1 PUBLIC. - - "!

eDocument Type

- "! Specify eDocument types - TYPES ty_edoc_type TYPE c LENGTH 10. - - "!

Description

- "! Description - TYPES ty_short_description TYPE c LENGTH 30. - TYPES: - "!

SRAL Configuration Type

- "! eDocument SRAL Configuration type - BEGIN OF ty_sral_configuration, - "!

File Type

- "! File Type - "! $required - file_type TYPE c LENGTH 10, - "!

File Structure Type

- "! File Structure type - "! $required - file_structure_type TYPE c LENGTH 30, - "!

File Description

- "! File Description type - file_description_type TYPE c LENGTH 60, - "!

File Cloud Relevancy

- "! File Cloud Relevancy type - not_cloud_relevant_type TYPE abap_bool, - END OF ty_sral_configuration. - "!

SRAL Configuration Types

- "! SRAL Configuration types - TYPES ty_sral_configurations TYPE SORTED TABLE OF ty_sral_configuration WITH UNIQUE KEY file_type. - - TYPES: - "!

eDocument Type Specific Additional Table Type

- "! eDocument Type Specific Additional Table type - BEGIN OF ty_additional_table, - "!

Sequence Number Type

- "! Sequence Number - "! $required - sequence_number_type TYPE c LENGTH 10, - "!

Table Name

- "! Table name - "! $required - table_name TYPE zif_aff_types_v1=>ty_object_name_30, - END OF ty_additional_table. - "!

eDocument Type Specific Additional Table Types

- "! eDocument Type Specific Additional Table types - TYPES ty_additional_tables TYPE SORTED TABLE OF ty_additional_table WITH UNIQUE KEY sequence_number_type. - - TYPES: - "!

General Information

- "! eDocument Type - BEGIN OF ty_edoc_information, - "!

eDocument Type

- "! eDoc Type - "! $required - edocument_type TYPE ty_edoc_type, - "!

Description

- "! eDocument Type Description - "! $required - edoc_type_desc TYPE ty_short_description, - "!

Created in Contingency Mode

- "! Contingency - contingency TYPE abap_bool, - "!

eDocument Type Created Using Contingency

- "! Contingency Type - contingency_type TYPE c LENGTH 10, - "!

Table Name

- "! Table name - table_name TYPE zif_aff_types_v1=>ty_object_name_30, - "!

Preprocess Before Archiving

- "! Archive Prep Req Type - "! $required - archive_prep_req_type TYPE abap_bool, - "!

Additional Selection Fields

- "! Additional selection fields of validation report - edocument_sral_configuration TYPE ty_sral_configurations, - "!

eDocument Type Specific Additional Tables

- "! eDocument Type Specific Additional Tables - edoc_spec_additional_table TYPE ty_additional_tables, - END OF ty_edoc_information. - - TYPES: - "!

eDocument Type

- "! eDocument Type - BEGIN OF ty_main, - "!

Format Version

- "! Format version - "! $required - format_version TYPE zif_aff_types_v1=>ty_format_version, - "!

Header

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

eDocument Type

- "! eDocument Type - "! $required - general_information TYPE ty_edoc_information, - - END OF ty_main. -ENDINTERFACE. diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.json b/file-formats/edot/type/zif_aff_edot_v1.intf.json deleted file mode 100644 index 77d2b8841..000000000 --- a/file-formats/edot/type/zif_aff_edot_v1.intf.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "formatVersion": "1", - "header": { - "description": "Create eDocument Types", - "originalLanguage": "en" - } -} From a1ec907510081ca7dc24a4999a158c00ca591555 Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Tue, 28 Jan 2025 10:04:14 +0100 Subject: [PATCH 05/24] [EDOT] Add files for EDOT --- file-formats/edot/.DS_Store | Bin 0 -> 6148 bytes file-formats/edot/README.md | 5 + file-formats/edot/edot-v1.json | 185 ++++++++++++++++++ .../edot/type/zif_aff_edot_v1.intf.abap | 103 ++++++++++ .../edot/type/zif_aff_edot_v1.intf.json | 7 + 5 files changed, 300 insertions(+) create mode 100644 file-formats/edot/.DS_Store create mode 100644 file-formats/edot/README.md create mode 100644 file-formats/edot/edot-v1.json create mode 100644 file-formats/edot/type/zif_aff_edot_v1.intf.abap create mode 100644 file-formats/edot/type/zif_aff_edot_v1.intf.json diff --git a/file-formats/edot/.DS_Store b/file-formats/edot/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..15c04208536080b609881173172966e05394ceb5 GIT binary patch literal 6148 zcmeH~F>b>!3`IW^4*{}x?5L#&$PI)bIYBQ_H0~B40n!fLbo72wTb%_`(ma_?&L1^T*|K_9AW70Z-{8X8XAOSd_o2|8HQ74j)4>oU06DN6#&ygRWbp!7ldY2#n&tFh z*=jL{cs<(5lGoK_>+J2Y96l`XY(B-%thd7o6Pne4f)tPfGX>T?AN~A4(jU$LvlgXN zKnnab1#CFH9rk>wJX`Nx&+G45^>w3@aXG`Ep8zI)6u;2JxLET HJXL{T_8Ah# literal 0 HcmV?d00001 diff --git a/file-formats/edot/README.md b/file-formats/edot/README.md new file mode 100644 index 000000000..23a553e6b --- /dev/null +++ b/file-formats/edot/README.md @@ -0,0 +1,5 @@ +# EDOT File Format + +File | Cardinality | Definition | Schema | Example +:--- | :--- | :--- | :--- | :--- +`.edot.json` | 1 | [`zif_aff_edot_v1.intf.abap`](./type/zif_aff_edot_v1.intf.abap) | [`edot-v1.json`](./edot-v1.json) diff --git a/file-formats/edot/edot-v1.json b/file-formats/edot/edot-v1.json new file mode 100644 index 000000000..35fe1e474 --- /dev/null +++ b/file-formats/edot/edot-v1.json @@ -0,0 +1,185 @@ +{ + "$comment": "This file is autogenerated, do not edit manually, see https://github.com/SAP/abap-file-formats for more information.", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://github.com/SAP/abap-file-formats/blob/main/file-formats/edot/edot-v1.json", + "title": "eDocument Type", + "description": "eDocument Type", + "type": "object", + "properties": { + "formatVersion": { + "title": "Format Version", + "description": "Format version", + "type": "string", + "const": "1" + }, + "header": { + "title": "Header", + "description": "Header", + "type": "object", + "properties": { + "description": { + "title": "Description", + "description": "Description of the ABAP object", + "type": "string", + "maxLength": 60 + }, + "originalLanguage": { + "title": "Original Language", + "description": "Original language of the ABAP object", + "type": "string", + "minLength": 2 + }, + "abapLanguageVersion": { + "title": "ABAP Language Version", + "description": "ABAP language version", + "type": "string", + "enum": [ + "standard", + "keyUser", + "cloudDevelopment" + ], + "enumTitles": [ + "Standard", + "ABAP for Key Users", + "ABAP Cloud Development" + ], + "enumDescriptions": [ + "Standard", + "ABAP for key user extensibility", + "ABAP cloud development" + ], + "default": "standard" + } + }, + "additionalProperties": false, + "required": [ + "description", + "originalLanguage" + ] + }, + "generalInformation": { + "title": "eDocument Type", + "description": "eDocument Type", + "type": "object", + "properties": { + "edocumentType": { + "title": "eDocument Type", + "description": "eDoc Type", + "type": "string", + "maxLength": 10 + }, + "edocTypeDesc": { + "title": "Description", + "description": "eDocument Type Description", + "type": "string", + "maxLength": 30 + }, + "contingency": { + "title": "Created in Contingency Mode", + "description": "Contingency", + "type": "boolean" + }, + "contingencyType": { + "title": "eDocument Type Created Using Contingency", + "description": "Contingency Type", + "type": "string", + "maxLength": 10 + }, + "tableName": { + "title": "Table Name", + "description": "Table name", + "type": "string", + "maxLength": 30 + }, + "archivePrepReqType": { + "title": "Preprocess Before Archiving", + "description": "Archive Prep Req Type", + "type": "boolean" + }, + "edocumentSralConfiguration": { + "title": "Additional Selection Fields", + "description": "Additional selection fields of validation report", + "type": "array", + "uniqueItems": true, + "items": { + "title": "SRAL Configuration Type", + "description": "eDocument SRAL Configuration type", + "type": "object", + "properties": { + "fileType": { + "title": "File Type", + "description": "File Type", + "type": "string", + "maxLength": 10 + }, + "fileStructureType": { + "title": "File Structure Type", + "description": "File Structure type", + "type": "string", + "maxLength": 30 + }, + "fileDescriptionType": { + "title": "File Description", + "description": "File Description type", + "type": "string", + "maxLength": 60 + }, + "notCloudRelevantType": { + "title": "File Cloud Relevancy", + "description": "File Cloud Relevancy type", + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "fileType", + "fileStructureType" + ] + } + }, + "edocSpecAdditionalTable": { + "title": "eDocument Type Specific Additional Tables", + "description": "eDocument Type Specific Additional Tables", + "type": "array", + "uniqueItems": true, + "items": { + "title": "eDocument Type Specific Additional Table Type", + "description": "eDocument Type Specific Additional Table type", + "type": "object", + "properties": { + "sequenceNumberType": { + "title": "Sequence Number Type", + "description": "Sequence Number", + "type": "string", + "maxLength": 10 + }, + "tableName": { + "title": "Table Name", + "description": "Table name", + "type": "string", + "maxLength": 30 + } + }, + "additionalProperties": false, + "required": [ + "sequenceNumberType", + "tableName" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "edocumentType", + "edocTypeDesc", + "archivePrepReqType" + ] + } + }, + "additionalProperties": false, + "required": [ + "formatVersion", + "header", + "generalInformation" + ] +} diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.abap b/file-formats/edot/type/zif_aff_edot_v1.intf.abap new file mode 100644 index 000000000..95f1d611c --- /dev/null +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.abap @@ -0,0 +1,103 @@ +"!

Create eDocument Types

+"! eDocument types that can be used in eInvoice Process +INTERFACE zif_aff_edot_v1 PUBLIC. + + "!

eDocument Type

+ "! Specify eDocument types + TYPES ty_edoc_type TYPE c LENGTH 10. + + "!

Description

+ "! Description + TYPES ty_short_description TYPE c LENGTH 30. + TYPES: + "!

SRAL Configuration Type

+ "! eDocument SRAL Configuration type + BEGIN OF ty_sral_configuration, + "!

File Type

+ "! File Type + "! $required + file_type TYPE c LENGTH 10, + "!

File Structure Type

+ "! File Structure type + "! $required + file_structure_type TYPE c LENGTH 30, + "!

File Description

+ "! File Description type + file_description_type TYPE c LENGTH 60, + "!

File Cloud Relevancy

+ "! File Cloud Relevancy type + not_cloud_relevant_type TYPE abap_bool, + END OF ty_sral_configuration. + "!

SRAL Configuration Types

+ "! SRAL Configuration types + TYPES ty_sral_configurations TYPE SORTED TABLE OF ty_sral_configuration WITH UNIQUE KEY file_type. + + TYPES: + "!

eDocument Type Specific Additional Table Type

+ "! eDocument Type Specific Additional Table type + BEGIN OF ty_additional_table, + "!

Sequence Number Type

+ "! Sequence Number + "! $required + sequence_number_type TYPE c LENGTH 10, + "!

Table Name

+ "! Table name + "! $required + table_name TYPE zif_aff_types_v1=>ty_object_name_30, + END OF ty_additional_table. + "!

eDocument Type Specific Additional Table Types

+ "! eDocument Type Specific Additional Table types + TYPES ty_additional_tables TYPE SORTED TABLE OF ty_additional_table WITH UNIQUE KEY sequence_number_type. + + TYPES: + "!

General Information

+ "! eDocument Type + BEGIN OF ty_edoc_information, + "!

eDocument Type

+ "! eDoc Type + "! $required + edocument_type TYPE ty_edoc_type, + "!

Description

+ "! eDocument Type Description + "! $required + edoc_type_desc TYPE ty_short_description, + "!

Created in Contingency Mode

+ "! Contingency + contingency TYPE abap_bool, + "!

eDocument Type Created Using Contingency

+ "! Contingency Type + contingency_type TYPE c LENGTH 10, + "!

Table Name

+ "! Table name + table_name TYPE zif_aff_types_v1=>ty_object_name_30, + "!

Preprocess Before Archiving

+ "! Archive Prep Req Type + "! $required + archive_prep_req_type TYPE abap_bool, + "!

Additional Selection Fields

+ "! Additional selection fields of validation report + edocument_sral_configuration TYPE ty_sral_configurations, + "!

eDocument Type Specific Additional Tables

+ "! eDocument Type Specific Additional Tables + edoc_spec_additional_table TYPE ty_additional_tables, + END OF ty_edoc_information. + + TYPES: + "!

eDocument Type

+ "! eDocument Type + BEGIN OF ty_main, + "!

Format Version

+ "! Format version + "! $required + format_version TYPE zif_aff_types_v1=>ty_format_version, + "!

Header

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

eDocument Type

+ "! eDocument Type + "! $required + general_information TYPE ty_edoc_information, + + END OF ty_main. +ENDINTERFACE. diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.json b/file-formats/edot/type/zif_aff_edot_v1.intf.json new file mode 100644 index 000000000..77d2b8841 --- /dev/null +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.json @@ -0,0 +1,7 @@ +{ + "formatVersion": "1", + "header": { + "description": "Create eDocument Types", + "originalLanguage": "en" + } +} From 6ed5d4c1cb978e20047dfcfdc7e5716cdb9e8a17 Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Tue, 4 Feb 2025 10:49:31 +0100 Subject: [PATCH 06/24] reaction to comments --- file-formats/edot/.DS_Store | Bin 6148 -> 6148 bytes file-formats/edot/edot-v1.json | 78 +++++--------- .../edot/type/zif_aff_edot_v1.intf.abap | 96 ++++++++---------- .../edot/type/zif_aff_edot_v1.intf.json | 2 +- 4 files changed, 74 insertions(+), 102 deletions(-) diff --git a/file-formats/edot/.DS_Store b/file-formats/edot/.DS_Store index 15c04208536080b609881173172966e05394ceb5..2c0486224174e161f31c5b877e695470ec2c25d1 100644 GIT binary patch delta 24 gcmZoMXfc@Jz{oJsQGR3MGWN;(BCMOaIezj30ARHTlK=n! delta 17 YcmZoMXfc@Jz{oh!QJ#@;W8z|Q04?7H`Tzg` diff --git a/file-formats/edot/edot-v1.json b/file-formats/edot/edot-v1.json index 35fe1e474..a78ad8964 100644 --- a/file-formats/edot/edot-v1.json +++ b/file-formats/edot/edot-v1.json @@ -3,7 +3,7 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/SAP/abap-file-formats/blob/main/file-formats/edot/edot-v1.json", "title": "eDocument Type", - "description": "eDocument Type", + "description": "eDocument type", "type": "object", "properties": { "formatVersion": { @@ -18,10 +18,8 @@ "type": "object", "properties": { "description": { - "title": "Description", - "description": "Description of the ABAP object", "type": "string", - "maxLength": 60 + "maxLength": 30 }, "originalLanguage": { "title": "Original Language", @@ -35,17 +33,14 @@ "type": "string", "enum": [ "standard", - "keyUser", "cloudDevelopment" ], "enumTitles": [ "Standard", - "ABAP for Key Users", "ABAP Cloud Development" ], "enumDescriptions": [ "Standard", - "ABAP for key user extensibility", "ABAP cloud development" ], "default": "standard" @@ -58,42 +53,30 @@ ] }, "generalInformation": { - "title": "eDocument Type", - "description": "eDocument Type", + "title": "General Information", + "description": "General information", "type": "object", "properties": { - "edocumentType": { - "title": "eDocument Type", - "description": "eDoc Type", - "type": "string", - "maxLength": 10 - }, - "edocTypeDesc": { - "title": "Description", - "description": "eDocument Type Description", + "tableName": { + "title": "eDocument Table Name", + "description": "eDocument table name", "type": "string", "maxLength": 30 }, "contingency": { "title": "Created in Contingency Mode", - "description": "Contingency", + "description": "Created in contingency mode", "type": "boolean" }, "contingencyType": { "title": "eDocument Type Created Using Contingency", - "description": "Contingency Type", + "description": "eDocument type created using contingency", "type": "string", "maxLength": 10 }, - "tableName": { - "title": "Table Name", - "description": "Table name", - "type": "string", - "maxLength": 30 - }, - "archivePrepReqType": { + "archivePrepReq": { "title": "Preprocess Before Archiving", - "description": "Archive Prep Req Type", + "description": "Preprocess before archiving", "type": "boolean" }, "edocumentSralConfiguration": { @@ -103,53 +86,53 @@ "uniqueItems": true, "items": { "title": "SRAL Configuration Type", - "description": "eDocument SRAL Configuration type", + "description": "SRAL configuration type", "type": "object", "properties": { "fileType": { "title": "File Type", - "description": "File Type", + "description": "File type", "type": "string", "maxLength": 10 }, - "fileStructureType": { + "fileStructure": { "title": "File Structure Type", - "description": "File Structure type", + "description": "File structure type", "type": "string", "maxLength": 30 }, - "fileDescriptionType": { + "fileDescription": { "title": "File Description", - "description": "File Description type", + "description": "File description", "type": "string", "maxLength": 60 }, - "notCloudRelevantType": { + "isCloudRelevant": { "title": "File Cloud Relevancy", - "description": "File Cloud Relevancy type", + "description": "File cloud relevancy type", "type": "boolean" } }, "additionalProperties": false, "required": [ "fileType", - "fileStructureType" + "fileStructure" ] } }, "edocSpecAdditionalTable": { "title": "eDocument Type Specific Additional Tables", - "description": "eDocument Type Specific Additional Tables", + "description": "eDocument type specific additional tables", "type": "array", "uniqueItems": true, "items": { - "title": "eDocument Type Specific Additional Table Type", - "description": "eDocument Type Specific Additional Table type", + "title": "eDocument Type Specific Additional Tables", + "description": "eDocument type specific additional tables", "type": "object", "properties": { - "sequenceNumberType": { - "title": "Sequence Number Type", - "description": "Sequence Number", + "sequenceNumber": { + "title": "Sequence Number", + "description": "Sequence number", "type": "string", "maxLength": 10 }, @@ -162,18 +145,13 @@ }, "additionalProperties": false, "required": [ - "sequenceNumberType", + "sequenceNumber", "tableName" ] } } }, - "additionalProperties": false, - "required": [ - "edocumentType", - "edocTypeDesc", - "archivePrepReqType" - ] + "additionalProperties": false } }, "additionalProperties": false, diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.abap b/file-formats/edot/type/zif_aff_edot_v1.intf.abap index 95f1d611c..7a965bd2a 100644 --- a/file-formats/edot/type/zif_aff_edot_v1.intf.abap +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.abap @@ -1,90 +1,84 @@ -"!

Create eDocument Types

-"! eDocument types that can be used in eInvoice Process +"!

eDocument Type

+"! eDocument types that can be used in eInvoice process INTERFACE zif_aff_edot_v1 PUBLIC. - "!

eDocument Type

- "! Specify eDocument types - TYPES ty_edoc_type TYPE c LENGTH 10. - - "!

Description

- "! Description - TYPES ty_short_description TYPE c LENGTH 30. TYPES: "!

SRAL Configuration Type

- "! eDocument SRAL Configuration type + "! SRAL configuration type BEGIN OF ty_sral_configuration, "!

File Type

- "! File Type + "! File type "! $required - file_type TYPE c LENGTH 10, + file_type TYPE c LENGTH 10, "!

File Structure Type

- "! File Structure type + "! File structure type "! $required - file_structure_type TYPE c LENGTH 30, + file_structure TYPE c LENGTH 30, "!

File Description

- "! File Description type - file_description_type TYPE c LENGTH 60, + "! File description + file_description TYPE c LENGTH 60, "!

File Cloud Relevancy

- "! File Cloud Relevancy type - not_cloud_relevant_type TYPE abap_bool, + "! File cloud relevancy type + is_cloud_relevant TYPE abap_bool, END OF ty_sral_configuration. - "!

SRAL Configuration Types

- "! SRAL Configuration types + "!

SRAL Configuration

+ "! SRAL configuration TYPES ty_sral_configurations TYPE SORTED TABLE OF ty_sral_configuration WITH UNIQUE KEY file_type. TYPES: - "!

eDocument Type Specific Additional Table Type

- "! eDocument Type Specific Additional Table type + "!

eDocument Type Specific Additional Tables

+ "! eDocument type specific additional tables BEGIN OF ty_additional_table, - "!

Sequence Number Type

- "! Sequence Number + "!

Sequence Number

+ "! Sequence number "! $required - sequence_number_type TYPE c LENGTH 10, + sequence_number TYPE c LENGTH 10, "!

Table Name

"! Table name "! $required - table_name TYPE zif_aff_types_v1=>ty_object_name_30, + table_name TYPE zif_aff_types_v1=>ty_object_name_30, END OF ty_additional_table. - "!

eDocument Type Specific Additional Table Types

- "! eDocument Type Specific Additional Table types - TYPES ty_additional_tables TYPE SORTED TABLE OF ty_additional_table WITH UNIQUE KEY sequence_number_type. + "!

eDocument Type Specific Additional Tables

+ "! eDocument type specific additional tables + TYPES ty_additional_tables TYPE SORTED TABLE OF ty_additional_table WITH UNIQUE KEY sequence_number. TYPES: "!

General Information

- "! eDocument Type + "! General information BEGIN OF ty_edoc_information, - "!

eDocument Type

- "! eDoc Type - "! $required - edocument_type TYPE ty_edoc_type, - "!

Description

- "! eDocument Type Description - "! $required - edoc_type_desc TYPE ty_short_description, + "!

eDocument Local Table Name

+ "! eDocument local table name + table_name TYPE zif_aff_types_v1=>ty_object_name_30, "!

Created in Contingency Mode

- "! Contingency + "! Created in contingency mode contingency TYPE abap_bool, "!

eDocument Type Created Using Contingency

- "! Contingency Type + "! eDocument type created using contingency contingency_type TYPE c LENGTH 10, - "!

Table Name

- "! Table name - table_name TYPE zif_aff_types_v1=>ty_object_name_30, "!

Preprocess Before Archiving

- "! Archive Prep Req Type - "! $required - archive_prep_req_type TYPE abap_bool, + "! Preprocess before archiving + archive_prep_req TYPE abap_bool, "!

Additional Selection Fields

"! Additional selection fields of validation report edocument_sral_configuration TYPE ty_sral_configurations, "!

eDocument Type Specific Additional Tables

- "! eDocument Type Specific Additional Tables + "! eDocument type specific additional tables edoc_spec_additional_table TYPE ty_additional_tables, END OF ty_edoc_information. + TYPES: + "!

Header

+ "! The header for an ABAP main object (without source code) with a description of 30 characters (no key user) + BEGIN OF ty_header_30_cloud, + "! $required + description TYPE c LENGTH 30, + "! $required + original_language TYPE zif_aff_types_v1=>ty_original_language, + abap_language_version TYPE zif_aff_types_v1=>ty_abap_language_version_cloud, + END OF ty_header_30_cloud. TYPES: "!

eDocument Type

- "! eDocument Type + "! eDocument type BEGIN OF ty_main, "!

Format Version

"! Format version @@ -93,9 +87,9 @@ INTERFACE zif_aff_edot_v1 PUBLIC. "!

Header

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

eDocument Type

- "! eDocument Type + header TYPE ty_header_30_cloud, + "!

General Information

+ "! General information "! $required general_information TYPE ty_edoc_information, diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.json b/file-formats/edot/type/zif_aff_edot_v1.intf.json index 77d2b8841..6754ccad1 100644 --- a/file-formats/edot/type/zif_aff_edot_v1.intf.json +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.json @@ -1,7 +1,7 @@ { "formatVersion": "1", "header": { - "description": "Create eDocument Types", + "description": "eDocument Type", "originalLanguage": "en" } } From 4c96d926202779f92b24e2243139a3427e1fd0fd Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Tue, 4 Feb 2025 10:53:01 +0100 Subject: [PATCH 07/24] delete other object files in PR --- file-formats/edoi/README.md | 5 - file-formats/edoi/edoi-v1.json | 207 ------------------ .../edoi/type/zif_aff_edoi_v1.intf.abap | 120 ---------- .../edoi/type/zif_aff_edoi_v1.intf.json | 7 - 4 files changed, 339 deletions(-) delete mode 100644 file-formats/edoi/README.md delete mode 100644 file-formats/edoi/edoi-v1.json delete mode 100644 file-formats/edoi/type/zif_aff_edoi_v1.intf.abap delete mode 100644 file-formats/edoi/type/zif_aff_edoi_v1.intf.json diff --git a/file-formats/edoi/README.md b/file-formats/edoi/README.md deleted file mode 100644 index 4061063fc..000000000 --- a/file-formats/edoi/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# EDOI File Format - -File | Cardinality | Definition | Schema | Example -:--- | :--- | :--- | :--- | :--- -`.edoi.json` | 1 | [`zif_aff_edoi_v1.intf.abap`](./type/zif_aff_edoi_v1.intf.abap) | [`edoi-v1.json`](./edoi-v1.json) diff --git a/file-formats/edoi/edoi-v1.json b/file-formats/edoi/edoi-v1.json deleted file mode 100644 index 0e20aaed2..000000000 --- a/file-formats/edoi/edoi-v1.json +++ /dev/null @@ -1,207 +0,0 @@ -{ - "$comment": "This file is autogenerated, do not edit manually, see https://github.com/SAP/abap-file-formats for more information.", - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://github.com/SAP/abap-file-formats/blob/main/file-formats/edoi/edoi-v1.json", - "title": "eDocument Interface", - "description": "eDocument Interface", - "type": "object", - "properties": { - "formatVersion": { - "title": "Format Version", - "description": "Format version", - "type": "string", - "const": "1" - }, - "header": { - "title": "Header", - "description": "Header", - "type": "object", - "properties": { - "description": { - "title": "Description", - "description": "Description of the ABAP object", - "type": "string", - "maxLength": 60 - }, - "originalLanguage": { - "title": "Original Language", - "description": "Original language of the ABAP object", - "type": "string", - "minLength": 2 - }, - "abapLanguageVersion": { - "title": "ABAP Language Version", - "description": "ABAP language version", - "type": "string", - "enum": [ - "standard", - "keyUser", - "cloudDevelopment" - ], - "enumTitles": [ - "Standard", - "ABAP for Key Users", - "ABAP Cloud Development" - ], - "enumDescriptions": [ - "Standard", - "ABAP for key user extensibility", - "ABAP cloud development" - ], - "default": "standard" - } - }, - "additionalProperties": false, - "required": [ - "description", - "originalLanguage" - ] - }, - "generalInformation": { - "title": "eDocument Interface", - "description": "eDocument Interface", - "type": "object", - "properties": { - "edocumentInterfaceId": { - "title": "eDocument Interface", - "description": "eDocument Interface", - "type": "string", - "maxLength": 30 - }, - "interfaceDescription": { - "title": "eDocument Interface Description", - "description": "Interface Description.", - "type": "string", - "maxLength": 100 - }, - "interfaceDirection": { - "title": "eDocument Interface Direction", - "description": "Interface Direction.", - "type": "string", - "enum": [ - "outbound", - "inbound" - ], - "enumTitles": [ - "Outbound", - "Inbound" - ], - "enumDescriptions": [ - "Outbound", - "Inbound" - ], - "default": "outbound" - }, - "edocumentInterfaceVersion": { - "title": "Interface Version", - "description": "Interface Version", - "type": "array", - "uniqueItems": true, - "items": { - "title": "Interface Version", - "description": "eDocument Interface Version", - "type": "object", - "properties": { - "intVersion": { - "title": "Interface Version", - "description": "Interface Version", - "type": "string", - "maxLength": 4 - }, - "intVersionDesc": { - "title": "Interface Version Description", - "description": "Interface Version Description", - "type": "string", - "maxLength": 30 - }, - "activeFrom": { - "title": "Active From", - "description": "Active from", - "type": "string", - "format": "date-time" - } - }, - "additionalProperties": false, - "required": [ - "intVersion", - "intVersionDesc", - "activeFrom" - ] - } - }, - "edocSpecAdditionalTable": { - "title": "Attribute Determination for Communication with Cloud Edition", - "description": "DRC Integration Attribute Determination", - "type": "array", - "uniqueItems": true, - "items": { - "title": "Attribute Determination for Communication with Cloud Edition", - "description": "DRC Integration Attribute Determination", - "type": "object", - "properties": { - "processType": { - "title": "Process Type", - "description": "DRC Process Type", - "type": "string", - "maxLength": 50 - }, - "processVersion": { - "title": "Process Version", - "description": "DRC Process Version", - "type": "string", - "maxLength": 20 - }, - "processSubtype": { - "title": "Process Subtype", - "description": "DRC Process Subtype", - "type": "string", - "maxLength": 50 - }, - "drcAction": { - "title": "Action", - "description": "DRC Process Action", - "type": "string", - "maxLength": 30 - }, - "respInterfaceId": { - "title": "Response Interface", - "description": "eDoc Response Interface", - "type": "string", - "maxLength": 30 - }, - "respIntVersion": { - "title": "Response Interface Version", - "description": "Response Interface Version", - "type": "string", - "maxLength": 4 - } - }, - "additionalProperties": false, - "required": [ - "processType", - "processVersion", - "processSubtype", - "drcAction", - "respInterfaceId", - "respIntVersion" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "edocumentInterfaceId", - "interfaceDescription", - "interfaceDirection", - "edocumentInterfaceVersion", - "edocSpecAdditionalTable" - ] - } - }, - "additionalProperties": false, - "required": [ - "formatVersion", - "header", - "generalInformation" - ] -} diff --git a/file-formats/edoi/type/zif_aff_edoi_v1.intf.abap b/file-formats/edoi/type/zif_aff_edoi_v1.intf.abap deleted file mode 100644 index 90d3997e0..000000000 --- a/file-formats/edoi/type/zif_aff_edoi_v1.intf.abap +++ /dev/null @@ -1,120 +0,0 @@ -INTERFACE zif_aff_edoi_v1 PUBLIC. - - "!

Interface direction

- "! Interface direction - "! $required - "! $values {@link zif_aff_edoi_v1.data:co_edoc_int_direction} - "! $default {@link zif_aff_edoi_v1.data:co_edoc_int_direction.outbound} - TYPES ty_int_direction TYPE c LENGTH 1. - TYPES: - "!

Interface Version

- "! eDocument Interface Version - BEGIN OF ty_edoc_interface_version, - "!

Interface Version

- "! Interface Version - "! $required - int_version TYPE c LENGTH 4, - "!

Interface Version Description

- "! Interface Version Description - "! $required - int_version_desc TYPE c LENGTH 30, - "!

Active From

- "! Active from - "! $required - active_from TYPE sy-datum, - - END OF ty_edoc_interface_version. - "!

Interface Versions

- "! eDocument Interface Versions - TYPES ty_edoc_interface_versions TYPE SORTED TABLE OF ty_edoc_interface_version WITH UNIQUE KEY int_version. - TYPES: - "!

Attribute Determination for Communication with Cloud Edition

- "! DRC Integration Attribute Determination - BEGIN OF ty_edoc_int_drc_attr, - "!

Process Type

- "! DRC Process Type - "! $required - process_type TYPE c LENGTH 50, - "!

Process Version

- "! DRC Process Version - "! $required - process_version TYPE c LENGTH 20, - "!

Process Subtype

- "! DRC Process Subtype - "! $required - process_subtype TYPE c LENGTH 50, - "!

Action

- "! DRC Process Action - "! $required - drc_action TYPE c LENGTH 30, - "!

Response Interface

- "! eDoc Response Interface - "! $required - resp_interface_id TYPE c LENGTH 30, - "!

Response Interface Version

- "! Response Interface Version - "! $required - resp_int_version TYPE c LENGTH 4, - - END OF ty_edoc_int_drc_attr. - "!

Interface Versions

- "! eDocument Interface Versions - TYPES ty_edoc_int_drc_attributes TYPE SORTED TABLE OF ty_edoc_int_drc_attr WITH UNIQUE KEY process_type. - TYPES: - "!

General Information

- "! eDocument Interface - BEGIN OF ty_edoc_interface, - "!

eDocument Interface

- "! eDocument Interface - "! $required - edocument_interface_id TYPE c LENGTH 30, - "!

eDocument Interface Description

- "! Interface Description. - "! $required - interface_description TYPE c LENGTH 100, - - "!

eDocument Interface Direction

- "! Interface Direction. - "! $required - interface_direction TYPE ty_int_direction, - - "!

Interface Version

- "! Interface Version - "! $required - edocument_interface_version TYPE ty_edoc_interface_versions, - "!

Attribute Determination for Communication with Cloud Edition

- "! DRC Integration Attribute Determination - "! $required - edoc_spec_additional_table TYPE ty_edoc_int_drc_attributes, - END OF ty_edoc_interface. - TYPES: - "!

eDocument Interface

- "! eDocument Interface - BEGIN OF ty_main, - "!

Format Version

- "! Format version - "! $required - format_version TYPE zif_aff_types_v1=>ty_format_version, - "!

Header

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

eDocument Interface

- "! eDocument Interface - "! $required - general_information TYPE ty_edoc_interface, - - END OF ty_main. - - CONSTANTS: - "!

Interface Direction

- "! Interface Direction - BEGIN OF co_edoc_int_direction, - "!

Outbound

- "! Outbound - outbound TYPE ty_int_direction VALUE 'O', - "!

Inbound

- "! Inbound - inbound TYPE ty_int_direction VALUE 'I', - END OF co_edoc_int_direction. -ENDINTERFACE. diff --git a/file-formats/edoi/type/zif_aff_edoi_v1.intf.json b/file-formats/edoi/type/zif_aff_edoi_v1.intf.json deleted file mode 100644 index 77d2b8841..000000000 --- a/file-formats/edoi/type/zif_aff_edoi_v1.intf.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "formatVersion": "1", - "header": { - "description": "Create eDocument Types", - "originalLanguage": "en" - } -} From a7025f31d8740d8793bd88fa9608fe9cc894195f Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Tue, 4 Feb 2025 11:37:53 +0100 Subject: [PATCH 08/24] correction --- file-formats/edot/type/zif_aff_edot_v1.intf.abap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.abap b/file-formats/edot/type/zif_aff_edot_v1.intf.abap index 7a965bd2a..d12ae508c 100644 --- a/file-formats/edot/type/zif_aff_edot_v1.intf.abap +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.abap @@ -46,8 +46,8 @@ INTERFACE zif_aff_edot_v1 PUBLIC. "!

General Information

"! General information BEGIN OF ty_edoc_information, - "!

eDocument Local Table Name

- "! eDocument local table name + "!

Table Name

+ "! Table name table_name TYPE zif_aff_types_v1=>ty_object_name_30, "!

Created in Contingency Mode

"! Created in contingency mode From bdd762a91bbfc4bece2f500d896af9244507975b Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Tue, 4 Feb 2025 12:59:19 +0100 Subject: [PATCH 09/24] corrections --- file-formats/edot/type/zif_aff_edot_v1.intf.abap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.abap b/file-formats/edot/type/zif_aff_edot_v1.intf.abap index d12ae508c..67e18b043 100644 --- a/file-formats/edot/type/zif_aff_edot_v1.intf.abap +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.abap @@ -46,8 +46,8 @@ INTERFACE zif_aff_edot_v1 PUBLIC. "!

General Information

"! General information BEGIN OF ty_edoc_information, - "!

Table Name

- "! Table name + "!

eDocument Table Name

+ "! eDocument table name table_name TYPE zif_aff_types_v1=>ty_object_name_30, "!

Created in Contingency Mode

"! Created in contingency mode From 1c07f0799ad5915c45c85f04ed64ed20267c31be Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Fri, 14 Feb 2025 12:00:16 +0000 Subject: [PATCH 10/24] Remove .DS_Store files --- file-formats/edot/.DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 file-formats/edot/.DS_Store diff --git a/file-formats/edot/.DS_Store b/file-formats/edot/.DS_Store deleted file mode 100644 index 2c0486224174e161f31c5b877e695470ec2c25d1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeH~y{ZC1426^H7Q$_|w4BBV@C^phC-4QtpKd`xEp9iDeouZ7T&+dq1d?x(nXv3B zb~YlS%iCcg(u>FxZj`x&kty;{uJR{mIUX+iVRt$WdFCf+XW+ez_H&z{0#twsPys4H z1wKdtySHJ}-ykCupaN9ju7G_X3fx$eE$E*P1Rnvw4rMp2eU<==6~LNoK~!KGtzfjO zk0Dm~cCh5Rnry*n7tP^A^T}#c3{0b4v><_Lbudr?Dlk%D5_xa;{~G>k{vWk4r2R From 777533b862c559712d98a753228370abd21f013e Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Wed, 19 Feb 2025 14:13:28 +0100 Subject: [PATCH 11/24] corrections --- file-formats/edot/edot-v1.json | 152 +++++++++--------- .../edot/type/zif_aff_edot_v1.intf.abap | 40 +++-- 2 files changed, 101 insertions(+), 91 deletions(-) diff --git a/file-formats/edot/edot-v1.json b/file-formats/edot/edot-v1.json index a78ad8964..571d2a162 100644 --- a/file-formats/edot/edot-v1.json +++ b/file-formats/edot/edot-v1.json @@ -18,12 +18,14 @@ "type": "object", "properties": { "description": { + "title": "Description", + "description": "eDocument type description", "type": "string", "maxLength": 30 }, "originalLanguage": { "title": "Original Language", - "description": "Original language of the ABAP object", + "description": "Original language of the eDocument type", "type": "string", "minLength": 2 }, @@ -63,95 +65,95 @@ "type": "string", "maxLength": 30 }, - "contingency": { + "contingencyMode": { "title": "Created in Contingency Mode", "description": "Created in contingency mode", "type": "boolean" }, - "contingencyType": { + "contingencyEdocType": { "title": "eDocument Type Created Using Contingency", "description": "eDocument type created using contingency", "type": "string", "maxLength": 10 }, - "archivePrepReq": { + "archivePreprocess": { "title": "Preprocess Before Archiving", "description": "Preprocess before archiving", "type": "boolean" - }, - "edocumentSralConfiguration": { - "title": "Additional Selection Fields", - "description": "Additional selection fields of validation report", - "type": "array", - "uniqueItems": true, - "items": { - "title": "SRAL Configuration Type", - "description": "SRAL configuration type", - "type": "object", - "properties": { - "fileType": { - "title": "File Type", - "description": "File type", - "type": "string", - "maxLength": 10 - }, - "fileStructure": { - "title": "File Structure Type", - "description": "File structure type", - "type": "string", - "maxLength": 30 - }, - "fileDescription": { - "title": "File Description", - "description": "File description", - "type": "string", - "maxLength": 60 - }, - "isCloudRelevant": { - "title": "File Cloud Relevancy", - "description": "File cloud relevancy type", - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "fileType", - "fileStructure" - ] - } - }, - "edocSpecAdditionalTable": { - "title": "eDocument Type Specific Additional Tables", - "description": "eDocument type specific additional tables", - "type": "array", - "uniqueItems": true, - "items": { - "title": "eDocument Type Specific Additional Tables", - "description": "eDocument type specific additional tables", - "type": "object", - "properties": { - "sequenceNumber": { - "title": "Sequence Number", - "description": "Sequence number", - "type": "string", - "maxLength": 10 - }, - "tableName": { - "title": "Table Name", - "description": "Table name", - "type": "string", - "maxLength": 30 - } - }, - "additionalProperties": false, - "required": [ - "sequenceNumber", - "tableName" - ] - } } }, "additionalProperties": false + }, + "edocumentSralConfiguration": { + "title": "Additional Selection Fields", + "description": "Additional selection fields of validation report", + "type": "array", + "uniqueItems": true, + "items": { + "title": "SRAL Configuration Type", + "description": "SRAL configuration type", + "type": "object", + "properties": { + "fileType": { + "title": "File Type", + "description": "File type", + "type": "string", + "maxLength": 10 + }, + "fileStructure": { + "title": "File Structure Type", + "description": "File structure type", + "type": "string", + "maxLength": 30 + }, + "fileDescription": { + "title": "File Description", + "description": "File description", + "type": "string", + "maxLength": 60 + }, + "isCloudRelevant": { + "title": "File Cloud Relevancy", + "description": "File cloud relevancy", + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "fileType", + "fileStructure" + ] + } + }, + "edocSpecAdditionalTable": { + "title": "eDocument Type Specific Additional Tables", + "description": "eDocument type specific additional tables", + "type": "array", + "uniqueItems": true, + "items": { + "title": "eDocument Type Specific Additional Tables", + "description": "eDocument type specific additional tables", + "type": "object", + "properties": { + "sequenceNumber": { + "title": "Sequence Number", + "description": "Sequence number", + "type": "string", + "maxLength": 10 + }, + "tableName": { + "title": "Table Name", + "description": "Table name", + "type": "string", + "maxLength": 30 + } + }, + "additionalProperties": false, + "required": [ + "sequenceNumber", + "tableName" + ] + } } }, "additionalProperties": false, diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.abap b/file-formats/edot/type/zif_aff_edot_v1.intf.abap index 67e18b043..d828458e6 100644 --- a/file-formats/edot/type/zif_aff_edot_v1.intf.abap +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.abap @@ -18,7 +18,7 @@ INTERFACE zif_aff_edot_v1 PUBLIC. "! File description file_description TYPE c LENGTH 60, "!

File Cloud Relevancy

- "! File cloud relevancy type + "! File cloud relevancy is_cloud_relevant TYPE abap_bool, END OF ty_sral_configuration. "!

SRAL Configuration

@@ -48,31 +48,33 @@ INTERFACE zif_aff_edot_v1 PUBLIC. BEGIN OF ty_edoc_information, "!

eDocument Table Name

"! eDocument table name - table_name TYPE zif_aff_types_v1=>ty_object_name_30, + table_name TYPE zif_aff_types_v1=>ty_object_name_30, "!

Created in Contingency Mode

"! Created in contingency mode - contingency TYPE abap_bool, + contingency_mode TYPE abap_bool, "!

eDocument Type Created Using Contingency

"! eDocument type created using contingency - contingency_type TYPE c LENGTH 10, + contingency_edoc_type TYPE c LENGTH 10, "!

Preprocess Before Archiving

"! Preprocess before archiving - archive_prep_req TYPE abap_bool, - "!

Additional Selection Fields

- "! Additional selection fields of validation report - edocument_sral_configuration TYPE ty_sral_configurations, - "!

eDocument Type Specific Additional Tables

- "! eDocument type specific additional tables - edoc_spec_additional_table TYPE ty_additional_tables, + archive_preprocess TYPE abap_bool, END OF ty_edoc_information. TYPES: - "!

Header

+ "!

Header for EDOT object

"! The header for an ABAP main object (without source code) with a description of 30 characters (no key user) BEGIN OF ty_header_30_cloud, + "!

Description

+ "! eDocument type description "! $required description TYPE c LENGTH 30, + "!

Original Language

+ "! Original language of the eDocument type "! $required - original_language TYPE zif_aff_types_v1=>ty_original_language, + original_language TYPE sy-langu, + "!

ABAP Language Version

+ "! ABAP language version + "! $values {@link zif_aff_types_v1.data:co_abap_language_version_cloud} + "! $default {@link zif_aff_types_v1.data:co_abap_language_version_cloud.standard} abap_language_version TYPE zif_aff_types_v1=>ty_abap_language_version_cloud, END OF ty_header_30_cloud. @@ -83,15 +85,21 @@ INTERFACE zif_aff_edot_v1 PUBLIC. "!

Format Version

"! Format version "! $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 ty_header_30_cloud, + header TYPE ty_header_30_cloud, "!

General Information

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

Additional Selection Fields

+ "! Additional selection fields of validation report + edocument_sral_configuration TYPE ty_sral_configurations, + "!

eDocument Type Specific Additional Tables

+ "! eDocument type specific additional tables + edoc_spec_additional_table TYPE ty_additional_tables, END OF ty_main. ENDINTERFACE. From 683a98d0fb9823b056cc79bc7373d85d3f5e0c08 Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Wed, 26 Feb 2025 11:15:40 +0100 Subject: [PATCH 12/24] corrections --- file-formats/edot/edot-v1.json | 16 +++---- .../edot/type/zif_aff_edot_v1.intf.abap | 44 +++++++++---------- .../edot/type/zif_aff_edot_v1.intf.json | 2 +- 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/file-formats/edot/edot-v1.json b/file-formats/edot/edot-v1.json index 571d2a162..6ee119a1c 100644 --- a/file-formats/edot/edot-v1.json +++ b/file-formats/edot/edot-v1.json @@ -65,26 +65,26 @@ "type": "string", "maxLength": 30 }, + "archivePreprocess": { + "title": "Preprocess Before Archiving", + "description": "Preprocess before archiving", + "type": "boolean" + }, "contingencyMode": { "title": "Created in Contingency Mode", "description": "Created in contingency mode", "type": "boolean" }, "contingencyEdocType": { - "title": "eDocument Type Created Using Contingency", - "description": "eDocument type created using contingency", + "title": "Contingency eDocument Type", + "description": "Contingency eDocument type", "type": "string", "maxLength": 10 - }, - "archivePreprocess": { - "title": "Preprocess Before Archiving", - "description": "Preprocess before archiving", - "type": "boolean" } }, "additionalProperties": false }, - "edocumentSralConfiguration": { + "sralConfiguration": { "title": "Additional Selection Fields", "description": "Additional selection fields of validation report", "type": "array", diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.abap b/file-formats/edot/type/zif_aff_edot_v1.intf.abap index d828458e6..328b1224a 100644 --- a/file-formats/edot/type/zif_aff_edot_v1.intf.abap +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.abap @@ -1,6 +1,7 @@ -"!

eDocument Type

+"!

AFF for eDocument Type (EDOT)

"! eDocument types that can be used in eInvoice process -INTERFACE zif_aff_edot_v1 PUBLIC. +INTERFACE zif_aff_edot_v1 + PUBLIC . TYPES: "!

SRAL Configuration Type

@@ -20,11 +21,11 @@ INTERFACE zif_aff_edot_v1 PUBLIC. "!

File Cloud Relevancy

"! File cloud relevancy is_cloud_relevant TYPE abap_bool, - END OF ty_sral_configuration. + END OF ty_sral_configuration . + TYPES: "!

SRAL Configuration

"! SRAL configuration - TYPES ty_sral_configurations TYPE SORTED TABLE OF ty_sral_configuration WITH UNIQUE KEY file_type. - + ty_sral_configurations TYPE SORTED TABLE OF ty_sral_configuration WITH UNIQUE KEY file_type . TYPES: "!

eDocument Type Specific Additional Tables

"! eDocument type specific additional tables @@ -37,11 +38,11 @@ INTERFACE zif_aff_edot_v1 PUBLIC. "! Table name "! $required table_name TYPE zif_aff_types_v1=>ty_object_name_30, - END OF ty_additional_table. + END OF ty_additional_table . + TYPES: "!

eDocument Type Specific Additional Tables

"! eDocument type specific additional tables - TYPES ty_additional_tables TYPE SORTED TABLE OF ty_additional_table WITH UNIQUE KEY sequence_number. - + ty_additional_tables TYPE SORTED TABLE OF ty_additional_table WITH UNIQUE KEY sequence_number . TYPES: "!

General Information

"! General information @@ -49,16 +50,16 @@ INTERFACE zif_aff_edot_v1 PUBLIC. "!

eDocument Table Name

"! eDocument table name table_name TYPE zif_aff_types_v1=>ty_object_name_30, + "!

Preprocess Before Archiving

+ "! Preprocess before archiving + archive_preprocess TYPE abap_bool, "!

Created in Contingency Mode

"! Created in contingency mode contingency_mode TYPE abap_bool, - "!

eDocument Type Created Using Contingency

- "! eDocument type created using contingency + "!

Contingency eDocument Type

+ "! Contingency eDocument Type contingency_edoc_type TYPE c LENGTH 10, - "!

Preprocess Before Archiving

- "! Preprocess before archiving - archive_preprocess TYPE abap_bool, - END OF ty_edoc_information. + END OF ty_edoc_information . TYPES: "!

Header for EDOT object

"! The header for an ABAP main object (without source code) with a description of 30 characters (no key user) @@ -76,8 +77,7 @@ INTERFACE zif_aff_edot_v1 PUBLIC. "! $values {@link zif_aff_types_v1.data:co_abap_language_version_cloud} "! $default {@link zif_aff_types_v1.data:co_abap_language_version_cloud.standard} abap_language_version TYPE zif_aff_types_v1=>ty_abap_language_version_cloud, - END OF ty_header_30_cloud. - + END OF ty_header_30_cloud . TYPES: "!

eDocument Type

"! eDocument type @@ -85,21 +85,21 @@ INTERFACE zif_aff_edot_v1 PUBLIC. "!

Format Version

"! Format version "! $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 ty_header_30_cloud, + header TYPE ty_header_30_cloud, "!

General Information

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

Additional Selection Fields

"! Additional selection fields of validation report - edocument_sral_configuration TYPE ty_sral_configurations, + sral_configuration TYPE ty_sral_configurations, "!

eDocument Type Specific Additional Tables

"! eDocument type specific additional tables - edoc_spec_additional_table TYPE ty_additional_tables, + edoc_spec_additional_table TYPE ty_additional_tables, - END OF ty_main. + END OF ty_main . ENDINTERFACE. diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.json b/file-formats/edot/type/zif_aff_edot_v1.intf.json index 6754ccad1..ab06b1e48 100644 --- a/file-formats/edot/type/zif_aff_edot_v1.intf.json +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.json @@ -1,7 +1,7 @@ { "formatVersion": "1", "header": { - "description": "eDocument Type", + "description": "AFF for eDocument Type (EDOT)", "originalLanguage": "en" } } From 6838a1041be935418536e02d1abff59d20650fc6 Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Wed, 26 Feb 2025 11:23:30 +0100 Subject: [PATCH 13/24] correction --- file-formats/edot/type/zif_aff_edot_v1.intf.abap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.abap b/file-formats/edot/type/zif_aff_edot_v1.intf.abap index 328b1224a..cf8588d6c 100644 --- a/file-formats/edot/type/zif_aff_edot_v1.intf.abap +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.abap @@ -57,7 +57,7 @@ INTERFACE zif_aff_edot_v1 "! Created in contingency mode contingency_mode TYPE abap_bool, "!

Contingency eDocument Type

- "! Contingency eDocument Type + "! Contingency eDocument type contingency_edoc_type TYPE c LENGTH 10, END OF ty_edoc_information . TYPES: From ec64a94d417fa3cc61ea3278c78618d1933fe614 Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Wed, 26 Feb 2025 11:43:48 +0100 Subject: [PATCH 14/24] correction --- .../edot/type/zif_aff_edot_v1.intf.abap | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.abap b/file-formats/edot/type/zif_aff_edot_v1.intf.abap index cf8588d6c..6a7f9790b 100644 --- a/file-formats/edot/type/zif_aff_edot_v1.intf.abap +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.abap @@ -1,7 +1,7 @@ -"!

AFF for eDocument Type (EDOT)

+"!

AFF for eDocument Type (EDOT)

"! eDocument types that can be used in eInvoice process INTERFACE zif_aff_edot_v1 - PUBLIC . + PUBLIC. TYPES: "!

SRAL Configuration Type

@@ -21,11 +21,10 @@ INTERFACE zif_aff_edot_v1 "!

File Cloud Relevancy

"! File cloud relevancy is_cloud_relevant TYPE abap_bool, - END OF ty_sral_configuration . - TYPES: + END OF ty_sral_configuration. "!

SRAL Configuration

"! SRAL configuration - ty_sral_configurations TYPE SORTED TABLE OF ty_sral_configuration WITH UNIQUE KEY file_type . + TYPES ty_sral_configurations TYPE SORTED TABLE OF ty_sral_configuration WITH UNIQUE KEY file_type. TYPES: "!

eDocument Type Specific Additional Tables

"! eDocument type specific additional tables @@ -38,11 +37,10 @@ INTERFACE zif_aff_edot_v1 "! Table name "! $required table_name TYPE zif_aff_types_v1=>ty_object_name_30, - END OF ty_additional_table . - TYPES: + END OF ty_additional_table. "!

eDocument Type Specific Additional Tables

"! eDocument type specific additional tables - ty_additional_tables TYPE SORTED TABLE OF ty_additional_table WITH UNIQUE KEY sequence_number . + TYPES ty_additional_tables TYPE SORTED TABLE OF ty_additional_table WITH UNIQUE KEY sequence_number. TYPES: "!

General Information

"! General information @@ -59,7 +57,7 @@ INTERFACE zif_aff_edot_v1 "!

Contingency eDocument Type

"! Contingency eDocument type contingency_edoc_type TYPE c LENGTH 10, - END OF ty_edoc_information . + END OF ty_edoc_information. TYPES: "!

Header for EDOT object

"! The header for an ABAP main object (without source code) with a description of 30 characters (no key user) @@ -77,7 +75,7 @@ INTERFACE zif_aff_edot_v1 "! $values {@link zif_aff_types_v1.data:co_abap_language_version_cloud} "! $default {@link zif_aff_types_v1.data:co_abap_language_version_cloud.standard} abap_language_version TYPE zif_aff_types_v1=>ty_abap_language_version_cloud, - END OF ty_header_30_cloud . + END OF ty_header_30_cloud. TYPES: "!

eDocument Type

"! eDocument type @@ -101,5 +99,5 @@ INTERFACE zif_aff_edot_v1 "! eDocument type specific additional tables edoc_spec_additional_table TYPE ty_additional_tables, - END OF ty_main . + END OF ty_main. ENDINTERFACE. From f69b21838ec6377a4b7429dc0c9c2c1f8674cce2 Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Mon, 10 Mar 2025 12:22:37 +0100 Subject: [PATCH 15/24] corrections --- file-formats/edot/edot-v1.json | 4 ++-- file-formats/edot/type/zif_aff_edot_v1.intf.abap | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/file-formats/edot/edot-v1.json b/file-formats/edot/edot-v1.json index 6ee119a1c..6074b5d98 100644 --- a/file-formats/edot/edot-v1.json +++ b/file-formats/edot/edot-v1.json @@ -65,12 +65,12 @@ "type": "string", "maxLength": 30 }, - "archivePreprocess": { + "isArchivePreprocessNeeded": { "title": "Preprocess Before Archiving", "description": "Preprocess before archiving", "type": "boolean" }, - "contingencyMode": { + "isCreatedInContingencyMode": { "title": "Created in Contingency Mode", "description": "Created in contingency mode", "type": "boolean" diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.abap b/file-formats/edot/type/zif_aff_edot_v1.intf.abap index 6a7f9790b..24b1d9c20 100644 --- a/file-formats/edot/type/zif_aff_edot_v1.intf.abap +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.abap @@ -50,10 +50,10 @@ INTERFACE zif_aff_edot_v1 table_name TYPE zif_aff_types_v1=>ty_object_name_30, "!

Preprocess Before Archiving

"! Preprocess before archiving - archive_preprocess TYPE abap_bool, + is_archive_preprocess_needed TYPE abap_bool, "!

Created in Contingency Mode

"! Created in contingency mode - contingency_mode TYPE abap_bool, + is_created_in_contingency_mode TYPE abap_bool, "!

Contingency eDocument Type

"! Contingency eDocument type contingency_edoc_type TYPE c LENGTH 10, From 9d3530cfb5af33b707a78307b47cd78f24b0dcee Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Mon, 10 Mar 2025 12:33:16 +0100 Subject: [PATCH 16/24] correction to alignment --- file-formats/edot/type/zif_aff_edot_v1.intf.abap | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.abap b/file-formats/edot/type/zif_aff_edot_v1.intf.abap index 24b1d9c20..5c341901e 100644 --- a/file-formats/edot/type/zif_aff_edot_v1.intf.abap +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.abap @@ -47,16 +47,16 @@ INTERFACE zif_aff_edot_v1 BEGIN OF ty_edoc_information, "!

eDocument Table Name

"! eDocument table name - table_name TYPE zif_aff_types_v1=>ty_object_name_30, + table_name TYPE zif_aff_types_v1=>ty_object_name_30, "!

Preprocess Before Archiving

"! Preprocess before archiving - is_archive_preprocess_needed TYPE abap_bool, + is_archive_preprocess_needed TYPE abap_bool, "!

Created in Contingency Mode

"! Created in contingency mode - is_created_in_contingency_mode TYPE abap_bool, + is_created_in_contingency_mode TYPE abap_bool, "!

Contingency eDocument Type

"! Contingency eDocument type - contingency_edoc_type TYPE c LENGTH 10, + contingency_edoc_type TYPE c LENGTH 10, END OF ty_edoc_information. TYPES: "!

Header for EDOT object

From 7164a56a4703bc31079903a5ba2c490d64ed5bb8 Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Mon, 24 Mar 2025 09:26:05 +0100 Subject: [PATCH 17/24] corrections --- file-formats/edot/edot-v1.json | 17 ++++---- .../edot/examples/z_aff_example_edot.json | 24 +++++++++++ .../edot/type/zif_aff_edot_v1.intf.abap | 41 ++++++++++--------- 3 files changed, 54 insertions(+), 28 deletions(-) create mode 100644 file-formats/edot/examples/z_aff_example_edot.json diff --git a/file-formats/edot/edot-v1.json b/file-formats/edot/edot-v1.json index 6074b5d98..6342e542f 100644 --- a/file-formats/edot/edot-v1.json +++ b/file-formats/edot/edot-v1.json @@ -84,14 +84,14 @@ }, "additionalProperties": false }, - "sralConfiguration": { - "title": "Additional Selection Fields", - "description": "Additional selection fields of validation report", + "readAccessLogConfigurations": { + "title": "Read Access Log Configurations", + "description": "Read access log configurations", "type": "array", "uniqueItems": true, "items": { - "title": "SRAL Configuration Type", - "description": "SRAL configuration type", + "title": "Read Access Log Configuration", + "description": "Read access log configuration", "type": "object", "properties": { "fileType": { @@ -125,7 +125,7 @@ ] } }, - "edocSpecAdditionalTable": { + "edocSpecAdditionalTables": { "title": "eDocument Type Specific Additional Tables", "description": "eDocument type specific additional tables", "type": "array", @@ -138,8 +138,9 @@ "sequenceNumber": { "title": "Sequence Number", "description": "Sequence number", - "type": "string", - "maxLength": 10 + "type": "integer", + "minimum": 1, + "maximum": 9999 }, "tableName": { "title": "Table Name", diff --git a/file-formats/edot/examples/z_aff_example_edot.json b/file-formats/edot/examples/z_aff_example_edot.json new file mode 100644 index 000000000..6731bce34 --- /dev/null +++ b/file-formats/edot/examples/z_aff_example_edot.json @@ -0,0 +1,24 @@ +{ + "header": { + "abapLanguageVersion": "standard" + }, + "generalInformation": { + "tableName": "EDOFRINV", + "isArchivePreprocessNeeded": false, + "isCreatedInContingencyMode": false + }, + "readAccessLogConfigurations": [ + { + "fileType": "REQUEST", + "fileStructure": "EDO_FR_INV_INVOICE_TYPE", + "fileDescription": "eDocument France: Invoice Request", + "isCloudRelevant": false + } + ], + "edocSpecAdditionalTables": [ + { + "sequenceNumber": 1, + "tableName": "EDOFRINV1" + } + ] + } \ No newline at end of file diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.abap b/file-formats/edot/type/zif_aff_edot_v1.intf.abap index 5c341901e..6bc0a0f8c 100644 --- a/file-formats/edot/type/zif_aff_edot_v1.intf.abap +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.abap @@ -4,9 +4,9 @@ INTERFACE zif_aff_edot_v1 PUBLIC. TYPES: - "!

SRAL Configuration Type

- "! SRAL configuration type - BEGIN OF ty_sral_configuration, + "!

Read Access Log Configuration

+ "! Read access log configuration + BEGIN OF ty_read_access_log_config, "!

File Type

"! File type "! $required @@ -21,10 +21,10 @@ INTERFACE zif_aff_edot_v1 "!

File Cloud Relevancy

"! File cloud relevancy is_cloud_relevant TYPE abap_bool, - END OF ty_sral_configuration. - "!

SRAL Configuration

- "! SRAL configuration - TYPES ty_sral_configurations TYPE SORTED TABLE OF ty_sral_configuration WITH UNIQUE KEY file_type. + END OF ty_read_access_log_config. + "!

Read Access Log Configurations

+ "! Read access log configurations + TYPES ty_read_access_log_configs TYPE SORTED TABLE OF ty_read_access_log_config WITH UNIQUE KEY file_type. TYPES: "!

eDocument Type Specific Additional Tables

"! eDocument type specific additional tables @@ -32,19 +32,21 @@ INTERFACE zif_aff_edot_v1 "!

Sequence Number

"! Sequence number "! $required - sequence_number TYPE c LENGTH 10, + "! $minimum 1 + "! $maximum 9999 + sequence_number TYPE i, "!

Table Name

"! Table name "! $required table_name TYPE zif_aff_types_v1=>ty_object_name_30, END OF ty_additional_table. - "!

eDocument Type Specific Additional Tables

- "! eDocument type specific additional tables + "!

Read Access Log Configuration

+ "! Read access log configuration TYPES ty_additional_tables TYPE SORTED TABLE OF ty_additional_table WITH UNIQUE KEY sequence_number. TYPES: "!

General Information

"! General information - BEGIN OF ty_edoc_information, + BEGIN OF ty_general_information, "!

eDocument Table Name

"! eDocument table name table_name TYPE zif_aff_types_v1=>ty_object_name_30, @@ -57,7 +59,7 @@ INTERFACE zif_aff_edot_v1 "!

Contingency eDocument Type

"! Contingency eDocument type contingency_edoc_type TYPE c LENGTH 10, - END OF ty_edoc_information. + END OF ty_general_information. TYPES: "!

Header for EDOT object

"! The header for an ABAP main object (without source code) with a description of 30 characters (no key user) @@ -83,21 +85,20 @@ INTERFACE zif_aff_edot_v1 "!

Format Version

"! Format version "! $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 ty_header_30_cloud, + header TYPE ty_header_30_cloud, "!

General Information

"! General information "! $required - general_information TYPE ty_edoc_information, - "!

Additional Selection Fields

- "! Additional selection fields of validation report - sral_configuration TYPE ty_sral_configurations, + general_information TYPE ty_general_information, + "!

Read Access Log Configurations

+ "! Read access log configurations + read_access_log_configurations TYPE ty_read_access_log_configs, "!

eDocument Type Specific Additional Tables

"! eDocument type specific additional tables - edoc_spec_additional_table TYPE ty_additional_tables, - + edoc_spec_additional_tables TYPE ty_additional_tables, END OF ty_main. ENDINTERFACE. From 6c1c9d7131d4e0c37f3281b7fa6e06c64319332f Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Mon, 24 Mar 2025 09:38:31 +0100 Subject: [PATCH 18/24] corrections --- ...z_aff_example_edot.json => z_aff_example_edot.edot.json} | 4 +--- file-formats/edot/type/zif_aff_edot_v1.intf.abap | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) rename file-formats/edot/examples/{z_aff_example_edot.json => z_aff_example_edot.edot.json} (85%) diff --git a/file-formats/edot/examples/z_aff_example_edot.json b/file-formats/edot/examples/z_aff_example_edot.edot.json similarity index 85% rename from file-formats/edot/examples/z_aff_example_edot.json rename to file-formats/edot/examples/z_aff_example_edot.edot.json index 6731bce34..f4aaf5dda 100644 --- a/file-formats/edot/examples/z_aff_example_edot.json +++ b/file-formats/edot/examples/z_aff_example_edot.edot.json @@ -1,7 +1,5 @@ { - "header": { - "abapLanguageVersion": "standard" - }, + "formatVersion": "1", "generalInformation": { "tableName": "EDOFRINV", "isArchivePreprocessNeeded": false, diff --git a/file-formats/edot/type/zif_aff_edot_v1.intf.abap b/file-formats/edot/type/zif_aff_edot_v1.intf.abap index 6bc0a0f8c..48ed30ca0 100644 --- a/file-formats/edot/type/zif_aff_edot_v1.intf.abap +++ b/file-formats/edot/type/zif_aff_edot_v1.intf.abap @@ -85,15 +85,15 @@ INTERFACE zif_aff_edot_v1 "!

Format Version

"! Format version "! $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 ty_header_30_cloud, + header TYPE ty_header_30_cloud, "!

General Information

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

Read Access Log Configurations

"! Read access log configurations read_access_log_configurations TYPE ty_read_access_log_configs, From b742a7f9c066088aa5532cbd8530d2936f1c5555 Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Mon, 24 Mar 2025 09:46:46 +0100 Subject: [PATCH 19/24] corrections --- file-formats/edot/examples/z_aff_example_edot.edot.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/file-formats/edot/examples/z_aff_example_edot.edot.json b/file-formats/edot/examples/z_aff_example_edot.edot.json index f4aaf5dda..d44e577c6 100644 --- a/file-formats/edot/examples/z_aff_example_edot.edot.json +++ b/file-formats/edot/examples/z_aff_example_edot.edot.json @@ -1,5 +1,9 @@ { "formatVersion": "1", + "header": { + "description": "Example EDOT for ABAP file formats", + "originalLanguage": "en" + }, "generalInformation": { "tableName": "EDOFRINV", "isArchivePreprocessNeeded": false, From 58795a51e480976aa1b8e4d944686d29ac134a86 Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Mon, 24 Mar 2025 09:49:00 +0100 Subject: [PATCH 20/24] corrections --- file-formats/edot/examples/z_aff_example_edot.edot.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/file-formats/edot/examples/z_aff_example_edot.edot.json b/file-formats/edot/examples/z_aff_example_edot.edot.json index d44e577c6..fe2dd9d13 100644 --- a/file-formats/edot/examples/z_aff_example_edot.edot.json +++ b/file-formats/edot/examples/z_aff_example_edot.edot.json @@ -1,7 +1,7 @@ { "formatVersion": "1", "header": { - "description": "Example EDOT for ABAP file formats", + "description": "Example EDOT for file formats", "originalLanguage": "en" }, "generalInformation": { @@ -23,4 +23,5 @@ "tableName": "EDOFRINV1" } ] - } \ No newline at end of file + } + \ No newline at end of file From bc544734e29632bc28eb08eab84a2a822fbe7e76 Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Mon, 24 Mar 2025 09:55:10 +0100 Subject: [PATCH 21/24] correction --- .../examples/z_aff_example_edot.edot.json | 51 +++++++++---------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/file-formats/edot/examples/z_aff_example_edot.edot.json b/file-formats/edot/examples/z_aff_example_edot.edot.json index fe2dd9d13..434b9127a 100644 --- a/file-formats/edot/examples/z_aff_example_edot.edot.json +++ b/file-formats/edot/examples/z_aff_example_edot.edot.json @@ -1,27 +1,26 @@ { - "formatVersion": "1", - "header": { - "description": "Example EDOT for file formats", - "originalLanguage": "en" - }, - "generalInformation": { - "tableName": "EDOFRINV", - "isArchivePreprocessNeeded": false, - "isCreatedInContingencyMode": false - }, - "readAccessLogConfigurations": [ - { - "fileType": "REQUEST", - "fileStructure": "EDO_FR_INV_INVOICE_TYPE", - "fileDescription": "eDocument France: Invoice Request", - "isCloudRelevant": false - } - ], - "edocSpecAdditionalTables": [ - { - "sequenceNumber": 1, - "tableName": "EDOFRINV1" - } - ] - } - \ No newline at end of file + "formatVersion": "1", + "header": { + "description": "Example EDOT for file formats", + "originalLanguage": "en" + }, + "generalInformation": { + "tableName": "EDOFRINV", + "isArchivePreprocessNeeded": false, + "isCreatedInContingencyMode": false + }, + "readAccessLogConfigurations": [ + { + "fileType": "REQUEST", + "fileStructure": "EDO_FR_INV_INVOICE_TYPE", + "fileDescription": "eDocument France: Invoice Request", + "isCloudRelevant": false + } + ], + "edocSpecAdditionalTables": [ + { + "sequenceNumber": 1, + "tableName": "EDOFRINV1" + } + ] +} From e90dd956e99e2407f8ebdb4fefa7b68765d9c919 Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Mon, 24 Mar 2025 10:03:24 +0100 Subject: [PATCH 22/24] correction --- file-formats/edot/examples/z_aff_example_edot.edot.json | 1 + 1 file changed, 1 insertion(+) diff --git a/file-formats/edot/examples/z_aff_example_edot.edot.json b/file-formats/edot/examples/z_aff_example_edot.edot.json index 434b9127a..da4f22542 100644 --- a/file-formats/edot/examples/z_aff_example_edot.edot.json +++ b/file-formats/edot/examples/z_aff_example_edot.edot.json @@ -24,3 +24,4 @@ } ] } + From 013ffe669132b9b45663309fae03258503793af0 Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Mon, 24 Mar 2025 10:07:20 +0100 Subject: [PATCH 23/24] correction --- file-formats/edot/examples/z_aff_example_edot.edot.json | 1 - 1 file changed, 1 deletion(-) diff --git a/file-formats/edot/examples/z_aff_example_edot.edot.json b/file-formats/edot/examples/z_aff_example_edot.edot.json index da4f22542..434b9127a 100644 --- a/file-formats/edot/examples/z_aff_example_edot.edot.json +++ b/file-formats/edot/examples/z_aff_example_edot.edot.json @@ -24,4 +24,3 @@ } ] } - From d644706ec73f12be3a32879dcae5c50ca3be07f5 Mon Sep 17 00:00:00 2001 From: i506210 <158033259+i506210@users.noreply.github.com> Date: Mon, 24 Mar 2025 10:27:12 +0100 Subject: [PATCH 24/24] correction --- ...{z_aff_example_edot.edot.json => z_aff_example_edot.edot_json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename file-formats/edot/examples/{z_aff_example_edot.edot.json => z_aff_example_edot.edot_json} (100%) diff --git a/file-formats/edot/examples/z_aff_example_edot.edot.json b/file-formats/edot/examples/z_aff_example_edot.edot_json similarity index 100% rename from file-formats/edot/examples/z_aff_example_edot.edot.json rename to file-formats/edot/examples/z_aff_example_edot.edot_json