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 6 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
184 changes: 184 additions & 0 deletions file-formats/cota/cota/cota-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
{
"$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
},
"createdby": {
"title": "Created By",
"description": "Created by",
"type": "string",
"maxLength": 12
},
"createdon": {
"title": "Created On",
"description": "Created on",
"type": "string",
"maxLength": 8
},
"createdat": {
"title": "Creation Date",
"description": "Creation date",
"type": "string",
"maxLength": 6
},
"changedby": {
"title": "Changed By",
"description": "Changed By",
"type": "string",
"maxLength": 12
},
"changedon": {
"title": "Changed On",
"description": "Changed On",
"type": "string",
"maxLength": 8
},
"changedat": {
"title": "Change Date",
"description": "Change date",
"type": "string",
"maxLength": 6
},
"multipleAppDest": {
"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
},
"enforceClasRfc": {
"title": "Enforce Classic RFC",
"description": "Enforce classic RFC",
"type": "string",
"maxLength": 1
},
"rfcType": {
"title": "RFC Type",
"description": "RFC type",
"type": "string",
"maxLength": 1
},
"enforceFastSer": {
"title": "Enforce Fast Serialization",
"description": "Enforce fast serialization",
"type": "string",
"maxLength": 1
},
"defaultCompress": {
"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
},
"connclass": {
"title": "Connection Target Class",
"description": "Connection target class",
"type": "string",
"maxLength": 30
}
},
"additionalProperties": false,
"required": [
"formatVersion",
"header",
"multipleAppDest",
"clientDependant",
"abapLanguageVersion",
"enforceClasRfc",
"rfcType",
"enforceFastSer",
"defaultCompress",
"shorttext"
]
}
80 changes: 80 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,80 @@
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">Created By</p>
"! Created by
createdby TYPE c LENGTH 12,
"! <p class="shorttext">Created On</p>
"! Created on
createdon TYPE c LENGTH 8,
"! <p class="shorttext">Creation Date</p>
"! Creation date
createdat TYPE c LENGTH 6,
"! <p class="shorttext">Changed By</p>
"! Changed By
changedby TYPE c LENGTH 12,
"! <p class="shorttext">Changed On</p>
"! Changed On
changedon TYPE c LENGTH 8,
"! <p class="shorttext">Change Date</p>
"! Change date
changedat TYPE c LENGTH 6,
"! <p class="shorttext">Multiple Application Destinations Allowed</p>
"! Multiple application destinations allowed
"! $required
multiple_app_dest 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_clas_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_ser TYPE c LENGTH 1,
"! <p class="shorttext">Default Compression Mode</p>
"! Default compression mode
"! $required
default_compress 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
connclass 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