From 71bcc8afac869cba6288f4bb4e0ef47fcbb6943f Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Mon, 4 Jun 2018 15:11:41 +0200 Subject: [PATCH] CLAS: ignore deletion of non-existent objects (#1439) * CLAS: ignore deletion of non-existent objects --- src/objects/zcl_abapgit_oo_class.clas.abap | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/objects/zcl_abapgit_oo_class.clas.abap b/src/objects/zcl_abapgit_oo_class.clas.abap index bd5f58350..1a3325a3b 100644 --- a/src/objects/zcl_abapgit_oo_class.clas.abap +++ b/src/objects/zcl_abapgit_oo_class.clas.abap @@ -273,8 +273,12 @@ CLASS zcl_abapgit_oo_class IMPLEMENTATION. no_access = 4 other = 5 OTHERS = 6. - IF sy-subrc <> 0. - zcx_abapgit_exception=>raise( 'Error from SEO_CLASS_DELETE_COMPLETE' ). + IF sy-subrc = 1. +* ignore deletion of objects that does not exist +* this can happen when the SXCI object is deleted before the implementing CLAS + RETURN. + ELSEIF sy-subrc <> 0. + zcx_abapgit_exception=>raise( |Error from SEO_CLASS_DELETE_COMPLETE: { sy-subrc }| ). ENDIF. ENDMETHOD.