diff --git a/file-formats/sxtg/README.md b/file-formats/sxtg/README.md new file mode 100644 index 000000000..87287df96 --- /dev/null +++ b/file-formats/sxtg/README.md @@ -0,0 +1,5 @@ +# SXTG File Format + +File | Cardinality | Definition | Schema | Example +:--- | :--- | :--- | :--- | :--- +`.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) diff --git a/file-formats/sxtg/examples/sxtg_tsm_so.sxtg.json b/file-formats/sxtg/examples/sxtg_tsm_so.sxtg.json new file mode 100644 index 000000000..50a305e63 --- /dev/null +++ b/file-formats/sxtg/examples/sxtg_tsm_so.sxtg.json @@ -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": [ + { + "transactionCode": "SXTG_TSM_SO" + } + ] +} diff --git a/file-formats/sxtg/sxtg-v1.json b/file-formats/sxtg/sxtg-v1.json new file mode 100644 index 000000000..34a182587 --- /dev/null +++ b/file-formats/sxtg/sxtg-v1.json @@ -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 Code", + "description": "Transaction code", + "type": "object", + "properties": { + "transactionCode": { + "title": "Transaction Code", + "description": "Transaction code", + "type": "string", + "maxLength": 20 + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false, + "required": [ + "formatVersion", + "header" + ] +} diff --git a/file-formats/sxtg/type/zif_aff_sxtg_v1.intf.abap b/file-formats/sxtg/type/zif_aff_sxtg_v1.intf.abap new file mode 100644 index 000000000..87a425684 --- /dev/null +++ b/file-formats/sxtg/type/zif_aff_sxtg_v1.intf.abap @@ -0,0 +1,59 @@ +INTERFACE zif_aff_sxtg_v1 + PUBLIC. + + TYPES: + "!

Transaction Code

+ "! Transaction code + BEGIN OF ty_transaction_code, + "!

Transaction Code

+ "! Transaction code + transaction_code TYPE c LENGTH 20, + END OF ty_transaction_code. + + "!

Transaction Codes

+ "! Transaction codes + TYPES ty_transaction_codes TYPE STANDARD TABLE OF ty_transaction_code WITH KEY transaction_code. + + TYPES: + "!

General Information

+ "! General information + BEGIN OF ty_general_information, + "!

Extension Include

+ "! Extension include with persisted custom fields + "! $required + extension_include TYPE zif_aff_types_v1=>ty_object_name_30, + + "!

Application Data Structure

+ "! Structure with application data + "! $required + application_data_structure TYPE zif_aff_types_v1=>ty_object_name_30, + + "!

UI Extension Entity

+ "! Abstract entity with ui definition + "! $required + ui_extension_entity TYPE zif_aff_types_v1=>ty_object_name_30, + END OF ty_general_information. + + TYPES: + "!

SAP GUI Extension Point

+ "! SAP gui extension point for developer extensibility + BEGIN OF ty_main, + "!

Format Version

+ "! Format version + "! $required + format_version TYPE zif_aff_types_v1=>ty_format_version, + "!

Header

+ "! Header + "! $required + header TYPE zif_aff_types_v1=>ty_header_60_no_abap_lv, + + "!

General Information

+ "! General information + general_information TYPE ty_general_information, + + "!

Transaction Codes

+ "! Transaction codes of extensible application + transaction_codes TYPE ty_transaction_codes, + END OF ty_main. + +ENDINTERFACE. diff --git a/file-formats/sxtg/type/zif_aff_sxtg_v1.intf.json b/file-formats/sxtg/type/zif_aff_sxtg_v1.intf.json new file mode 100644 index 000000000..06f4b3293 --- /dev/null +++ b/file-formats/sxtg/type/zif_aff_sxtg_v1.intf.json @@ -0,0 +1,7 @@ +{ + "formatVersion": "1", + "header": { + "description": "SXTG: SAP GUI Extension Point AFF Type", + "originalLanguage": "en" + } +}