From aa2e082dcb8b0f4c1f8e6b53f8616d2df82cc897 Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Fri, 15 Nov 2024 12:56:02 +0100 Subject: [PATCH] longtexts: workaround strange object names dump (#7077) --- .../texts/zcl_abapgit_longtexts.clas.abap | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/objects/texts/zcl_abapgit_longtexts.clas.abap b/src/objects/texts/zcl_abapgit_longtexts.clas.abap index da4f6047eb..11c2a94b73 100644 --- a/src/objects/texts/zcl_abapgit_longtexts.clas.abap +++ b/src/objects/texts/zcl_abapgit_longtexts.clas.abap @@ -77,19 +77,21 @@ CLASS zcl_abapgit_longtexts IMPLEMENTATION. ENDIF. ELSEIF iv_longtext_id IS NOT INITIAL. - IF iv_main_lang_only = abap_true. - SELECT * FROM dokil - INTO TABLE lt_dokil - WHERE id = iv_longtext_id - AND object LIKE lv_object ESCAPE '#' - AND masterlang = abap_true - ORDER BY PRIMARY KEY. - ELSE. - SELECT * FROM dokil - INTO TABLE lt_dokil - WHERE id = iv_longtext_id - AND object LIKE lv_object ESCAPE '#' - ORDER BY PRIMARY KEY. + IF lv_object NA '#'. + IF iv_main_lang_only = abap_true. + SELECT * FROM dokil + INTO TABLE lt_dokil + WHERE id = iv_longtext_id + AND object LIKE lv_object ESCAPE '#' + AND masterlang = abap_true + ORDER BY PRIMARY KEY. + ELSE. + SELECT * FROM dokil + INTO TABLE lt_dokil + WHERE id = iv_longtext_id + AND object LIKE lv_object ESCAPE '#' + ORDER BY PRIMARY KEY. + ENDIF. ENDIF. ELSE.