Skip to content

Commit 6524902

Browse files
robinPfaffSapMarkus1812schneidermic0wurzka
authored
[SXTG] Add new object type SXTG (#687)
Co-authored-by: Markus <[email protected]> Co-authored-by: Michael Schneider <[email protected]> Co-authored-by: Markus <[email protected]> Co-authored-by: Katharina Wurz <[email protected]>
1 parent fcc343d commit 6524902

File tree

5 files changed

+191
-0
lines changed

5 files changed

+191
-0
lines changed

file-formats/sxtg/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# SAP GUI Extension Point File Format
2+
3+
## Object Type Information
4+
5+
Object Type | Description | Group
6+
:--- | :--- | :---
7+
SXTG | SAP GUI Extension Point | Extensibility
8+
9+
## File Structure
10+
11+
File | Cardinality | Definition | Schema | Example
12+
:--- | :--- | :--- | :--- | :---
13+
`<name>.sxtg.json` | 1 | [`zif_aff_sxtg_v1.intf.abap`](./type/zif_aff_sxtg_v1.intf.abap) | [`sxtg-v1.json`](./sxtg-v1.json) | [`sxtg_tsm_so.sxtg.json`](./examples/sxtg_tsm_so.sxtg.json)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"formatVersion": "1",
3+
"header": {
4+
"description": "SXTG: Sales Order Header (Home)",
5+
"originalLanguage": "en"
6+
},
7+
"generalInformation": {
8+
"extensionInclude": "SXTG_S_TSM_SO_INCL_EEW",
9+
"applicationDataStructure": "SXTG_S_TSM_SO_APPL_DATA",
10+
"uiExtensionEntity": "D_SXTG_TSM_SO_UI_HEADER"
11+
},
12+
"transactionCodes": [
13+
{
14+
"name": "SXTG_TSM_SO"
15+
}
16+
]
17+
}

file-formats/sxtg/sxtg-v1.json

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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/sxtg/sxtg-v1.json",
5+
"title": "SAP GUI Extension Point",
6+
"description": "SAP GUI extension point for developer extensibility",
7+
"type": "object",
8+
"properties": {
9+
"formatVersion": {
10+
"title": "Format Version",
11+
"description": "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": 60
25+
},
26+
"originalLanguage": {
27+
"title": "Original Language",
28+
"description": "Original language of the ABAP object",
29+
"type": "string",
30+
"minLength": 2
31+
}
32+
},
33+
"additionalProperties": false,
34+
"required": [
35+
"description",
36+
"originalLanguage"
37+
]
38+
},
39+
"generalInformation": {
40+
"title": "General Information",
41+
"description": "General information",
42+
"type": "object",
43+
"properties": {
44+
"extensionInclude": {
45+
"title": "Extension Include",
46+
"description": "Extension include with persisted custom fields",
47+
"type": "string",
48+
"maxLength": 30
49+
},
50+
"applicationDataStructure": {
51+
"title": "Application Data Structure",
52+
"description": "Structure with application data",
53+
"type": "string",
54+
"maxLength": 30
55+
},
56+
"uiExtensionEntity": {
57+
"title": "UI Extension Entity",
58+
"description": "Abstract entity with ui definition",
59+
"type": "string",
60+
"maxLength": 30
61+
}
62+
},
63+
"additionalProperties": false,
64+
"required": [
65+
"extensionInclude",
66+
"applicationDataStructure",
67+
"uiExtensionEntity"
68+
]
69+
},
70+
"transactionCodes": {
71+
"title": "Transaction Codes",
72+
"description": "Transaction codes of extensible application",
73+
"type": "array",
74+
"items": {
75+
"title": "Transaction Codes",
76+
"description": "Transaction codes",
77+
"type": "object",
78+
"properties": {
79+
"name": {
80+
"title": "Name",
81+
"description": "Name of transaction code",
82+
"type": "string",
83+
"maxLength": 20
84+
}
85+
},
86+
"additionalProperties": false
87+
}
88+
}
89+
},
90+
"additionalProperties": false,
91+
"required": [
92+
"formatVersion",
93+
"header"
94+
]
95+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
INTERFACE zif_aff_sxtg_v1
2+
PUBLIC.
3+
4+
TYPES:
5+
"! <p class="shorttext">Transaction Codes</p>
6+
"! Transaction codes
7+
BEGIN OF ty_transaction_code,
8+
"! <p class="shorttext">Name</p>
9+
"! Name of transaction code
10+
name TYPE c LENGTH 20,
11+
END OF ty_transaction_code.
12+
13+
"! <p class="shorttext">Transaction Codes</p>
14+
"! Transaction codes
15+
TYPES ty_transaction_codes TYPE STANDARD TABLE OF ty_transaction_code WITH KEY name.
16+
17+
TYPES:
18+
"! <p class="shorttext">General Information</p>
19+
"! General information
20+
BEGIN OF ty_general_information,
21+
"! <p class="shorttext">Extension Include</p>
22+
"! Extension include with persisted custom fields
23+
"! $required
24+
extension_include TYPE zif_aff_types_v1=>ty_object_name_30,
25+
26+
"! <p class="shorttext">Application Data Structure</p>
27+
"! Structure with application data
28+
"! $required
29+
application_data_structure TYPE zif_aff_types_v1=>ty_object_name_30,
30+
31+
"! <p class="shorttext">UI Extension Entity</p>
32+
"! Abstract entity with ui definition
33+
"! $required
34+
ui_extension_entity TYPE zif_aff_types_v1=>ty_object_name_30,
35+
END OF ty_general_information.
36+
37+
TYPES:
38+
"! <p class="shorttext">SAP GUI Extension Point</p>
39+
"! SAP GUI extension point for developer extensibility
40+
BEGIN OF ty_main,
41+
"! <p class="shorttext">Format Version</p>
42+
"! Format version
43+
"! $required
44+
format_version TYPE zif_aff_types_v1=>ty_format_version,
45+
"! <p class="shorttext">Header</p>
46+
"! Header
47+
"! $required
48+
header TYPE zif_aff_types_v1=>ty_header_60_no_abap_lv,
49+
50+
"! <p class="shorttext">General Information</p>
51+
"! General information
52+
general_information TYPE ty_general_information,
53+
54+
"! <p class="shorttext">Transaction Codes</p>
55+
"! Transaction codes of extensible application
56+
transaction_codes TYPE ty_transaction_codes,
57+
END OF ty_main.
58+
59+
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": "SXTG: SAP GUI Extension Point AFF Type",
5+
"originalLanguage": "en"
6+
}
7+
}

0 commit comments

Comments
 (0)