on 07-07-2008 8:35 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use BAPI_BUS2054_DELETE_MULTI. Refer documentation in SE37, take help from ABAPer. You can even search threads in ABAP forum.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.