[TTYP] Add ABAP file format for table types - #775
Conversation
ABAP Doc Checks
|
AFF Review ProcessThank you for your contribution to the ABAP File Formats! 🎉 To help us manage reviews efficiently:
|
Control PanelHi, I'm an AI-powered Review Bot that helps you with summarizing and reviewing pull requests.
|
| BEGIN OF ty_built_in_type, | ||
| "! <p class="shorttext">Data Type</p> | ||
| "! ABAP built-in data type name (e.g. CHAR, INT4, STRING) | ||
| "! $required | ||
| data_type TYPE c LENGTH 10, | ||
| "! <p class="shorttext">Length</p> | ||
| "! Length of the built-in type (relevant for length-variable types such as CHAR, NUMC) | ||
| "! $minimum 0 | ||
| length TYPE i, | ||
| "! <p class="shorttext">Decimals</p> | ||
| "! Number of decimal places (relevant for DEC, CURR, QUAN) | ||
| "! $minimum 0 | ||
| decimals TYPE i, | ||
| END OF ty_built_in_type. |
There was a problem hiding this comment.
I think this part can be reused from #727 when its merged
There was a problem hiding this comment.
Added the zif_aff_ddic_types_v1 file instead of a rebase. In DTEL, there is a ty_predefined_type, which corresponds to our ty_built_in_type. We should harmonize the name and move this object to the reusable ddic interface
Adds ZIF_AFF_TTYP_V1 interface, JSON schema, example, and README for ABAP Dictionary table types (TTYP).
- Flatten ty_key_components to use zif_aff_types_v1=>ty_object_name_30 directly - Simplify ABAP Doc descriptions (type kind, key definition, key uniqueness) - Rename ty_prim_key_definition to ty_primary_key_definition - Rename ty_init_and_access to ty_initialization_and_access - Rename field init_and_access to initialization_and_access in ty_main - Rename field sec_keys_allowed to secondary_keys_allowed in ty_key_settings - Rename field access to access_type in ty_secondary_key - Fix TYPE expression alignment
- Change secondary_keys_allowed to abap_bool - Replace "How..." descriptions with title-style descriptions - Regenerate JSON schema - Update example for renamed/changed fields
|
First draft of TTYP. To be continued by the object type owners, as I do not have enough knowledge on this object type. |
| definition TYPE ty_primary_key_mode, | ||
| "! <p class="shorttext">Key Uniqueness</p> | ||
| "! Key uniqueness | ||
| uniqueness TYPE ty_key_uniqueness, |
There was a problem hiding this comment.
| uniqueness TYPE ty_key_uniqueness, | |
| key_uniqueness TYPE ty_key_uniqueness, |
so that title, description and abap type are in sync
| "! <p class="shorttext">Key Definition</p> | ||
| "! Key definition | ||
| definition TYPE ty_primary_key_mode, |
There was a problem hiding this comment.
| "! <p class="shorttext">Key Definition</p> | |
| "! Key definition | |
| definition TYPE ty_primary_key_mode, | |
| "! <p class="shorttext">Key Mode</p> | |
| "! Key mode | |
| key_mode TYPE ty_primary_key_mode, |
so that title, description and abap type are in sync
| alias TYPE c LENGTH 30, | ||
| "! <p class="shorttext">Key Components</p> | ||
| "! Explicitly named key fields; relevant when definition is keyComponents | ||
| components TYPE ty_key_components, |
There was a problem hiding this comment.
| components TYPE ty_key_components, | |
| key_components TYPE ty_key_components, |
so that title, description and abap type are in sync
| description TYPE zif_aff_types_v1=>ty_description_80, | ||
| "! <p class="shorttext">Access Type</p> | ||
| "! Access type of the secondary key | ||
| access_type TYPE ty_secondary_key_access, |
There was a problem hiding this comment.
| access_type TYPE ty_secondary_key_access, | |
| access_type TYPE ty_access_type, |
so that title, description and abap type are in sync
| "! <p class="shorttext">Key Definition</p> | ||
| "! Key definition | ||
| definition TYPE ty_secondary_key_definition, |
There was a problem hiding this comment.
| "! <p class="shorttext">Key Definition</p> | |
| "! Key definition | |
| definition TYPE ty_secondary_key_definition, | |
| "! <p class="shorttext">Key Mode</p> | |
| "! Key mode | |
| key_mode TYPE ty_secondary_key_mode, |
| "! Secondary key definition | ||
| "! $values {@link zif_aff_ttyp_v1.data:co_secondary_key_definition} | ||
| "! $default {@link zif_aff_ttyp_v1.data:co_secondary_key_definition.row_type} | ||
| TYPES ty_secondary_key_definition TYPE c LENGTH 14. |
There was a problem hiding this comment.
| TYPES ty_secondary_key_definition TYPE c LENGTH 14. | |
| TYPES ty_secondary_key_mode TYPE c LENGTH 14. |
in ty_primary_key i saw that the abap type was called ty_primary_key_mode. If mode is the correct word for this field I prefer mode over the generic "definition"
| CONSTANTS: | ||
| "! <p class="shorttext">Secondary Key Definition</p> | ||
| "! Secondary key definition | ||
| BEGIN OF co_secondary_key_definition, |
There was a problem hiding this comment.
| BEGIN OF co_secondary_key_definition, | |
| BEGIN OF co_secondary_key_mode |
Summary
ZIF_AFF_TTYP_V1ABAP interface defining the file format for ABAP Dictionary table types (TTYP)ttyp-v1.jsonz_aff_example_ttyp.ttyp.json(sorted table with explicit key components)README.mdwith file structure documentation