diff --git a/file-formats/doma/type/zif_aff_doma_v1.intf.abap b/file-formats/doma/type/zif_aff_doma_v1.intf.abap index 877e5e484..c1e9caf2f 100644 --- a/file-formats/doma/type/zif_aff_doma_v1.intf.abap +++ b/file-formats/doma/type/zif_aff_doma_v1.intf.abap @@ -185,18 +185,6 @@ INTERFACE zif_aff_doma_v1 PUBLIC. engineering TYPE ty_output_style VALUE '06', END OF co_output_style. - "!
No Characters
- "! Number of characters - "! $minimum 0 - "! $maximum 999999 - TYPES ty_length TYPE i. - - "!Decimals
- "! Decimals - "! $minimum 0 - "! $maximum 999999 - TYPES ty_decimals TYPE i. - "!Output Length
"! Output length "! $minimum 0 @@ -212,15 +200,15 @@ INTERFACE zif_aff_doma_v1 PUBLIC. "!Data Type
"! Data type "! $required - data_type TYPE ty_data_type, + data_type TYPE zif_aff_ddic_types_v1=>ty_data_type, "!Length
"! Length "! $required - length TYPE ty_length, + length TYPE zif_aff_ddic_types_v1=>ty_length, "! Set if decimal - decimals TYPE ty_decimals, + decimals TYPE zif_aff_ddic_types_v1=>ty_decimals, END OF ty_format. diff --git a/file-formats/dtel/README.md b/file-formats/dtel/README.md new file mode 100644 index 000000000..35fca07ae --- /dev/null +++ b/file-formats/dtel/README.md @@ -0,0 +1,13 @@ +# Dictionary Data Elements File Format + +## Object Type Information + +Object Type | Description | Group +:--- | :--- | :--- +DTEL | Dictionary Data Elements | Dictionary + +## File Structure + +File | Cardinality | Definition | Schema | Example +:--- | :--- | :--- | :--- | :--- +`Predefined Type
+ "! Predefined ABAP type + BEGIN OF ty_predefined_type, + "!Data Type
+ "! Data type + "! $required + data_type TYPE zif_aff_ddic_types_v1=>ty_data_type, + "!Length
+ "! Length + "! $required + length TYPE zif_aff_ddic_types_v1=>ty_length, + "!Decimals
+ "! Decimals + decimals TYPE zif_aff_ddic_types_v1=>ty_decimals, + END OF ty_predefined_type. + + TYPES: + "!Field Labels
+ "! Field labels + BEGIN OF ty_field_labels, + "!Short
+ "! Short field label + short TYPE c LENGTH 10, + "!Medium
+ "! Medium field label + medium TYPE c LENGTH 20, + "!Long
+ "! Long field label + long TYPE c LENGTH 40, + "!Heading
+ "! Heading field label + heading TYPE c LENGTH 55, + END OF ty_field_labels. + + TYPES: + "!Data Type Information
+ "! Data type information + BEGIN OF ty_data_type_information, + "!Domain Name
+ "! Reference domain name + domain_name TYPE zif_aff_types_v1=>ty_object_name_30, + + "!Predefined Type
+ "! Predefined ABAP type + predefined_type TYPE ty_predefined_type, + + "!Reference Type
+ "! Reference to an ABAP type + reference_type TYPE zif_aff_types_v1=>ty_object_name_30, + + "!Reference Predefined Type
+ "! Reference to a predefined ABAP type + reference_predefined_type TYPE zif_aff_types_v1=>ty_object_name_30, + END OF ty_data_type_information. + + TYPES: + "!Search Help
+ "! Search help + BEGIN OF ty_search_help, + "!Name
+ "! Search help name + "! $required + name TYPE zif_aff_types_v1=>ty_object_name_30, + "!Parameter
+ "! Search help parameters + "! $required + parameter TYPE c LENGTH 30, + END OF ty_search_help. + + + TYPES: + "!Basic Direction
+ "! Basic direction + "! $values {@link zif_aff_dtel_v1.co_bidi_basic_direction } + "! $default {@link zif_aff_dtel_v1.co_bidi_basic_direction.left_to_right } + ty_basic_direction TYPE c LENGTH 1. + + CONSTANTS: + BEGIN OF co_bidi_basic_direction, + "!Left to Right
+ "! Left to right + left_to_right TYPE c LENGTH 1 VALUE ' ', + "!Right to Left
+ "! Right to left + right_to_left TYPE c LENGTH 1 VALUE 'X', + END OF co_bidi_basic_direction. + + TYPES: + "!Bidirectional Options
+ "! Bidirectional options + BEGIN OF ty_bidirectional_options, + "!Basic Direction
+ "! Basic direction + basic_direction TYPE ty_basic_direction, + + "!Bidirectional no filtering
+ "! Bidirectional no filtering + no_filtering TYPE abap_bool, + END OF ty_bidirectional_options. + + + TYPES: + "!Additional Properties
+ "! Additional properties + BEGIN OF ty_additional_properties, + "!Set/Get parameter ID
+ "! Set/Get parameter ID + parameter_id TYPE c LENGTH 20, + + "!Default component name
+ "! Default component name + default_component_name TYPE c LENGTH 30, + + "!Change document relevant
+ "! Change document relevant + change_document_relevant TYPE abap_bool, + + "!No input history
+ "! No input history + no_input_history TYPE abap_bool, + END OF ty_additional_properties. + + + TYPES: + "!Data Element
+ "! Data Element (DTEL) + BEGIN OF ty_main, + "! $required + format_version TYPE zif_aff_types_v1=>ty_format_version, + + "!Header
+ "! Header + "! $required + header TYPE zif_aff_types_v1=>ty_header_60, + + "!Data Type Information
+ "! Data type information + "! $required + data_type_information TYPE ty_data_type_information, + + "!Field Labels
+ "! Field labels + field_labels TYPE ty_field_labels, + + "!Search Help
+ "! Search help + search_help TYPE ty_search_help, + + "!Bidirectional Options
+ "! Bidirectional options + bidirectional_options TYPE ty_bidirectional_options, + + "!Additional Properties
+ "! Additional properties + additional_properties TYPE ty_additional_properties, + + END OF ty_main. + +ENDINTERFACE. diff --git a/file-formats/dtel/type/zif_aff_dtel_v1.intf.json b/file-formats/dtel/type/zif_aff_dtel_v1.intf.json new file mode 100644 index 000000000..0caefeae2 --- /dev/null +++ b/file-formats/dtel/type/zif_aff_dtel_v1.intf.json @@ -0,0 +1,7 @@ +{ + "formatVersion": "1", + "header": { + "description": "AFF type for data elements", + "originalLanguage": "en" + } +} diff --git a/file-formats/zif_aff_ddic_types_v1.intf.abap b/file-formats/zif_aff_ddic_types_v1.intf.abap new file mode 100644 index 000000000..7e4217ad5 --- /dev/null +++ b/file-formats/zif_aff_ddic_types_v1.intf.abap @@ -0,0 +1,175 @@ +"!Common DDIC types reusable in AFF
+"! Types which can be reused for ABAP Dictionary object types (DOMA, DTEL, etc.) +INTERFACE zif_aff_ddic_types_v1 PUBLIC. + + "!Data Type
+ "! ABAP Dictionary data type + "! $values {@link zif_aff_ddic_types_v1.data:co_data_type} + "! $default {@link zif_aff_ddic_types_v1.data:co_data_type.char} + TYPES ty_data_type TYPE c LENGTH 4. + + CONSTANTS: + BEGIN OF co_data_type, + "!Posting period YYYYMM
+ "! Posting period YYYYMM + "! $enumValue 'ACCP' + accp TYPE ty_data_type VALUE 'ACCP', + "!Character String
+ "! Character string + "! $enumValue 'CHAR' + char TYPE ty_data_type VALUE 'CHAR', + "!Client
+ "! Client + "! $enumValue 'CLNT' + clnt TYPE ty_data_type VALUE 'CLNT', + "!Currency Key
+ "! Currency key, referenced by CURR fields + "! $enumValue 'CUKY' + cuky TYPE ty_data_type VALUE 'CUKY', + "!Currency Field
+ "! Currency field, stored as DEC + "! $enumValue 'CURR' + curr TYPE ty_data_type VALUE 'CURR', + "!Decimal Floating Point, 16 Digits, DEC on Database
+ "! Decimal floating point, 16 digits, DEC on database + "! $enumValue 'DF16_DEC' + df16_dec TYPE ty_data_type VALUE 'D16D', + "!Decimal Floating Point, 16 Digits, RAW on Database
+ "! Decimal floating point, 16 digits, RAW on database + "! $enumValue 'DF16_RAW' + df16_raw TYPE ty_data_type VALUE 'D16R', + "!Decimal Floating Point. 16 Digits, with Scale Field
+ "! Decimal floating point. 16 digits, with scale field + "! $enumValue 'DF16_SCL' + df16_scl TYPE ty_data_type VALUE 'D16S', + "!Floating Point Number, HANA Type, Small Decimal
+ "! Floating point number, HANA type, small decimal + "! $enumValue 'DECFLOAT16' + decfloat16 TYPE ty_data_type VALUE 'D16N', + "!Decimal Floating Point, 34 Digits, DEC on Database
+ "! Decimal floating point, 34 Digits, DEC on database + "! $enumValue 'DF34_DEC' + df34_dec TYPE ty_data_type VALUE 'D34D', + "!Decimal Floating Point, 34 Digits, RAW on Database
+ "! Decimal floating point, 34 Digits, RAW on database + "! $enumValue 'DF34_RAW' + df34_raw TYPE ty_data_type VALUE 'D34R', + "!Decimal Floating Point, 34 Digits, with Scale Field
+ "! Decimal floating point, 34 digits, with scale field + "! $enumValue 'DF34_SCL' + df34_scl TYPE ty_data_type VALUE 'D34S', + "!Floating Point Number, HANA Type, Large Decimal
+ "! Floating point number, HANA type, large decimal + "! $enumValue 'DECFLOAT34' + decfloat34 TYPE ty_data_type VALUE 'D34N', + "!Date (YYYYMMDD)
+ "! Date field (YYYYMMDD), stored as char(8) + "! $enumValue 'DATS' + dats TYPE ty_data_type VALUE 'DATS', + "!Date (YYYYMMDD), HANA Type
+ "! Date field (YYYYMMDD), HANA type + "! $enumValue 'DATN' + datn TYPE ty_data_type VALUE 'DATN', + "!Counter or Amount
+ "! Counter or amount field with comma and sign + "! $enumValue 'DEC' + dec TYPE ty_data_type VALUE 'DEC', + "!Floating Point Number
+ "! Floating point number, accurate to 8 bytes + "! $enumValue 'FLTP' + fltp TYPE ty_data_type VALUE 'FLTP', + "!Geometry
+ "! Geometry, EWKB representation + "! $enumValue 'GEOM_EWKB' + geom_ewkb TYPE ty_data_type VALUE 'GGM1', + "!1-Byte Integer
+ "! 1-byte integer, integer number <= 255 + "! $enumValue 'INT1' + int1 TYPE ty_data_type VALUE 'INT1', + "!2-Byte Integer
+ "! 2-byte integer, only for length field before LCHR or LRAW + "! $enumValue 'INT2' + int2 TYPE ty_data_type VALUE 'INT2', + "!4-Byte Integer
+ "! 4-byte integer, integer number with sign + "! $enumValue 'INT4' + int4 TYPE ty_data_type VALUE 'INT4', + "!8-Byte Integer
+ "! 8-byte integer, integer number with sign + "! $enumValue 'INT8' + int8 TYPE ty_data_type VALUE 'INT8', + "!Language Key
+ "! Language key + "! $enumValue 'LANG' + lang TYPE ty_data_type VALUE 'LANG', + "!Long Character String
+ "! Long character string, requires preceding INT2 field + "! $enumValue 'LCHR' + lchr TYPE ty_data_type VALUE 'LCHR', + "!Long Byte String
+ "! Long byte string, requires preceding INT2 field + "! $enumValue 'LRAW' + lraw TYPE ty_data_type VALUE 'LRAW', + "!Numeric Character String
+ "! Character string with only digits + "! $enumValue 'NUMC' + numc TYPE ty_data_type VALUE 'NUMC', + "!Obsolete Data Type PREC (Do Not Use)
+ "! Obsolete data type PREC, do not use + "! $enumValue 'PREC' + prec TYPE ty_data_type VALUE 'PREC', + "!Quantity
+ "! Quantity field, points to a unit field with format UNIT + "! $enumValue 'QUAN' + quan TYPE ty_data_type VALUE 'QUAN', + "!Uninterpreted sequence of bytes
+ "! Uninterpreted sequence of bytes + "! $enumValue 'RAW' + raw TYPE ty_data_type VALUE 'RAW', + "!Byte String of Variable Length
+ "! Byte String of Variable Length + "! $enumValue 'RAWSTRING' + rawstring TYPE ty_data_type VALUE 'RSTR', + "!Short Character String of Variable Length
+ "! Short Character String of Variable Length + "! $enumValue 'SSTRING' + sstring TYPE ty_data_type VALUE 'SSTR', + "!Character String of Variable Length
+ "! Character String of Variable Length + "! $enumValue 'STRING' + string TYPE ty_data_type VALUE 'STRG', + "!Time (hhmmss)
+ "! Time field (hhmmss), stored as char(6) + "! $enumValue 'TIMS' + tims TYPE ty_data_type VALUE 'TIMS', + "!Time (hhmmss; Native HANA Type)
+ "! Time field (hhmmss), native HANA type + "! $enumValue 'TIMN' + timn TYPE ty_data_type VALUE 'TIMN', + "!Unit
+ "! Unit key for QUAN fields + "! $enumValue 'UNIT' + unit TYPE ty_data_type VALUE 'UNIT', + "!Timestamp, HANA Type
+ "! Timestamp, HANA type + "! $enumValue 'UTCLONG' + utclong TYPE ty_data_type VALUE 'UTCL', + "!Long character string, no longer supported from Rel. 3.0
+ "! Long character string, no longer supported from Rel. 3.0 + "! $enumValue 'VARC' + varc TYPE ty_data_type VALUE 'VARC', + END OF co_data_type. + + "!Length
+ "! Number of characters + "! $minimum 0 + "! $maximum 999999 + TYPES ty_length TYPE i. + + "!Decimals
+ "! Decimals + "! $minimum 0 + "! $maximum 999999 + TYPES ty_decimals TYPE i. + +ENDINTERFACE. diff --git a/file-formats/zif_aff_ddic_types_v1.intf.json b/file-formats/zif_aff_ddic_types_v1.intf.json new file mode 100644 index 000000000..897e206d2 --- /dev/null +++ b/file-formats/zif_aff_ddic_types_v1.intf.json @@ -0,0 +1,7 @@ +{ + "formatVersion": "1", + "header": { + "description": "Common DDIC types reusable in AFF", + "originalLanguage": "en" + } +}