Skip to content

Commit

Permalink
New header ty_header_60_cloud in if_aff_types_v1 (#333)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
huber-nicolas authored Mar 17, 2022
1 parent faf94a2 commit ba1bc3d
Showing 1 changed file with 41 additions and 30 deletions.
71 changes: 41 additions & 30 deletions file-formats/zif_aff_types_v1.intf.abap
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,35 @@ INTERFACE zif_aff_types_v1 PUBLIC.

"! <p class="shorttext">ABAP Language Version</p>
"! 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.

"! <p class="shorttext">ABAP Language Version</p>
"! 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.

"! <p class="shorttext">ABAP Language Version</p>
"! 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:
"! <p class="shorttext">ABAP Language Version (Source Code Objects)</p>
"! 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,
"! <p class="shorttext">Standard</p>
"! Standard
standard TYPE ty_abap_language_version VALUE 'X',
standard TYPE ty_abap_language_version_src VALUE 'X',
"! <p class="shorttext">ABAP for Key Users</p>
"! ABAP for key user extensibility
key_user TYPE ty_abap_language_version VALUE '2',
key_user TYPE ty_abap_language_version_src VALUE '2',
"! <p class="shorttext">ABAP Cloud Development</p>
"! 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:
Expand All @@ -44,14 +56,14 @@ INTERFACE zif_aff_types_v1 PUBLIC.

CONSTANTS:
"! <p class="shorttext">ABAP Language Version</p>
"! 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,
"! <p class="shorttext">Standard</p>
"! Standard
standard TYPE ty_abap_language_version VALUE space,
standard TYPE ty_abap_language_version_cloud VALUE space,
"! <p class="shorttext">ABAP Cloud Development</p>
"! 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.

"! <p class="shorttext">Description</p>
Expand All @@ -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.

"! <p class="shorttext">Original Language</p>
"! Original language of the ABAP object
TYPES ty_original_language TYPE sy-langu.

TYPES:
"! <p class="shorttext">Header for Source Code Objects</p>
"! The header for an ABAP main object (with source code) with a description of 60 characters
Expand All @@ -73,17 +89,24 @@ INTERFACE zif_aff_types_v1 PUBLIC.
"! Description of the ABAP object
"! $required
description TYPE ty_description_60,
"! <p class="shorttext">Original Language</p>
"! Original language of the ABAP object
"! $required
original_language TYPE sy-langu,
"! <p class="shorttext">ABAP Language Version (Source Code Objects)</p>
"! 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:
"! <p class="shorttext">Header for Non-Source Code Objects (no key user)</p>
"! 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,
"! <p class="shorttext">Description</p>
"! 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:
"! <p class="shorttext">Header for Non-Source Code Objects</p>
"! The header for an ABAP main object (without source code) with a description of 60 characters
Expand All @@ -92,14 +115,8 @@ INTERFACE zif_aff_types_v1 PUBLIC.
"! Description of the ABAP object
"! $required
description TYPE ty_description_60,
"! <p class="shorttext">Original Language</p>
"! Original language of the ABAP object
"! $required
original_language TYPE sy-langu,
"! <p class="shorttext">ABAP Language Version</p>
"! 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.

Expand All @@ -111,14 +128,8 @@ INTERFACE zif_aff_types_v1 PUBLIC.
"! Description of the ABAP object
"! $required
description TYPE ty_description_100,
"! <p class="shorttext">Original Language</p>
"! Original language of the ABAP object
"! $required
original_language TYPE sy-langu,
"! <p class="shorttext">ABAP Language Version</p>
"! 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.

Expand Down

0 comments on commit ba1bc3d

Please sign in to comment.