Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Cannot delete the project

Former Member
0 Likes
613

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

3 REPLIES 3
Read only

Former Member
0 Likes
560

Check the documentation in se37 for the bapi:

BAPI_NETWORK_MAINTAIN

Read only

former_member69765
Contributor
0 Likes
560

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.

Read only

Former Member
0 Likes
560

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