From 25980d80fec8650b0f79008a236bddf183dc6d6c Mon Sep 17 00:00:00 2001 From: Christian Guenter Date: Thu, 19 Jul 2018 15:08:17 +0000 Subject: [PATCH] SICF: Delete data from ICFAPPLCUST The data in table ICFAPPLCUST (Application Customizing Data) isn't deleted by cl_icf_tree=>if_icf_tree~delete_node( ). Before this commit is applied it's not possible to delete ICF nodes with data in that table. With this commit we delete the data in the table. It's the same as transaction SICF does. --- src/objects/zcl_abapgit_object_sicf.clas.abap | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/objects/zcl_abapgit_object_sicf.clas.abap b/src/objects/zcl_abapgit_object_sicf.clas.abap index 6e8782bb8..7412670f5 100644 --- a/src/objects/zcl_abapgit_object_sicf.clas.abap +++ b/src/objects/zcl_abapgit_object_sicf.clas.abap @@ -404,10 +404,17 @@ CLASS ZCL_ABAPGIT_OBJECT_SICF IMPLEMENTATION. ENDIF. IF ls_icfservice-icfparguid CO '0'. -* not supported by the SAP standard API + " not supported by the SAP standard API zcx_abapgit_exception=>raise( 'SICF - cannot delete root node, delete node manually' ). ENDIF. + " Delete Application Customizing Data the hard way, as it isn't done by the API. + " If we wouldn't we would get errors from the API if entrys exist. + " Transaction SICF does the same. + DELETE FROM icfapplcust + WHERE icf_name = ls_icfservice-icf_name + AND icfparguid = ls_icfservice-icfparguid. + cl_icf_tree=>if_icf_tree~delete_node( EXPORTING icfparguid = ls_icfservice-icfparguid