From ba1bc3d297945037b1c0d64d3027756976da68a1 Mon Sep 17 00:00:00 2001 From: Nicolas Huber <80829269+huber-nicolas@users.noreply.github.com> Date: Thu, 17 Mar 2022 11:54:08 +0100 Subject: [PATCH] New header ty_header_60_cloud in if_aff_types_v1 (#333) * New header ty_header_60_cloud in if_aff_types_v1 * Fix abaplint * Change title and description of abap language version * Add empty line at end of file --- file-formats/zif_aff_types_v1.intf.abap | 71 ++++++++++++++----------- 1 file changed, 41 insertions(+), 30 deletions(-) diff --git a/file-formats/zif_aff_types_v1.intf.abap b/file-formats/zif_aff_types_v1.intf.abap index facf3aa7e..7ed35c9a5 100644 --- a/file-formats/zif_aff_types_v1.intf.abap +++ b/file-formats/zif_aff_types_v1.intf.abap @@ -8,23 +8,35 @@ INTERFACE zif_aff_types_v1 PUBLIC. "!

ABAP Language Version

"! ABAP language version + "! $values {@link zif_aff_types_v1.data:co_abap_language_version} + "! $default {@link zif_aff_types_v1.data:co_abap_language_version.standard} TYPES ty_abap_language_version TYPE c LENGTH 1. + "!

ABAP Language Version

+ "! ABAP language version + "! $values {@link zif_aff_types_v1.data:co_abap_language_version_cloud} + "! $default {@link zif_aff_types_v1.data:co_abap_language_version_cloud.standard} + TYPES ty_abap_language_version_cloud TYPE c LENGTH 1. + + "!

ABAP Language Version

+ "! ABAP language version + "! $values {@link zif_aff_types_v1.data:co_abap_language_version_src} + "! $default {@link zif_aff_types_v1.data:co_abap_language_version_src.standard} + TYPES ty_abap_language_version_src TYPE c LENGTH 1. + CONSTANTS: "!

ABAP Language Version (Source Code Objects)

"! ABAP language version for source code objects like CLAS, INTF, FUGR or PROG. - "! Other source code objects (f.ex. DDLS) and non-source code objects have to use - "! {@link zif_aff_types_v1.data:ty_abap_language_version } BEGIN OF co_abap_language_version_src, "!

Standard

"! Standard - standard TYPE ty_abap_language_version VALUE 'X', + standard TYPE ty_abap_language_version_src VALUE 'X', "!

ABAP for Key Users

"! ABAP for key user extensibility - key_user TYPE ty_abap_language_version VALUE '2', + key_user TYPE ty_abap_language_version_src VALUE '2', "!

ABAP Cloud Development

"! ABAP cloud development - cloud_development TYPE ty_abap_language_version VALUE '5', + cloud_development TYPE ty_abap_language_version_src VALUE '5', END OF co_abap_language_version_src. CONSTANTS: @@ -44,14 +56,14 @@ INTERFACE zif_aff_types_v1 PUBLIC. CONSTANTS: "!

ABAP Language Version

- "! ABAP language version for objects which only exist for standard and cloud development + "! ABAP language version for objects which only exist for standard and cloud development (no key user extensibility) BEGIN OF co_abap_language_version_cloud, "!

Standard

"! Standard - standard TYPE ty_abap_language_version VALUE space, + standard TYPE ty_abap_language_version_cloud VALUE space, "!

ABAP Cloud Development

"! ABAP cloud development - cloud_development TYPE ty_abap_language_version VALUE '5', + cloud_development TYPE ty_abap_language_version_cloud VALUE '5', END OF co_abap_language_version_cloud. "!

Description

@@ -65,6 +77,10 @@ INTERFACE zif_aff_types_v1 PUBLIC. "! Object name with max. length 30 TYPES ty_object_name_30 TYPE c LENGTH 30. + "!

Original Language

+ "! Original language of the ABAP object + TYPES ty_original_language TYPE sy-langu. + TYPES: "!

Header for Source Code Objects

"! The header for an ABAP main object (with source code) with a description of 60 characters @@ -73,17 +89,24 @@ INTERFACE zif_aff_types_v1 PUBLIC. "! Description of the ABAP object "! $required description TYPE ty_description_60, - "!

Original Language

- "! Original language of the ABAP object "! $required - original_language TYPE sy-langu, - "!

ABAP Language Version (Source Code Objects)

- "! ABAP language version for source code objects - "! $values {@link zif_aff_types_v1.data:co_abap_language_version_src} - "! $default {@link zif_aff_types_v1.data:co_abap_language_version_src.standard} - abap_language_version TYPE ty_abap_language_version, + original_language TYPE ty_original_language, + abap_language_version TYPE ty_abap_language_version_src, END OF ty_header_60_src. + TYPES: + "!

Header for Non-Source Code Objects (no key user)

+ "! The header for an ABAP main object (without source code) with a description of 60 characters (no key user) + BEGIN OF ty_header_60_cloud, + "!

Description

+ "! Description of the ABAP object + "! $required + description TYPE ty_description_60, + "! $required + original_language TYPE ty_original_language, + abap_language_version TYPE ty_abap_language_version_cloud, + END OF ty_header_60_cloud. + TYPES: "!

Header for Non-Source Code Objects

"! The header for an ABAP main object (without source code) with a description of 60 characters @@ -92,14 +115,8 @@ INTERFACE zif_aff_types_v1 PUBLIC. "! Description of the ABAP object "! $required description TYPE ty_description_60, - "!

Original Language

- "! Original language of the ABAP object "! $required - original_language TYPE sy-langu, - "!

ABAP Language Version

- "! ABAP language version - "! $values {@link zif_aff_types_v1.data:co_abap_language_version} - "! $default {@link zif_aff_types_v1.data:co_abap_language_version.standard} + original_language TYPE ty_original_language, abap_language_version TYPE ty_abap_language_version, END OF ty_header_60. @@ -111,14 +128,8 @@ INTERFACE zif_aff_types_v1 PUBLIC. "! Description of the ABAP object "! $required description TYPE ty_description_100, - "!

Original Language

- "! Original language of the ABAP object "! $required - original_language TYPE sy-langu, - "!

ABAP Language Version

- "! ABAP language version - "! $values {@link zif_aff_types_v1.data:co_abap_language_version} - "! $default {@link zif_aff_types_v1.data:co_abap_language_version.standard} + original_language TYPE ty_original_language, abap_language_version TYPE ty_abap_language_version, END OF ty_header_100.