Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
14 changes: 14 additions & 0 deletions file-formats/dcls/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ABAP Data Control Language Source File Format

## Object Type Information

Object Type | Description | Group
:--- | :--- | :---
DCLS | ABAP Data Control Language Source | Core Data Services

## File Structure

File | Cardinality | Definition | Schema | Example
:--- | :--- | :--- | :--- | :---
`<name>.dcls.json` | 1 | [`zif_aff_dcls_v1.intf.abap`](./type/zif_aff_dcls_v1.intf.abap) | [`dcls-v1.json`](./dcls-v1.json) | [`z_aff_example_dcls.dcls.json`](./examples/z_aff_example_dcls.dcls.json)
`<name>.ddla.acds` | 1 | [CDS](https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/index.htm?file=abencds.htm) | | [`z_aff_example_dcls.dcls.acds`](./examples/z_aff_example_dcls.dcls.acds)
66 changes: 66 additions & 0 deletions file-formats/dcls/dcls-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"$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/dcls/dcls-v1.json",
"title": "ABAP Data Control Language Source",
"description": "Attributes of the Data Control Language Source",
"type": "object",
"properties": {
"formatVersion": {
"title": "ABAP File Format Version",
"description": "The ABAP file 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
},
"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"
]
}
},
"additionalProperties": false,
"required": [
"formatVersion",
"header"
]
}
5 changes: 5 additions & 0 deletions file-formats/dcls/examples/z_aff_example_dcls.dcls.acds
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
define role z_aff_example_dcls {
grant select on z_aff_example_ddls
where
z_aff_example_ddls.carrid = 'LH';
}
7 changes: 7 additions & 0 deletions file-formats/dcls/examples/z_aff_example_dcls.dcls.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "Example DCLS for ABAP file formats",
"originalLanguage": "en"
}
}
16 changes: 16 additions & 0 deletions file-formats/dcls/type/zif_aff_dcls_v1.intf.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
INTERFACE zif_aff_dcls_v1
PUBLIC.

TYPES:
"! <p class="shorttext">ABAP Data Control Language Source</p>
"! Attributes of the Data Control Language Source
BEGIN OF ty_main,
"! $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,
END OF ty_main.

ENDINTERFACE.
7 changes: 7 additions & 0 deletions file-formats/dcls/type/zif_aff_dcls_v1.intf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "AFF type for DCLS objects",
"originalLanguage": "en"
}
}
Loading