Skip to content

Commit eef4b02

Browse files
authored
correction to changes
1 parent 33fafac commit eef4b02

File tree

5 files changed

+58
-76
lines changed

5 files changed

+58
-76
lines changed

file-formats/edot/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
File | Cardinality | Definition | Schema | Example
44
:--- | :--- | :--- | :--- | :---
5-
`<name>.edot.json` | 1 | [`zif_aff_edot_v1.intf.abap`](./type/zif_aff_edot_v1.intf.abap) | [`edot-v1.json`](./edot-v1.json)
5+
`<name>.edot.json` | 1 | [`zif_aff_edot_v1.intf.abap`](./type/zif_aff_edot_v1.intf.abap) | [`edot-v1.json`](./edot-v1.json) | [`z_aff_example_edot.edot.json.edot.json`](./examples/z_aff_example_edot.edot.json.edot.json)

file-formats/edot/edot-v1.json

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,18 @@
5959
"description": "General information",
6060
"type": "object",
6161
"properties": {
62-
"tableName": {
63-
"title": "eDocument Table Name",
64-
"description": "eDocument table name",
62+
"table": {
63+
"title": "eDocument Table",
64+
"description": "eDocument table",
6565
"type": "string",
6666
"maxLength": 30
6767
},
68-
"isArchivePreprocessNeeded": {
68+
"preprocessBeforeArchiving": {
6969
"title": "Preprocess Before Archiving",
7070
"description": "Preprocess before archiving",
7171
"type": "boolean"
7272
},
73-
"isCreatedInContingencyMode": {
73+
"createdInContingencyMode": {
7474
"title": "Created in Contingency Mode",
7575
"description": "Created in contingency mode",
7676
"type": "boolean"
@@ -101,8 +101,8 @@
101101
"maxLength": 10
102102
},
103103
"fileStructure": {
104-
"title": "File Structure Type",
105-
"description": "File structure type",
104+
"title": "File Structure",
105+
"description": "File structure",
106106
"type": "string",
107107
"maxLength": 30
108108
},
@@ -120,34 +120,26 @@
120120
]
121121
}
122122
},
123-
"edocSpecAdditionalTables": {
124-
"title": "eDocument Type Specific Additional Tables",
125-
"description": "eDocument type specific additional tables",
123+
"additionalTables": {
124+
"title": "Additional Tables",
125+
"description": "Additional tables",
126126
"type": "array",
127127
"uniqueItems": true,
128128
"items": {
129-
"title": "eDocument Type Specific Additional Tables",
130-
"description": "eDocument type specific additional tables",
129+
"title": "Additional Table",
130+
"description": "Additional eDocument table",
131131
"type": "object",
132132
"properties": {
133-
"sequenceNumber": {
134-
"title": "Sequence Number",
135-
"description": "Sequence number",
136-
"type": "integer",
137-
"minimum": 1,
138-
"maximum": 9999
139-
},
140-
"tableName": {
141-
"title": "Table Name",
142-
"description": "Table name",
133+
"name": {
134+
"title": "Name",
135+
"description": "eDocument additional table name",
143136
"type": "string",
144137
"maxLength": 30
145138
}
146139
},
147140
"additionalProperties": false,
148141
"required": [
149-
"sequenceNumber",
150-
"tableName"
142+
"name"
151143
]
152144
}
153145
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"header": {
3+
"abapLanguageVersion": "standard"
4+
},
5+
"generalInformation": {
6+
"table": "FRINV",
7+
"preprocessBeforeArchiving": false,
8+
"createdInContingencyMode": false
9+
},
10+
"readAccessLoggingSettings": [
11+
{
12+
"fileType": "REQUEST",
13+
"fileStructure": "EDO_FR_INV_INVOICE_TYPE",
14+
"fileDescription": "eDocument France: Invoice Request"
15+
}
16+
],
17+
"additionalTables": [
18+
{
19+
"name": "EDOFRINV1"
20+
}
21+
]
22+
}

file-formats/edot/examples/z_aff_example_edot.edot_json

Lines changed: 0 additions & 26 deletions
This file was deleted.

file-formats/edot/type/zif_aff_edot_v1.intf.abap

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ INTERFACE zif_aff_edot_v1
1111
"! File type
1212
"! $required
1313
file_type TYPE c LENGTH 10,
14-
"! <p class="shorttext">File Structure Type</p>
15-
"! File structure type
14+
"! <p class="shorttext">File Structure</p>
15+
"! File structure
1616
"! $required
1717
file_structure TYPE c LENGTH 30,
1818
"! <p class="shorttext">File Description</p>
@@ -23,39 +23,33 @@ INTERFACE zif_aff_edot_v1
2323
"! Read access logging settings
2424
TYPES ty_read_acc_logging_settings TYPE SORTED TABLE OF ty_read_access_logging_setting WITH UNIQUE KEY file_type.
2525
TYPES:
26-
"! <p class="shorttext">eDocument Type Specific Additional Tables</p>
27-
"! eDocument type specific additional tables
26+
"! <p class="shorttext">Additional Table</p>
27+
"! Additional eDocument table
2828
BEGIN OF ty_additional_table,
29-
"! <p class="shorttext">Sequence Number</p>
30-
"! Sequence number
29+
"! <p class="shorttext">Name</p>
30+
"! eDocument additional table name
3131
"! $required
32-
"! $minimum 1
33-
"! $maximum 9999
34-
sequence_number TYPE i,
35-
"! <p class="shorttext">Table Name</p>
36-
"! Table name
37-
"! $required
38-
table_name TYPE zif_aff_types_v1=>ty_object_name_30,
32+
name TYPE zif_aff_types_v1=>ty_object_name_30,
3933
END OF ty_additional_table.
40-
"! <p class="shorttext">Read Access Logging Settings</p>
41-
"! Read access logging settings
42-
TYPES ty_additional_tables TYPE SORTED TABLE OF ty_additional_table WITH UNIQUE KEY sequence_number.
34+
"! <p class="shorttext">Additional Tables</p>
35+
"! Additional eDocument tables
36+
TYPES ty_additional_tables TYPE SORTED TABLE OF ty_additional_table WITH UNIQUE KEY name.
4337
TYPES:
4438
"! <p class="shorttext">General Information</p>
4539
"! General information
4640
BEGIN OF ty_general_information,
47-
"! <p class="shorttext">eDocument Table Name</p>
48-
"! eDocument table name
49-
table_name TYPE zif_aff_types_v1=>ty_object_name_30,
41+
"! <p class="shorttext">eDocument Table</p>
42+
"! eDocument table
43+
table TYPE zif_aff_types_v1=>ty_object_name_30,
5044
"! <p class="shorttext">Preprocess Before Archiving</p>
5145
"! Preprocess before archiving
52-
is_archive_preprocess_needed TYPE abap_bool,
46+
preprocess_before_archiving TYPE abap_bool,
5347
"! <p class="shorttext">Created in Contingency Mode</p>
5448
"! Created in contingency mode
55-
is_created_in_contingency_mode TYPE abap_bool,
49+
created_in_contingency_mode TYPE abap_bool,
5650
"! <p class="shorttext">Contingency eDocument Type</p>
5751
"! Contingency eDocument type
58-
contingency_edoc_type TYPE c LENGTH 10,
52+
contingency_edoc_type TYPE c LENGTH 10,
5953
END OF ty_general_information.
6054
TYPES:
6155
"! <p class="shorttext">Header for EDOT object</p>
@@ -94,8 +88,8 @@ INTERFACE zif_aff_edot_v1
9488
"! <p class="shorttext">Read Access Logging Settings</p>
9589
"! Read access logging settings
9690
read_access_logging_settings TYPE ty_read_acc_logging_settings,
97-
"! <p class="shorttext">eDocument Type Specific Additional Tables</p>
98-
"! eDocument type specific additional tables
99-
edoc_spec_additional_tables TYPE ty_additional_tables,
91+
"! <p class="shorttext">Additional Tables</p>
92+
"! Additional tables
93+
additional_tables TYPE ty_additional_tables,
10094
END OF ty_main.
10195
ENDINTERFACE.

0 commit comments

Comments
 (0)