From 556dd2512344c96da3125dbb71f612d266609783 Mon Sep 17 00:00:00 2001 From: Christopher Graw <119762644+Developer-101-c@users.noreply.github.com> Date: Fri, 24 Nov 2023 10:31:31 +0100 Subject: [PATCH] Remove Quotes from Description (#2) remove quotes from the description in the base class. --- CHANGELOG.md | 9 +++++++++ src/zcl_cds_alv_base.clas.abap | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..26d24a2 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,9 @@ +v 1.0.2 + +- Changelog added +- Quotation marks are now removed from the description in base class ZCL_CDS_ALV_BASE. This fixes an issue with incorrect syntax being generated for CDS view entities. + +v 1.0.1 + +- Master Language changed from German (DE) to English (EN) +- Version added (version is now 1.0.1) \ No newline at end of file diff --git a/src/zcl_cds_alv_base.clas.abap b/src/zcl_cds_alv_base.clas.abap index 32f4323..7db891b 100644 --- a/src/zcl_cds_alv_base.clas.abap +++ b/src/zcl_cds_alv_base.clas.abap @@ -58,7 +58,7 @@ CLASS ZCL_CDS_ALV_BASE IMPLEMENTATION. e_parameter_annotations = parameter_annotations ). TRY. - description = entity_annotations[ annoname = 'ENDUSERTEXT.LABEL' ]-value. + description = remove_quotes( entity_annotations[ annoname = 'ENDUSERTEXT.LABEL' ]-value ). CATCH cx_sy_itab_line_not_found. description = cds_view. ENDTRY.