cancel
Showing results for 
Search instead for 
Did you mean: 

Physically WBS deleteion

Former Member
0 Kudos

Hello;

For our development, we want to delete WBS elements ( not deletion flag) , which BAPı our function must be used?

Can you send an example or a link?

Thanks alot.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi!!

look at the code below..just for ur reference.Though u r using correct BAPI but u are not using 'BAPI_PS_INITIALIZATION' and 'BAPI_TRANSACTION_COMMIT' so u r getting the above errors.

Use call function 'BAPI_PS_INITIALIZATION'. before calling

BAPI_BUS2054_DELETE_MULTI and use 'BAPI_PS_PRECOMMIT' and 'BAPI_TRANSACTION_COMMIT'after ur required bapi is called.

sample code

call function 'BAPI_PS_INITIALIZATION'.

call function 'BAPI_BUS2002_ACT_CHANGE_MULTI'

exporting

i_number = wa_i_activity-network

tables

it_activity = t_activity

it_update_activity = t_activity_upd

et_return = et_return

extensionin = extensionin

extensionout = extensionout.

read table et_return into wa_et_return with key type = 'E'.

if sy-subrc ne 0.

call function 'BAPI_PS_PRECOMMIT'

tables

et_return = et_return.

call function 'BAPI_TRANSACTION_COMMIT'

exporting

wait = 'X'.

Hope this will solve ur problem.

Edited by: Deepika Singh on Jul 8, 2008 7:02 AM

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello;

We have already tried this BAPI however we faced up with following error message:

How can we haddle the sitiation?

E CNIF_PI 011 Object WBS Element GPIR-0804-MLF1-01-E-0-71 could not be deleted

E CNIF_PI 078 Processing not possible because there is no initialization

I_PROJECT_DEFINITION = project code

IT_DELETE_WBS_ELEMENT ) Wbs element that want to be deleted.

Former Member
0 Kudos

I dont think you can delete the WBS permanently using a BAPI.

Set the deletion indicator. When you do an archiving these entries will be cleared off the DB.

Is there any specific reason why you want to delete the WBS from the DB?

Regards

Ramesh-

Former Member
0 Kudos

I dont think you can delete the WBS permanently using a BAPI.

Set the deletion indicator. When you do an archiving these entries will be cleared off the DB.

Is there any specific reason why you want to delete the WBS from the DB?

Regards

Ramesh-

Former Member
0 Kudos

Hi,

This BAPI is correct for your purpose. I am not ABAPer so cant comment much. PS BAPIs need initialisation, this error seems to be related to that. Hope you have followed the documentation in SE37.

Regards

Former Member
0 Kudos

Use BAPI_BUS2054_DELETE_MULTI. Refer documentation in SE37, take help from ABAPer. You can even search threads in ABAP forum.

Regards