From 5cfb166d8757657bfb94050cf4cec4fc77215379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederik=20Hud=C3=A1k?= Date: Thu, 16 May 2019 13:26:00 +0200 Subject: [PATCH] Change how table maintenance includes are excluded from serialization Non-generated includes can also have author 'SAP'. Fixes #2674. --- src/objects/zcl_abapgit_object_fugr.clas.abap | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/objects/zcl_abapgit_object_fugr.clas.abap b/src/objects/zcl_abapgit_object_fugr.clas.abap index 5ef401906..187a946e1 100644 --- a/src/objects/zcl_abapgit_object_fugr.clas.abap +++ b/src/objects/zcl_abapgit_object_fugr.clas.abap @@ -493,6 +493,11 @@ CLASS ZCL_ABAPGIT_OBJECT_FUGR IMPLEMENTATION. AND object = 'PROG' AND obj_name = rt_includes-table_line. LOOP AT rt_includes ASSIGNING . + " skip autogenerated includes from Table Maintenance Generator + IF CP 'LSVIM*'. + DELETE rt_includes INDEX sy-tabix. + CONTINUE. + ENDIF. READ TABLE lt_tadir_includes WITH KEY table_line = TRANSPORTING NO FIELDS. IF sy-subrc = 0. DELETE rt_includes. @@ -516,10 +521,10 @@ CLASS ZCL_ABAPGIT_OBJECT_FUGR IMPLEMENTATION. LOOP AT rt_includes ASSIGNING . lv_tabix = sy-tabix. -* skip SAP standard includes and also make sure the include exists +* make sure the include exists READ TABLE lt_reposrc INTO ls_reposrc WITH KEY progname = BINARY SEARCH. - IF sy-subrc <> 0 OR ls_reposrc-cnam = 'SAP'. + IF sy-subrc <> 0. DELETE rt_includes INDEX lv_tabix. ENDIF.