OO serializer: skip includes not found (#6324)

This commit is contained in:
Lars Hvam 2023-06-27 10:55:06 +02:00 committed by GitHub
parent 4f2935bf35
commit cddf583806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,9 +131,9 @@ CLASS zcl_abapgit_oo_serializer IMPLEMENTATION.
METHOD read_include.
DATA: ls_include TYPE progstruc.
DATA ls_include TYPE progstruc.
DATA lv_program TYPE syrepid.
DATA lt_source TYPE abaptxt255_tab.
DATA lt_source TYPE abaptxt255_tab.
ASSERT iv_type = seop_ext_class_locals_def
OR iv_type = seop_ext_class_locals_imp
@ -149,7 +149,11 @@ CLASS zcl_abapgit_oo_serializer IMPLEMENTATION.
* on 750 kernels, where the READ REPORT without STATE addition does not
* return the active version, this method is a workaround for this issue
lv_program = ls_include.
lt_source = zcl_abapgit_factory=>get_sap_report( )->read_report( lv_program ).
TRY.
lt_source = zcl_abapgit_factory=>get_sap_report( )->read_report( lv_program ).
CATCH zcx_abapgit_exception.
* ignore if the report is not found, sometimes the CCDEF include does not exist
ENDTRY.
rt_source = lt_source.
ENDMETHOD.