Skip to content

Commit

Permalink
Add files for EDOI & EDOT
Browse files Browse the repository at this point in the history
  • Loading branch information
i506210 authored Jan 27, 2025
1 parent 4172a15 commit a8ec8b7
Show file tree
Hide file tree
Showing 10 changed files with 644 additions and 0 deletions.
Binary file added file-formats/edoi/.DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions file-formats/edoi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# EDOI File Format

File | Cardinality | Definition | Schema | Example
:--- | :--- | :--- | :--- | :---
`<name>.edoi.json` | 1 | [`zif_aff_edoi_v1.intf.abap`](./type/zif_aff_edoi_v1.intf.abap) | [`edoi-v1.json`](./edoi-v1.json)
209 changes: 209 additions & 0 deletions file-formats/edoi/edoi-v1.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
121 changes: 121 additions & 0 deletions file-formats/edoi/type/zif_aff_edoi_v1.intf.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
INTERFACE zif_aff_edoi_v1
PUBLIC.

"! <p class="shorttext">Interface direction</p>
"! 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:
"! <p class="shorttext">Interface Version</p>
"! eDocument Interface Version
BEGIN OF ty_edoc_interface_version,

Check failure on line 13 in file-formats/edoi/type/zif_aff_edoi_v1.intf.abap

View check run for this annotation

abaplint / abaplint

Type "TY_EDOC_INTERFACE_VERSION" contains unknown: NUMC04 not found, lookup

https://rules.abaplint.org/unknown_types
"! <p class="shorttext">Interface Version</p>
"! Interface Version
"! $required
int_version TYPE numc04,
"! <p class="shorttext">Interface Version Description</p>
"! Interface Version Description
"! $required
int_version_desc TYPE c LENGTH 30,
"! <p class="shorttext">Active From</p>
"! Active from
"! $required
active_from TYPE sy-datum,

END OF ty_edoc_interface_version.
"! <p class="shorttext">Interface Versions</p>
"! eDocument Interface Versions
TYPES tt_edoc_interface_version TYPE SORTED TABLE OF ty_edoc_interface_version WITH UNIQUE KEY int_version.

Check failure on line 30 in file-formats/edoi/type/zif_aff_edoi_v1.intf.abap

View check run for this annotation

abaplint / abaplint

Bad TYPES naming, expected "^TY_.+$", got "tt_edoc_interface_version"

https://rules.abaplint.org/types_naming

Check failure on line 30 in file-formats/edoi/type/zif_aff_edoi_v1.intf.abap

View check run for this annotation

abaplint / abaplint

Type "TT_EDOC_INTERFACE_VERSION" contains unknown: NUMC04 not found, lookup

https://rules.abaplint.org/unknown_types
TYPES:
"! <p class="shorttext">Attribute Determination for Communication with Cloud Edition</p>
"! DRC Integration Attribute Determination
BEGIN OF ty_edoc_int_drc_attr,

Check failure on line 34 in file-formats/edoi/type/zif_aff_edoi_v1.intf.abap

View check run for this annotation

abaplint / abaplint

Type "TY_EDOC_INT_DRC_ATTR" contains unknown: NUMC04 not found, lookup

https://rules.abaplint.org/unknown_types
"! <p class="shorttext">Process Type</p>
"! DRC Process Type
"! $required
process_type TYPE c LENGTH 50,
"! <p class="shorttext">Process Version</p>
"! DRC Process Version
"! $required
process_version TYPE c LENGTH 20,
"! <p class="shorttext">Process Subtype</p>
"! DRC Process Subtype
"! $required
process_subtype TYPE c LENGTH 50,
"! <p class="shorttext">Action</p>
"! DRC Process Action
"! $required
drc_action TYPE c LENGTH 30,
"! <p class="shorttext">Response Interface</p>
"! eDoc Response Interface
"! $required
resp_interface_id TYPE c LENGTH 30,
"! <p class="shorttext">Response Interface Version</p>
"! Response Interface Version
"! $required
resp_int_version TYPE numc04,

