added exception handling as hotfix of #6696 (#6697)

Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
gardian12 2023-12-13 12:30:08 +01:00 committed by GitHub
parent c2219e553f
commit 9526743562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ ENDCLASS.
CLASS zcl_abapgit_data_utils IMPLEMENTATION. CLASS ZCL_ABAPGIT_DATA_UTILS IMPLEMENTATION.
METHOD build_config_filename. METHOD build_config_filename.
@ -166,7 +166,10 @@ CLASS zcl_abapgit_data_utils IMPLEMENTATION.
ro_delivery_class = lo_delivery_class. ro_delivery_class = lo_delivery_class.
ASSIGN lo_delivery_class->('VALUE') TO <ls_any>. ASSIGN lo_delivery_class->('VALUE') TO <ls_any>.
lv_contflag = <ls_any>. lv_contflag = <ls_any>.
CATCH cx_sy_dyn_call_illegal_class. CATCH cx_sy_dyn_call_illegal_class cx_no_check.
" Catching SAP standard exception CX_NO_CHECK,
" because of the expected exception CX_XCO_RUNTIME_EXCEPTION
" could not be used here directly to keep the indirect usage approach.
SELECT SINGLE contflag FROM ('DD02L') INTO lv_contflag WHERE tabname = iv_name. SELECT SINGLE contflag FROM ('DD02L') INTO lv_contflag WHERE tabname = iv_name.
ENDTRY. ENDTRY.