Skip to Content
avatar image
Former Member

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?

thx,

Ming

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 01, 2008 at 04:16 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 01, 2008 at 09:06 AM

    Ming

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

    Thanks

    Amol Lohade

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      message is

      message e804 with i_kna1-kunnr raising kunnr_not_unique.

      In form routine iknvk_check. an error is raised.

      thx,

      Ming