Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Callback is not working on remote but working locally in SAP CRM

As one of my requirements in the project, I need to upload a file to SAP-CRM from a server. To do the same, I am calling ‘create_with_file’ method. This method is present in the ‘cl_crm_documents’ class.

To call the method, I have a created an RFC. But here comes the issue, If I am executing the created RFC from function builder, it is working absolutely fine. But If I execute the same RFC from any other external RFC system (System can be anything), it does not work and throws an exception stating ‘RFC callback server not available ’.

I tried to debug the problem, I observed that the program executes to some extent. So it means I am able to establish a connection and it is not a connection related issue.

Can someone help me why this fails when I call externally only?


1 Answer
Samual Sam

The issue lies in the class you are using for making a method call. This class is basically making RFC callback with the help of SAP GUI. SO, when you are using the function builder, it works well because it has an SAP GUI connection present.

But when you are using an external system, the GUI is missing and it doesn’t works.

 What you can try is to use some other method which does not have an RFC callback and thus will not have any problem. Try to use ‘create_with_table’ in place of your used method.

Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.