Application Development 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: 

Delete partner function using BAPI_BUSPROCESSND_CHANGEMULTI

Former Member
0 Kudos

Hi,

I am trying to delete a partner function from a business transaction using BAPI_BUSPROCESSND_CHANGEMULTI, and even though I have tried every single possible combination (for the partner structure and the input_list) I have not been able to do so.

Any ideas on how could I achieve this?.

I already know that the BAPI_BUSPROCESS_SAVE has to be called after BAPI_BUSPROCESSND_CHANGEMULTI in order for the changes to be updated, but still I get no result on deleting the partner function and I get no error from the BAPI.

Thanks for any help you guys can give me.

3 REPLIES 3

Former Member
0 Kudos

Hi everyone,

I kept testing and if I call the function only with the partner function deletion I get the error:

E CRM_ORDER 037 The document could not be saved

And this error is generated after the BAPI has called de BUSPROCESS_SAVE BAPI.

I checked and there are no implemented BADIS on my system that could be generating this error or throwing the DO NOT SAVE exception.

Thanks a lot for any help,

Felipe

0 Kudos

Try putting the break point on the FM when deleting the partner funciton using standard transaction. Then you will know what data should be passed.

0 Kudos

Hi Nitin,

The standard transaction doesn't use this function module. It uses the one that this FM calls and I have put the breakpoint in it and checked the information that the standard sends and then I tried combinations in which the BAPI will call that FM sending the exact same parameters as the standard does and it still doesn't work. (Also there is a parameter that the BAPI definitively doesn't send and the standard does, I tried to find a note on this but couldn't find any, but then I was reading documentation on this BAPIs and they say I don't need that parameter, to delete a PF I should only need the REF_PARTNER_FUNC, REF_PARTNER_NO, REF_NO_TYPE AND REF_DISPLAY_TYPE.)

Thanks,

Felipe