Skip to content
Open
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
13 changes: 13 additions & 0 deletions file-formats/auth/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Authorization Field File Format

## Object Type Information

Object Type | Description | Group
:--- | :--- | :---
AUTH | Authorization Field | Authorizations

## File Structure

File | Cardinality | Definition | Schema | Example
:--- | :--- | :--- | :--- | :---
`<name>.auth.json` | 1 | [`zif_aff_auth_v1.intf.abap`](./type/zif_aff_auth_v1.intf.abap) | [`auth-v1.json`](./auth-v1.json) | [1](./examples/z_aff_example_auth_1.auth.json) [2](./examples/z_aff_example_auth_2.auth.json) [3](./examples/z_aff_example_auth_3.auth.json) [4](./examples/z_aff_example_auth_4.auth.json)
94 changes: 94 additions & 0 deletions file-formats/auth/auth-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"$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/auth/auth-v1.json",
"title": "Authorization Field",
"description": "Authorization field",
"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
},
"abapLanguageVersion": {
"title": "ABAP Language Version",
"description": "ABAP language version",
"type": "string",
"enum": [
"standard",
"cloudDevelopment"
],
"enumTitles": [
"Standard",
"ABAP Cloud Development"
],
"enumDescriptions": [
"Standard",
"ABAP cloud development"
],
"default": "standard"
}
},
"additionalProperties": false,
"required": [
"description",
"originalLanguage"
]
},
"generalInformation": {
"title": "General Information",
"description": "General information",
"type": "object",
"properties": {
"dataElement": {
"title": "Data Element",
"description": "Name of the data element",
"type": "string",
"maxLength": 30
}
},
"additionalProperties": false,
"required": [
"dataElement"
]
},
"alternativeSearchHelp": {
"title": "Alternative Search Help in Standard Maintenance Dialog",
"description": "Alternative search help in standard maintenance dialog",
"type": "object",
"properties": {
"checkTable": {
"title": "Check Table",
"description": "If no check table is maintained the search help of the data element will be used. A check table is only suitable if the first column with a data element identical to the authorization field is suitable for value selection. If no matching data element exists, the first column with a matching domain is used for the value selection. If the search help for the authorization field returns unsuitable selection results in a particular authorization object, an alternative search help can be maintained in the authorization object definition for the authorization field, in order to select suitable values for the object/field combination. This object/field search help always has priority over the search help for the field.",
"type": "string",
"maxLength": 30
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"formatVersion",
"header"
]
}
10 changes: 10 additions & 0 deletions file-formats/auth/examples/z_aff_example_auth_1.auth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"formatVersion": "1",
"header": {
"description": "ICF: GUID of ICF Service/Alias",
"originalLanguage": "de"
},
"generalInformation": {
"dataElement": "ICF_NODE"
}
}
13 changes: 13 additions & 0 deletions file-formats/auth/examples/z_aff_example_auth_2.auth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"formatVersion": "1",
"header": {
"description": "Activity",
"originalLanguage": "de"
},
"generalInformation": {
"dataElement": "ACTIV_AUTH"
},
"alternativeSearchHelp": {
"checkTable": "TACT"
}
}
10 changes: 10 additions & 0 deletions file-formats/auth/examples/z_aff_example_auth_3.auth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"formatVersion": "1",
"header": {
"description": "User Attribute Monitoring",
"originalLanguage": "en"
},
"generalInformation": {
"dataElement": "SUID_ATTR_ID_MONITORING"
}
}
13 changes: 13 additions & 0 deletions file-formats/auth/examples/z_aff_example_auth_4.auth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"formatVersion": "1",
"header": {
"description": "Plan Version",
"originalLanguage": "de"
},
"generalInformation": {
"dataElement": "PLVAR"
},
"alternativeSearchHelp": {
"checkTable": "T778P"
}
}
49 changes: 49 additions & 0 deletions file-formats/auth/type/zif_aff_auth_v1.intf.abap
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
"! AFF type for object AUTH
INTERFACE zif_aff_auth_v1
PUBLIC.
TYPES:
"! <p class="shorttext">General Information</p>
"! General information
BEGIN OF ty_general_information,
Comment thread
GuilhermeSaraiva96 marked this conversation as resolved.
"! <p class="shorttext">Data Element</p>
"! Name of the data element
"! $required
data_element TYPE c LENGTH 30,
END OF ty_general_information.

TYPES:
"! <p class="shorttext">Alternative Search Help</p>
"! Alternative search help
BEGIN OF ty_alternative_search_help,
"! <p class="shorttext">Check Table</p>
"! If no check table is maintained the search help of the data element will be used.
"! A check table is only suitable if the first column with a data element identical to the authorization field is
"! suitable for value selection. If no matching data element exists, the first column with a matching domain is
"! used for the value selection.
"! If the search help for the authorization field returns unsuitable selection results in a particular
"! authorization object, an alternative search help can be maintained in the authorization object definition for
"! the authorization field, in order to select suitable values for the object/field combination. This object/field
"! search help always has priority over the search help for the field.
check_table TYPE c LENGTH 30,
END OF ty_alternative_search_help.

TYPES:
"! <p class="shorttext">Authorization Field</p>
"! Authorization field
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_cloud,
"! <p class="shorttext">General Information</p>
"! General information
general_information TYPE ty_general_information,
"! <p class="shorttext">Alternative Search Help in Standard Maintenance Dialog</p>
"! Alternative search help in standard maintenance dialog
alternative_search_help TYPE ty_alternative_search_help,
END OF ty_main.
ENDINTERFACE.
7 changes: 7 additions & 0 deletions file-formats/auth/type/zif_aff_auth_v1.intf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"formatVersion": "1",
"header": {
"description": "AFF type for AUTH (Authorization Field)",
"originalLanguage": "en"
}
}
Loading