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

cmd_ei_api=>maintain_bapi to update partner functions

Former Member
0 Likes
4,148

Hi,

I am using  cmd_ei_api=>maintain_bapi to update a customers partner functions. In my example I have a customer with the partner function WE (ship-to) already existing. I want to add now another WE partner (dummy number) to the same customer.

When I use :

object_task = 'U'

sales_tast = 'U'

functions-task = 'I'


it tells me that the same role already exists and I cannot create it. So my customer should have 2 ship-to parties, one is the customer number itself and the other is a dummy ship-to party, which is always the same for all customers.


When I use functios-task = 'M' then it overwrites the existing ship-to party with the dummy number.

Any ideas?


Thanks,

Tim

1 ACCEPTED SOLUTION
Read only

Ryan-Crosby
Active Contributor
0 Likes
2,182

Hi Tim,

I think if you are adding a second ship-to partner you have to make sure you make sure you put a value of ship-to count + 1 for field:

MASTER-SALES_DATA-SALES-FUNCTIONS-FUNCTIONS-DATA_KEY-PARZA

e.g. if you already have a default counter value of '0' for an existing ship-to and call the API without giving a new value of '1' for the dummy partner function then it will update the existing value.

Regards,

Ryan Crosby

3 REPLIES 3
Read only

Former Member
0 Likes
2,182

Hi Tim,

Try checking to see if your system is configured to have the SH partner function set up as unique. This could be causing the issue you are seeing with not being able to add a second ship to party.

Go to SPRO -> Sales and Dist -> Basic Functions -> Partnert Det -> Set Up Partner Det -> Set up Partner Det for Customer Master.

Then click on the Partner Functions side folder

Below is a screen shot of what your looking for

Hope this helps,

Geoffery

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,182

Does the partner profiles allow for two ship-to parners (check with transaction XD02 or analyze Customizing) -> if not you cannot.

Regards,

Raymond

Read only

Ryan-Crosby
Active Contributor
0 Likes
2,183

Hi Tim,

I think if you are adding a second ship-to partner you have to make sure you make sure you put a value of ship-to count + 1 for field:

MASTER-SALES_DATA-SALES-FUNCTIONS-FUNCTIONS-DATA_KEY-PARZA

e.g. if you already have a default counter value of '0' for an existing ship-to and call the API without giving a new value of '1' for the dummy partner function then it will update the existing value.

Regards,

Ryan Crosby