cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CPI RFCLibraryException while calling RFC through SOAP

SATHEESHKUMAR_1
Explorer
0 Kudos

Hi All,

we are calling RFC Bapi through SOAP wsdl while calling this we are facing below error.

com.sap.it.rt.adapter.rfc.exceptions.RFCLibraryException: <?xml version="1.0" encoding="UTF-8" standalone="no"?><rfc:_-FUNCTION_-BAPI_M_V_FUN_AP_CR.Exception xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><Name>Destination OnPremise does not exist</Name><Text>Destination OnPremise does not exist</Text><Message>

<ID/>

<Number/>

</Message><Attributes>

</Attributes></rfc:_-FUNCTION_-BAPI_M_V_FUN_A_CR.Exception>

You please let me know what is the cause of this error and solution .

Thanks,

Satheesh Kumar.

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor
0 Kudos

Can you check whether your cloud connector is up and running. Also you are using proper virtual host name and port in destination.

Regards,

Sriprasad Shivaram Bhat

SATHEESHKUMAR_1
Explorer
0 Kudos

Hi Sriprasad,

Thank you for your all input's ,Finally we resolve the above issue.

Solution: Actually the repository user didn't having proper authorizations(like display ,change all this things) to access the Function Module (Bapi)in S4HANA system.

Thanks & Regards,

Satheesh Kumar.

sulbhkalra
Explorer
0 Kudos

Hi Satheesh,

As per your response indicated, problem was related to access permissions.

Currently, we haven't associated the Repository User and password within BTP connectivity. The main user-ID in use is a background user with SAP_ALL privileges.

we are utilizing a Load Balancer and there are some variations in the property values.

Could you kindly guide me regarding the specific authorization object that resolved the issue for you?

Best regards,

Sulbh Kalra

Answers (2)

Answers (2)

Sriprasadsbhat
Active Contributor

Hello Satheesh,

For RFC adapter you need to create destination in BTP cockpit and which should be OnPremise type.Once you have the destination in BTP cockpit same should be provided in adapter. Refer SAP Help documentation for more details.

Regards,

Sriprasad Shivaram Bhat

SATHEESHKUMAR_1
Explorer
0 Kudos

Hi Sriprasad,

Thank you for your quick response,yes exactly what you say that's right we have already created the destination at BTP cockpit and same thing maintained in RFC destination ,Still now also we are getting same issue please find the below screenshots . and This is /FUNCTION/BAPI_M_V_FUN_AP_CR my function module but my basis team maintained it as /BAPI_M_V_FUN_AP_CR in cloud connector i think this is the issue please let me know if i'm right .

Thanks,

Satheesh.

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Sateesh,

You should remove / and maintain only name of the BAPI then it should work. Even you can use prefix and set it as BAPI* should work for you.

Regards,

Sriprasad Shivaram Bhat

SATHEESHKUMAR_1
Explorer
0 Kudos

Hi Sriprasad,

we removed what you suggested in the cloud connector . but still now also we are getting the same issue. I don't know where the issue is, cloud you please help me out? ( this is my first project in Cloud Integration ) .

Regards.

Satheesh Kumar