Exit logic should only be applied for main sel scr (#4060)

fixes #4058
This commit is contained in:
Christian Günter 2020-10-24 08:14:23 +02:00 committed by GitHub
parent d04b1b057c
commit 2d0729bc98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,6 +89,14 @@ FORM output.
ENDFORM. ENDFORM.
FORM exit RAISING zcx_abapgit_exception. 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. CASE sy-ucomm.
WHEN 'CBAC' OR 'CCAN'. "Back & Escape WHEN 'CBAC' OR 'CCAN'. "Back & Escape
IF zcl_abapgit_ui_factory=>get_gui( )->back( ) = abap_true. " end of stack IF zcl_abapgit_ui_factory=>get_gui( )->back( ) = abap_true. " end of stack