changing a debitors partnerrole with SD_CUSTOMER_MAINTAIN_ALL
i am trying to change a debitors partnerrole. e.g.
Debitor 1 has partnerroles
Now i want to change this to
I used the function module SD_CUSTOMER_MAINTAIN_ALL and get the error code KUNNR IS NOT UNIQUE. What's wrong? Why it is not possible to do this?
maybe the trouble is due to the fact you should have deleted WE:1 in YKNVP and created WE:2 in XKNVP.
Nevertheless, think about never using such function module.
There is no reliable BAPI or FM to maintain standard customer master data.
The FM you try to use has been developped for a very particular case. Using it for standard purposes will surely have side effects in the future.
Instead you may look at class CMD_EI_API