cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Guys,

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

Thanks,

Premjit

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

make sure u don't have special or extra char (like space, case sensitive) in the data to BAPI parameters

kkram
Contributor
0 Kudos

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