Skip to content

Commit 14188e9

Browse files
WDFdanielschneidermic0wurzka
authored
[SUCO] Add new object type SUCO (#662)
Co-authored-by: Michael Schneider <[email protected]> Co-authored-by: Katharina Wurz <[email protected]>
1 parent 873891a commit 14188e9

File tree

6 files changed

+184
-0
lines changed

6 files changed

+184
-0
lines changed

file-formats/suco/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SUCO File Format
2+
3+
File | Cardinality | Definition | Schema | Example
4+
:--- | :--- | :--- | :--- | :---
5+
`<name>.suco.json` | 1 | [`zif_aff_suco_v1.intf.abap`](./type/zif_aff_suco_v1.intf.abap) | [`suco-v1.json`](./suco-v1.json) | [`z_aff_example_suco.suco.json`](./examples/z_aff_example_suco.suco.json)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"formatVersion": "1",
3+
"header": {
4+
"description": "",
5+
"originalLanguage": "en"
6+
},
7+
"leadingApplication": {
8+
"objectType": "TRAN",
9+
"objectName": "SACF"
10+
}
11+
}

file-formats/suco/suco-v1.json

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"$comment": "This file is autogenerated, do not edit manually, see https://github.com/SAP/abap-file-formats for more information.",
3+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4+
"$id": "https://github.com/SAP/abap-file-formats/blob/main/file-formats/suco/suco-v1.json",
5+
"title": "Object Type SUCO (Authorization Default Variant)",
6+
"description": "Object type SUCO (authorization default variant)",
7+
"type": "object",
8+
"properties": {
9+
"formatVersion": {
10+
"title": "ABAP File Format Version",
11+
"description": "The ABAP file format version",
12+
"type": "string",
13+
"const": "1"
14+
},
15+
"header": {
16+
"title": "Header",
17+
"description": "Header",
18+
"type": "object",
19+
"properties": {
20+
"description": {
21+
"title": "Description",
22+
"description": "Description of the ABAP object",
23+
"type": "string",
24+
"maxLength": 80
25+
},
26+
"originalLanguage": {
27+
"title": "Original Language",
28+
"description": "Original language of the ABAP object",
29+
"type": "string",
30+
"minLength": 2
31+
},
32+
"abapLanguageVersion": {
33+
"title": "ABAP Language Version",
34+
"description": "ABAP language version",
35+
"type": "string",
36+
"enum": [
37+
"standard",
38+
"cloudDevelopment"
39+
],
40+
"enumTitles": [
41+
"Standard",
42+
"ABAP Cloud Development"
43+
],
44+
"enumDescriptions": [
45+
"Standard",
46+
"ABAP cloud development"
47+
],
48+
"default": "standard"
49+
}
50+
},
51+
"additionalProperties": false,
52+
"required": [
53+
"description",
54+
"originalLanguage"
55+
]
56+
},
57+
"leadingApplication": {
58+
"title": "Leading Application",
59+
"description": "Leading application",
60+
"type": "object",
61+
"properties": {
62+
"programId": {
63+
"title": "Program ID",
64+
"description": "Program ID",
65+
"type": "string",
66+
"maxLength": 4,
67+
"default": "R3TR"
68+
},
69+
"objectType": {
70+
"title": "Object Type",
71+
"description": "Object type",
72+
"type": "string",
73+
"maxLength": 4
74+
},
75+
"objectName": {
76+
"title": "Object Name",
77+
"description": "Object name",
78+
"type": "string",
79+
"maxLength": 40
80+
},
81+
"serviceType": {
82+
"title": "Service Type",
83+
"description": "Service type",
84+
"type": "string",
85+
"maxLength": 16
86+
},
87+
"serviceName": {
88+
"title": "Service Name",
89+
"description": "Service name",
90+
"type": "string"
91+
}
92+
},
93+
"additionalProperties": false,
94+
"required": [
95+
"objectType",
96+
"objectName"
97+
]
98+
}
99+
},
100+
"additionalProperties": false,
101+
"required": [
102+
"formatVersion",
103+
"header",
104+
"leadingApplication"
105+
]
106+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
"! AFF Type for SUCO (Authorization Default Variant)
2+
INTERFACE zif_aff_suco_v1
3+
PUBLIC.
4+
5+
TYPES:
6+
"! <p class="shorttext">Leading Application</p>
7+
"! Leading application
8+
BEGIN OF ty_leading_application,
9+
"! <p class="shorttext">Program ID</p>
10+
"! Program ID
11+
"! $default 'R3TR'
12+
program_id TYPE c LENGTH 4,
13+
"! <p class="shorttext">Object Type</p>
14+
"! Object type
15+
"! $required
16+
object_type TYPE c LENGTH 4,
17+
"! <p class="shorttext">Object Name</p>
18+
"! Object name
19+
"! $required
20+
object_name TYPE c LENGTH 40,
21+
"! <p class="shorttext">Service Type</p>
22+
"! Service type
23+
service_type TYPE c LENGTH 16,
24+
"! <p class="shorttext">Service Name</p>
25+
"! Service name
26+
service_name TYPE string,
27+
END OF ty_leading_application.
28+
29+
TYPES:
30+
"! <p class="shorttext">Object Type SUCO (Authorization Default Variant)</p>
31+
"! Object type SUCO (authorization default variant)
32+
BEGIN OF ty_main,
33+
"! $required
34+
format_version TYPE zif_aff_types_v1=>ty_format_version,
35+
"! <p class="shorttext">Header</p>
36+
"! Header
37+
"! $required
38+
header TYPE zif_aff_types_v1=>ty_header_80_cloud,
39+
"! <p class="shorttext">Leading Application</p>
40+
"! Leading application
41+
"! $required
42+
leading_application TYPE ty_leading_application,
43+
END OF ty_main.
44+
ENDINTERFACE.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"formatVersion": "1",
3+
"header": {
4+
"description": "AFF type for SUCO (Authorization Default Variant)",
5+
"originalLanguage": "en"
6+
}
7+
}

file-formats/zif_aff_types_v1.intf.abap

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,17 @@ INTERFACE zif_aff_types_v1 PUBLIC.
141141
abap_language_version TYPE ty_abap_language_version,
142142
END OF ty_header_80.
143143

144+
TYPES:
145+
"! <p class="shorttext">Header(no key user)</p>
146+
"! The header for an ABAP main object (without source code) with a description of 80 characters (no key user)
147+
BEGIN OF ty_header_80_cloud,
148+
"! $required
149+
description TYPE ty_description_80,
150+
"! $required
151+
original_language TYPE ty_original_language,
152+
abap_language_version TYPE ty_abap_language_version_cloud,
153+
END OF ty_header_80_cloud.
154+
144155
TYPES:
145156
"! <p class="shorttext">Header</p>
146157
"! The header for an ABAP main object (without source code) with a description of 100 characters

0 commit comments

Comments
 (0)