Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

changing a debitors partnerrole with SD_CUSTOMER_MAINTAIN_ALL

Hey guys,

i am trying to change a debitors partnerrole. e.g.

Debitor 1 has partnerroles

AG: 1

RG: 1

WE: 1

Now i want to change this to

AG: 1

RG: 1

WE: 2

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?



Former Member
Former Member replied


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


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question