‎2016 Jan 08 12:56 PM
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
‎2016 Jan 08 2:39 PM
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
‎2016 Jan 08 1:52 PM
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
‎2016 Jan 08 2:19 PM
‎2016 Jan 08 2:39 PM
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