END OF ty_edoc_int_drc_attr.
"! <p class="shorttext">Interface Versions</p>
"! eDocument Interface Versions
TYPES tt_edoc_int_drc_attr TYPE SORTED TABLE OF ty_edoc_int_drc_attr WITH UNIQUE KEY process_type.

Check failure on line 63 in file-formats/edoi/type/zif_aff_edoi_v1.intf.abap

View check run for this annotation

abaplint / abaplint

Bad TYPES naming, expected "^TY_.+$", got "tt_edoc_int_drc_attr"

https://rules.abaplint.org/types_naming

Check failure on line 63 in file-formats/edoi/type/zif_aff_edoi_v1.intf.abap

View check run for this annotation

abaplint / abaplint

Type "TT_EDOC_INT_DRC_ATTR" contains unknown: NUMC04 not found, lookup

https://rules.abaplint.org/unknown_types
TYPES:
"! <p class="shorttext">General Information</p>
"! eDocument Interface
BEGIN OF ty_edoc_interface,

Check failure on line 67 in file-formats/edoi/type/zif_aff_edoi_v1.intf.abap

View check run for this annotation

abaplint / abaplint

Type "TY_EDOC_INTERFACE" contains unknown: NUMC04 not found, lookup

https://rules.abaplint.org/unknown_types
"! <p class="shorttext">eDocument Interface</p>
"! eDocument Interface
"! $required
edocument_interface_id TYPE c LENGTH 30,
"! <p class="shorttext">eDocument Interface Description</p>
"! Interface Description.
"! $required
interface_description TYPE c LENGTH 100,

"! <p class="shorttext">eDocument Interface Direction</p>
"! Interface Direction.
"! $required
interface_direction TYPE ty_int_direction,

"! <p class="shorttext">Interface Version</p>
"! Interface Version
"! $required
edocument_interface_version TYPE tt_edoc_interface_version,
"! <p class="shorttext">Attribute Determination for Communication with Cloud Edition</p>
"! DRC Integration Attribute Determination
"! $required
edoc_spec_additional_table TYPE tt_edoc_int_drc_attr,
END OF ty_edoc_interface.
TYPES:
"! <p class="shorttext">eDocument Interface</p>
"! eDocument Interface
BEGIN OF ty_main,

Check failure on line 94 in file-formats/edoi/type/zif_aff_edoi_v1.intf.abap

View check run for this annotation

abaplint / abaplint

Type "TY_MAIN" contains unknown: NUMC04 not found, lookup

https://rules.abaplint.org/unknown_types
"! <p class="shorttext">Format Version</p>
"! Format version
"! $required
format_version TYPE zif_aff_types_v1=>ty_format_version,
"! <p class="shorttext">Header</p>
"! Header
"! $required
header TYPE zif_aff_types_v1=>ty_header_60,
"! <p class="shorttext">eDocument Interface</p>
"! eDocument Interface
"! $required
general_information TYPE ty_edoc_interface,

END OF ty_main.

CONSTANTS:
"! <p class="shorttext">Interface Direction</p>
"! Interface Direction
BEGIN OF co_edoc_int_direction,
"! <p class="shorttext">Outbound</p>
"! Outbound
outbound TYPE ty_int_direction VALUE 'O',
"! <p class="shorttext">Inbound</p>
"! Inbound
inbound TYPE ty_int_direction VALUE 'I',
END OF co_edoc_int_direction.
ENDINTERFACE.
7 changes: 7 additions & 0 deletions file-formats/edoi/type/zif_aff_edoi_v1.intf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "Create eDocument Types",
"originalLanguage": "en"
}
}
Binary file added file-formats/edot/.DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions file-formats/edot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# EDOT File Format

File | Cardinality | Definition | Schema | Example
:--- | :--- | :--- | :--- | :---
`<name>.edot.json` | 1 | [`zif_aff_edot_v1.intf.abap`](./type/zif_aff_edot_v1.intf.abap) | [`edot-v1.json`](./edot-v1.json)
Loading

0 comments on commit a8ec8b7

Please sign in to comment.