cancel
Showing results for 
Search instead for 
Did you mean: 

RFC Sender Asynchronous --> File Problem

Former Member
0 Kudos

Hi all,

I want to sent an asynchronous RFC to a file but when I execute my scenario in R3 it always returns a dump. In the XI monitoring I get the response error from the file: "Unable to read the payload from the message object".

I think its strange because I even don't want the file adapter to send a response but he does. I suspect that the problem is on R3 side because it sends a synchronous RFC call, but I don't have any idea how to send an Asynchronous RFC call to XI (via the RFC adapter).

Steps I made:

- Created on R3 a TCP/IP entry as registered server program

- Created in XI an RFC adapter with registered server program name

- rest of the configuration...

I think my main problem is that R3 expects an answer back because it throws a synchronous call to XI, but I don't have any clue how to set up an asynchronouss RFC call in R3 to XI (so my ABAP program doesn't dump).

TIA

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Peter,

first, if you didn't already have done that, load up a RFC function module to XI Repository, where you have only the XSD, no abap source code.

In a ABAP program code:


CALL FUNCTION 'MyFunction'
DESTIONATION 'mySM59Destination'
IN BACKGROUND TASK
...  "the normal call
.
COMMIT WORK.   

Regards,

Udo

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

Hi Peter,

Look here for the correct <i>call function</i> statement:

http://help.sap.com/saphelp_nw04/helpdata/en/f9/3f69fd11a80b4e93a5c9230bafc767/frameset.htm

You cannot test with SE37 testing environment.

Regards

Stefan

Former Member
0 Kudos

Hi Stefan,

I allready tried this solution, but it seams that this is not possible because with this function ("CALL FUNCTION func STARTING NEW TASK task") you cannot use TCPIP, only connections of type 3 or I. I tried usings tRFC but this also don't seems to work (nothing arrives on XI)...

Former Member
0 Kudos

Hi guys,

the COMMIT WORK statement solved the issue, thanks guys!

mark_babsch
Explorer
0 Kudos

Hi Peter,

I face the same Problem that the call cannot be used with TCP / IP RFC connections.

In my program the COMMIT WORK doesn`t solve the Problem ?!

Thanks for any idea