Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[COTA] Add new object type COTA #543

Merged
merged 24 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions file-formats/cota/cota/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# COTA File Format

File | Cardinality | Definition | Schema | Example
:--- | :--- | :--- | :--- | :---
`<name>.cota.json` | 1 | [`zif_aff_cota_v1.intf.abap`](./type/zif_aff_cota_v1.intf.abap) | [`cota-v1.json`](./cota-v1.json) | [`z_contarget_example.cota.json`](./examples/z_contarget_example.cota.json)
WUEHR marked this conversation as resolved.
Show resolved Hide resolved
148 changes: 148 additions & 0 deletions file-formats/cota/cota/cota-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
{
"$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/cota/cota-v1.json",
"title": "Connection Target Object",
"description": "Creation of connection target object",
"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,
"maxLength": 2,
"pattern": "^[a-z]+$"
},
"abapLanguageVersion": {
"title": "ABAP Language Version",
"description": "ABAP language version",
"type": "string",
"enum": [
"standard",
"keyUser",
"cloudDevelopment"
],
"enumTitles": [
"Standard",
"ABAP for Key Users",
"ABAP Cloud Development"
],
"enumDescriptions": [
"Standard",
"ABAP for key user extensibility",
"ABAP cloud development"
],
"default": "standard"
}
},
"additionalProperties": false,
"required": [
"description",
"originalLanguage"
]
},
"connId": {
"title": "Connection Target Object ID",
"description": "Connection target object ID",
"type": "string",
"maxLength": 30
},
"version": {
"title": "Version",
"description": "Version",
"type": "string",
"maxLength": 1
},
"allowMultipleDestinations": {
"title": "Multiple Application Destinations Allowed",
"description": "Multiple application destinations allowed",
"type": "string",
"maxLength": 1
},
"clientDependant": {
"title": "Client Dependent Object",
"description": "Client dependent object \"!",
"type": "string",
"maxLength": 1
},
"abapLanguageVersion": {
"title": "ABAP Language Version",
"description": "ABAP language version",
"type": "string",
"maxLength": 1
},
"enforceClassicRfc": {
"title": "Enforce Classic RFC",
"description": "Enforce classic RFC",
"type": "string",
"maxLength": 1
},
"rfcType": {
"title": "RFC Type",
"description": "RFC type",
"type": "string",
"maxLength": 1
},
"enforceFastSerialization": {
"title": "Enforce Fast Serialization",
"description": "Enforce fast serialization",
"type": "string",
"maxLength": 1
},
"usageOfDefaultCompression": {
"title": "Default Compression Mode",
"description": "Default compression mode",
"type": "string",
"maxLength": 1
},
"lang": {
"title": "Language",
"description": "Language",
"type": "string",
"maxLength": 1
},
"shorttext": {
"title": "Short text",
"description": "Short text",
"type": "string",
"maxLength": 255
},
"connectionTargetClass": {
"title": "Connection Target Class",
"description": "Connection target class",
"type": "string",
"maxLength": 30
}
},
"additionalProperties": false,
"required": [
"formatVersion",
"header",
"allowMultipleDestinations",
"clientDependant",
"abapLanguageVersion",
"enforceClassicRfc",
"rfcType",
"enforceFastSerialization",
"usageOfDefaultCompression",
"shorttext"
]
}
62 changes: 62 additions & 0 deletions file-formats/cota/cota/type/zif_aff_cota_v1.intf.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
INTERFACE zif_aff_cota_v1
PUBLIC.

TYPES:
"! <p class="shorttext">Connection Target Object</p>
"! Creation of connection target object
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,
"! <p class="shorttext">Connection Target Object ID</p>
"! Connection target object ID
conn_id TYPE c LENGTH 30,
"! <p class="shorttext">Version</p>
"! Version
version TYPE c LENGTH 1,
WUEHR marked this conversation as resolved.
Show resolved Hide resolved
"! <p class="shorttext">Multiple Application Destinations Allowed</p>
"! Multiple application destinations allowed
"! $required
allow_multiple_destinations TYPE c LENGTH 1,
"! <p class="shorttext">Client Dependent Object</p>
"! Client dependent object
"! "! $required
client_dependant TYPE c LENGTH 1,
"! <p class="shorttext">ABAP Language Version</p>
"! ABAP language version
"! $required
abap_language_version TYPE c LENGTH 1,
"! <p class="shorttext">Enforce Classic RFC</p>
"! Enforce classic RFC
"! $required
WUEHR marked this conversation as resolved.
Show resolved Hide resolved
enforce_classic_rfc TYPE c LENGTH 1,
"! <p class="shorttext">RFC Type</p>
"! RFC type
"! $required
rfc_type TYPE c LENGTH 1,
"! <p class="shorttext">Enforce Fast Serialization</p>
"! Enforce fast serialization
"! $required
enforce_fast_serialization TYPE c LENGTH 1,
"! <p class="shorttext">Default Compression Mode</p>
"! Default compression mode
"! $required
usage_of_default_compression TYPE c LENGTH 1,
"! <p class="shorttext">Language</p>
"! Language
lang TYPE c LENGTH 1,
"! <p class="shorttext">Short text</p>
"! Short text
"! $required
shorttext TYPE c LENGTH 255,
WUEHR marked this conversation as resolved.
Show resolved Hide resolved
"! <p class="shorttext">Connection Target Class</p>
"! Connection target class
connection_target_class TYPE c LENGTH 30,

END OF ty_main.
ENDINTERFACE.
7 changes: 7 additions & 0 deletions file-formats/cota/cota/type/zif_aff_cota_v1.intf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "ABAP File Format for Connection Target",
"originalLanguage": "en"
}
}
Loading