mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
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.
This commit is contained in:
parent
66ed47d876
commit
25980d80fe
|
@ -404,10 +404,17 @@ CLASS ZCL_ABAPGIT_OBJECT_SICF IMPLEMENTATION.
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
IF ls_icfservice-icfparguid CO '0'.
|
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' ).
|
zcx_abapgit_exception=>raise( 'SICF - cannot delete root node, delete node manually' ).
|
||||||
ENDIF.
|
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(
|
cl_icf_tree=>if_icf_tree~delete_node(
|
||||||
EXPORTING
|
EXPORTING
|
||||||
icfparguid = ls_icfservice-icfparguid
|
icfparguid = ls_icfservice-icfparguid
|
||||||
|
|
Loading…
Reference in New Issue
Block a user