‎2006 Nov 16 8:56 AM
Hello,
We are trying to delete project that has WBS elements, networks and activities with the help of BAPI's. What steps should we perform (what BAPI's should we call), one after another, to delete the project with all its elements? We are using BAPI's for set/undo status for networks and projects and BAPI's for network/ project deletion but we are pretty confused about the order we should call them. We don't understand the order of using deletion flag and deletion indicator. Any help is welcomed
Thanks in advance,
Sergey Kozyrev
‎2006 Nov 16 9:00 AM
Check the documentation in se37 for the bapi:
BAPI_NETWORK_MAINTAIN
‎2006 Nov 16 9:08 AM
Well when you are using BAPIs for Project systems wheather it be creation or change or satus update.. there is a sequence of BAPIs that should be followed.
Step 1 : call BAPI : BAPI_PS_INITIALIZATION.
Step 2 : call other BAPIs for create, change, delete or status update any thing...
Step 3 : call BAPI : BAPI_PS_PRECOMMIT
Step 4 : call BAPI : BAPI_TRANSACTION_COMMIT
If you want to know why the Step 1 and step 3 are necessary.. Please read the documentation of these function modules.
I hope this was helpful. Please reward points if it was.
If still un-resolved feel free to come back... Also if you can explain your exact requirement it would be easier to answer.
‎2006 Nov 16 9:17 AM
Hi Yaniv,
You can try with the follwing BAPI's
BAPI_BUS2001_DELETE "to delte the Project
BAPI_BUS2054_DELETE_MULTI "to Delete WBS element
BAPI_BUS2002_DELETE "to Delete the Newwork
Regards
Vijay