Skip to content

Commit fb95a90

Browse files
DCLS abap file format (#711)
1 parent 4cc1e64 commit fb95a90

File tree

6 files changed

+115
-0
lines changed

6 files changed

+115
-0
lines changed

file-formats/dcls/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ABAP Data Control Language Source File Format
2+
3+
## Object Type Information
4+
5+
Object Type | Description | Group
6+
:--- | :--- | :---
7+
DCLS | ABAP Data Control Language Source | Core Data Services
8+
9+
## File Structure
10+
11+
File | Cardinality | Definition | Schema | Example
12+
:--- | :--- | :--- | :--- | :---
13+
`<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)
14+
`<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)

file-formats/dcls/dcls-v1.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"$comment": "This file is autogenerated, do not edit manually, see https://github.com/SAP/abap-file-formats for more information.",
3+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4+
"$id": "https://github.com/SAP/abap-file-formats/blob/main/file-formats/dcls/dcls-v1.json",
5+
"title": "ABAP Data Control Language Source",
6+
"description": "Attributes of the Data Control Language Source",
7+
"type": "object",
8+
"properties": {
9+
"formatVersion": {
10+
"title": "ABAP File Format Version",
11+
"description": "The ABAP file format version",
12+
"type": "string",
13+
"const": "1"
14+
},
15+
"header": {
16+
"title": "Header",
17+
"description": "Header",
18+
"type": "object",
19+
"properties": {
20+
"description": {
21+
"title": "Description",
22+
"description": "Description of the ABAP object",
23+
"type": "string",
24+
"maxLength": 60
25+
},
26+
"originalLanguage": {
27+
"title": "Original Language",
28+
"description": "Original language of the ABAP object",
29+
"type": "string",
30+
"minLength": 2
31+
},
32+
"abapLanguageVersion": {
33+
"title": "ABAP Language Version",
34+
"description": "ABAP language version",
35+
"type": "string",
36+
"enum": [
37+
"standard",
38+
"keyUser",
39+
"cloudDevelopment"
40+
],
41+
"enumTitles": [
42+
"Standard",
43+
"ABAP for Key Users",
44+
"ABAP Cloud Development"
45+
],
46+
"enumDescriptions": [
47+
"Standard",
48+
"ABAP for key user extensibility",
49+
"ABAP cloud development"
50+
],
51+
"default": "standard"
52+
}
53+
},
54+
"additionalProperties": false,
55+
"required": [
56+
"description",
57+
"originalLanguage"
58+
]
59+
}
60+
},
61+
"additionalProperties": false,
62+
"required": [
63+
"formatVersion",
64+
"header"
65+
]
66+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
define role z_aff_example_dcls {
2+
grant select on z_aff_example_ddls
3+
where
4+
z_aff_example_ddls.carrid = 'LH';
5+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"formatVersion": "1",
3+
"header": {
4+
"description": "Example DCLS for ABAP file formats",
5+
"originalLanguage": "en"
6+
}
7+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
INTERFACE zif_aff_dcls_v1
2+
PUBLIC.
3+
4+
TYPES:
5+
"! <p class="shorttext">ABAP Data Control Language Source</p>
6+
"! Attributes of the Data Control Language Source
7+
BEGIN OF ty_main,
8+
"! $required
9+
format_version TYPE zif_aff_types_v1=>ty_format_version,
10+
"! <p class="shorttext">Header</p>
11+
"! Header
12+
"! $required
13+
header TYPE zif_aff_types_v1=>ty_header_60,
14+
END OF ty_main.
15+
16+
ENDINTERFACE.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"formatVersion": "1",
3+
"header": {
4+
"description": "AFF type for DCLS objects",
5+
"originalLanguage": "en"
6+
}
7+
}

0 commit comments

Comments
 (0)