‎2011 Mar 09 6:28 AM
Hi All,
I have a requirement in which I need to create the customer master through IDOC. I am using DEBMAS basic type for that. In its functionality, I need to assign different partner functions to it.
When I create customer without giving any partner details, 4 entries get created by default with partner functions as BP, SP, PY, SH and KUNN2 value as INTERNAL or the same customer number which is getting created. But I want that the customer number provided by me should be assigned as partner function. Is there any way to change the default entry which is getting created so that I can replace the INTERNAL customer number with the one provided by me.
I identified the segment as E1KNVPM in it at hierarchy level 3. I passed the partner function in the PARVW field of it and provided the customer number which I want to assign as partner function in the KUNN2 field. But I am getting error Customer INTERNAL already exists for function <Partner function>.
Am I missing something. Any msgfn or any other input.
Please help me on this.
Thanks
Natasha
‎2011 Mar 09 7:22 AM
I never tried to pass the partner functions in my IDOC. But you can try with the implementation of badi CUSTOMER_ADD_DATA_BI, method MODIFY_BI_STRUCT_FROM_STD_SEG (called from Line number 684 of include LVV02F3N). Check the Whether you can change the value of Partner function value in the method parameter I_SEGMENT_DATA where the value of I_SEGMENT_NAME= 'E1KNVPM' (this BADI method is called for all the segments available in IDOC).
‎2013 Oct 09 3:21 PM
Hi,
Im facing similar problem
Im trying to create the customer master through IDOC.
I am using DEBMAS06 Idoc.
I need to assign two partner functions to it.
When I create a customer with giving two partner details,
6 entries get created by default with partner functions as BP, RP, EM, SH and KUNN2 value as INTERNAL,
two others entries (ZC,ZV) are created because this partner roles i defined to be created but KUNN2 hasnt assined value and request to fill it.
I identified the segment as E1KNVPM in it at hierarchy level 3.
I passed the partner function in the PARVW field of it and provided the customer number which I want to assign as partner function in the KUNN2 field.
But I am getting error when "Customer INTERNAL already exists for function <Partner function>".
Am I missing something. Any msgfn or any other input.
How can avoid this error?
Please help me on this.
Thanks
Armand