CLAS: ignore deletion of non-existent objects (#1439)

* CLAS: ignore deletion of non-existent objects
This commit is contained in:
Lars Hvam 2018-06-04 15:11:41 +02:00 committed by GitHub
parent f1c15b1e95
commit 71bcc8afac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.