Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Exception:"RFC callback server not available"while execute upload_with_file

Former Member
0 Likes
417

Hi,

I'm trying to upload a file from a serverdirectory to the SAP-CRM System (As an attachment of an Opportunity).

Therefore I am using the method "create_with_file" of the "cl_crm_documents class".

To call this method I am using a RFC-Function created by myself.

If I test my RFC-Function within the Function Builder, everything works fine.

If I ecexute the RFC from a external System (in my case MS-Outlook) an error occurs: "Exception: RFC callback server not available"

I started the debugger and the program runs about half way through (So the connection works):

The "create_with_file" calls a couple of functions until the "RFC_START_PROGRAM"-Function is called. The error ocurres exactly at this line.

Does anybody know why the error occurs only if I call the Function from remote and what I could do to solve this problem.

Thaks in advance

Andreas

Hi,

I'm trying to upload a file from a serverdirectory to the SAP-CRM System (As an attachment of an Opportunity).

Therefore I am using the method "create_with_file" of the "cl_crm_documents class".

To call this method I am using a RFC-Function created by myself.

If I test my RFC-Function within the Function Builder, everything works fine.

If I ecexute the RFC from a external System (in my case MS-Outlook) an error occurs: "Exception: RFC callback server not available"

I started the debugger and the program runs about half way through (So the connection works):

The "create_with_file" calls a couple of functions until the "RFC_START_PROGRAM"-Function is called. The error ocurres exactly at this line.

Does anybody know why the error occurs only if I call the Function from remote and what I could do to solve this problem.

Thaks in advance

Andreas

1 REPLY 1
Read only

Former Member
0 Likes
366

Solved by myself.

I think it is not possible to call "create_with_file" from remote. I use "create_with_table" now.