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: 

changing a debitors partnerrole with SD_CUSTOMER_MAINTAIN_ALL

Former Member
0 Kudos

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?

thx,

Ming

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

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

Alain

3 REPLIES 3

Former Member
0 Kudos

Ming

Provide Message ID and Message Number..... So that I can look into it further..

Thanks

Amol Lohade

0 Kudos

Hi,

message is

message e804 with i_kna1-kunnr raising kunnr_not_unique.

In form routine iknvk_check. an error is raised.

thx,

Ming

Former Member
0 Kudos

Hi,

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

Alain