From 611efe018beef8a8d5990dbfd2af156f488ec576 Mon Sep 17 00:00:00 2001 From: larshp Date: Sun, 19 Feb 2017 08:16:02 +0000 Subject: [PATCH] Switch to Branch with long Name results in shortdu #631 this is a workaround, code could be better --- src/zabapgit_popups.prog.abap | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/zabapgit_popups.prog.abap b/src/zabapgit_popups.prog.abap index acf62a0b3..01df95df0 100644 --- a/src/zabapgit_popups.prog.abap +++ b/src/zabapgit_popups.prog.abap @@ -390,7 +390,13 @@ CLASS lcl_popups IMPLEMENTATION. ELSE. REPLACE FIRST OCCURRENCE OF lv_head_suffix IN -varoption WITH ''. READ TABLE lt_branches WITH KEY display_name = -varoption ASSIGNING . - ASSERT sy-subrc = 0. + IF sy-subrc <> 0. +* branch name longer than 65 characters + LOOP AT lt_branches ASSIGNING WHERE display_name CS -varoption. + EXIT. " current loop + ENDLOOP. + ENDIF. + ASSERT IS ASSIGNED. rs_branch = lo_branches->find_by_name( -name ). ENDIF.