Skip to content
13 changes: 13 additions & 0 deletions file-formats/sxtg/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SAP GUI Extension Point File Format

## Object Type Information

Object Type | Description | Group
:--- | :--- | :---
SXTG | SAP GUI Extension Point | Extensibility

## File Structure

File | Cardinality | Definition | Schema | Example
:--- | :--- | :--- | :--- | :---
`<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)
17 changes: 17 additions & 0 deletions file-formats/sxtg/examples/sxtg_tsm_so.sxtg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"formatVersion": "1",
"header": {
"description": "SXTG: Sales Order Header (Home)",
"originalLanguage": "en"
},
"generalInformation": {
"extensionInclude": "SXTG_S_TSM_SO_INCL_EEW",
"applicationDataStructure": "SXTG_S_TSM_SO_APPL_DATA",
"uiExtensionEntity": "D_SXTG_TSM_SO_UI_HEADER"
},
"transactionCodes": [
{
"name": "SXTG_TSM_SO"
}
]
}
95 changes: 95 additions & 0 deletions file-formats/sxtg/sxtg-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"$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/sxtg/sxtg-v1.json",
"title": "SAP GUI Extension Point",
"description": "SAP GUI extension point for developer extensibility",
"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
}
},
"additionalProperties": false,
"required": [
"description",
"originalLanguage"
]
},
"generalInformation": {
"title": "General Information",
"description": "General information",
"type": "object",
"properties": {
"extensionInclude": {
"title": "Extension Include",
"description": "Extension include with persisted custom fields",
"type": "string",
"maxLength": 30
},
"applicationDataStructure": {
"title": "Application Data Structure",
"description": "Structure with application data",
"type": "string",
"maxLength": 30
},
"uiExtensionEntity": {
"title": "UI Extension Entity",
"description": "Abstract entity with ui definition",
"type": "string",
"maxLength": 30
}
},
"additionalProperties": false,
"required": [
"extensionInclude",
"applicationDataStructure",
"uiExtensionEntity"
]
},
"transactionCodes": {
"title": "Transaction Codes",
"description": "Transaction codes of extensible application",
"type": "array",
"items": {
"title": "Transaction Codes",
"description": "Transaction codes",
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "Name of transaction code",
"type": "string",
"maxLength": 20
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false,
"required": [
"formatVersion",
"header"
]
}
59 changes: 59 additions & 0 deletions file-formats/sxtg/type/zif_aff_sxtg_v1.intf.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
INTERFACE zif_aff_sxtg_v1
PUBLIC.

TYPES:
"! <p class="shorttext">Transaction Codes</p>
"! Transaction codes
BEGIN OF ty_transaction_code,
"! <p class="shorttext">Name</p>
"! Name of transaction code
name TYPE c LENGTH 20,
END OF ty_transaction_code.

"! <p class="shorttext">Transaction Codes</p>
"! Transaction codes
TYPES ty_transaction_codes TYPE STANDARD TABLE OF ty_transaction_code WITH KEY name.

TYPES:
"! <p class="shorttext">General Information</p>
"! General information
BEGIN OF ty_general_information,
"! <p class="shorttext">Extension Include</p>
"! Extension include with persisted custom fields
"! $required
extension_include TYPE zif_aff_types_v1=>ty_object_name_30,

"! <p class="shorttext">Application Data Structure</p>
"! Structure with application data
"! $required
application_data_structure TYPE zif_aff_types_v1=>ty_object_name_30,

"! <p class="shorttext">UI Extension Entity</p>
"! Abstract entity with ui definition
"! $required
ui_extension_entity TYPE zif_aff_types_v1=>ty_object_name_30,
END OF ty_general_information.

TYPES:
"! <p class="shorttext">SAP GUI Extension Point</p>
"! SAP GUI extension point for developer extensibility
BEGIN OF ty_main,
"! <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_no_abap_lv,

"! <p class="shorttext">General Information</p>
"! General information
general_information TYPE ty_general_information,

"! <p class="shorttext">Transaction Codes</p>
"! Transaction codes of extensible application
transaction_codes TYPE ty_transaction_codes,
END OF ty_main.

ENDINTERFACE.
7 changes: 7 additions & 0 deletions file-formats/sxtg/type/zif_aff_sxtg_v1.intf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "SXTG: SAP GUI Extension Point AFF Type",
"originalLanguage": "en"
}
}
Loading