From 2d0729bc986655b582ad82f0afb273881f6d6df0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=BCnter?= Date: Sat, 24 Oct 2020 08:14:23 +0200 Subject: [PATCH] Exit logic should only be applied for main sel scr (#4060) fixes #4058 --- src/zabapgit_forms.prog.abap | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/zabapgit_forms.prog.abap b/src/zabapgit_forms.prog.abap index 815ce8dc3..e77d530f0 100644 --- a/src/zabapgit_forms.prog.abap +++ b/src/zabapgit_forms.prog.abap @@ -89,6 +89,14 @@ FORM output. ENDFORM. FORM exit RAISING zcx_abapgit_exception. + + " The exit logic should only be applied for our 'main' selection screen 1001. + " All other selection-screens are called as popups and shouldn't influence + " the gui navigation as it would lead to inpredictable behaviour like dumps. + IF sy-dynnr <> 1001. + RETURN. + ENDIF. + CASE sy-ucomm. WHEN 'CBAC' OR 'CCAN'. "Back & Escape IF zcl_abapgit_ui_factory=>get_gui( )->back( ) = abap_true. " end of stack