Skip to Content
author's profile photo Former Member
Former Member

getting Internal error: Refe. customer does not exist in master record

Hi ,

I am using SOAP< >PI7.1< >RFC (BAPI_CUSTOMER_CREATEFROMDATA1)

I am always getting back getting Internal error: Refe. customer does not exist in master record in the bAPI response.I have done the following to checkl the mappings:

(1) Used mapping test editor to see if the data is getting populated ok from SOAP request to RFC request

(2) Using the same data to load customer into Backend using ABAP testing tool(Which works well)

I have also checked the RFC adaptor connection properties which matches with the correct SAP backend

So what may be getting wrong?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Aug 11, 2009 at 04:16 AM

    You can switch on logging for synchronous calls in PI ( I am assuming the QOS is BE in your case) and see if the request payload to the RFC adapter is getting framed correctly.

    KK

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2009 at 06:04 AM

    Hi KK,

    I checked the logs and the fields are getting mapped correctly.I am populating the below elements:

    PI_COPYREFERENCE

    PI_CREDIT_CONTROL_FLAG

    PI_PERSONALDATA

    Not sure what I am doing erong here.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2009 at 11:30 PM

    Hi All,

    I am still getting the same error(Its able to get data back from RFC,but unable to find the correct data).What userid and password should I provide in the receiver RFC adaptor.I am using my GUI userid and password.The training document says to use "Communication User Id and password".I dont get ant authorization errors though.Was wondering if the userid has anything to do with executing the BAPI.

    Regards,

    Premjit

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 17, 2009 at 06:13 AM

    Hi Folks,

    I am still noty able to get to create a customer.Following fields is being sent:

    <?xml version="1.0" encoding="UTF-8" ?>

    <ns0:BAPI_CUSTOMER_CREATEFROMDATA1 xmlns:ns0="urn:sap-com:document:sap:rfc:functions">

    <PI_COPYREFERENCE>

    <SALESORG></SALESORG>

    <DISTR_CHAN></DISTR_CHAN>

    <DIVISION></DIVISION>

    <REF_CUSTMR></REF_CUSTMR>

    </PI_COPYREFERENCE>

    <PI_PERSONALDATA>

    <TITLE_P></TITLE_P>

    <FIRSTNAME></FIRSTNAME>

    <LASTNAME></LASTNAME>

    <MIDDLENAME></MIDDLENAME>

    <SECONDNAME></SECONDNAME>

    <CITY></CITY>

    <DISTRICT></DISTRICT>

    <POSTL_COD1></POSTL_COD1>

    <POSTL_COD2></POSTL_COD2>

    <PO_BOX></PO_BOX>

    <PO_BOX_CIT></PO_BOX_CIT>

    <STREET></STREET>

    <HOUSE_NO></HOUSE_NO>

    <BUILDING></BUILDING>

    <FLOOR></FLOOR>

    <ROOM_NO></ROOM_NO>

    <COUNTRY></COUNTRY>

    <COUNTRYISO></COUNTRYISO>

    <REGION></REGION>

    <TEL1_NUMBR></TEL1_NUMBR>

    <TEL1_EXT></TEL1_EXT>

    <FAX_NUMBER></FAX_NUMBER>

    <FAX_EXTENS></FAX_EXTENS>

    <E_MAIL></E_MAIL>

    <LANGU_P></LANGU_P>

    <CURRENCY></CURRENCY>

    <ONLY_CHANGE_COMADDRESS></ONLY_CHANGE_COMADDRESS>

    </PI_PERSONALDATA>

    </ns0:BAPI_CUSTOMER_CREATEFROMDATA1>

    I have done the following:

    (1) Previously I was using a DIALOG user in the usid/pwd section of the receiver RFC adaptor,now I have created a communication user.

    (2) The data present in the above instance is being successfully inserted when testing thru the test tool in SAP 6 backend

    Do I have to do anything additonal?

    Regards,

    Premjit

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 17, 2009 at 08:29 AM

    Hi Guys,

    That was my bad.Teh ref data should be passed as 00000000xx.I was passing xx:)).

    Thanks,

    Premjit

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.