cancel
Showing results for 
Search instead for 
Did you mean: 

Asynchronous RFC calls from R/3 to XI - not closing the connection

Former Member
0 Kudos

Dear Experts!

Currently we encountered the following problem:

when executing <b>tRFC calls</b> from R/3 (6.0) to XI (PI 7.0), the <b>connection stays open</b> all the time (in SM58 it says "Transaction executing") and it causes problems. However, the data is transfered correctly (but only once - later on we need to desactivate / activate RFC adapter in XIin order to break the connection).

On XI level, quality of service is EO, asynchronous mode.

The XI config was checked by SAP guy, on R/3 also everything seems to be ok.

Do you have any idea what can be a reason for such a behaviour?

Thx a lot in advance for any help, ideas.

Piotrek

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Has Commit Work been made in the code / report triggering the call to XI?

Look at this blog as well,.

/people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous

Regards

Bhavesh

Former Member
0 Kudos

Hi Bhavesh

Yes, commit is at the end of the FM

....

LOOP AT contl_rec_header_rtc

WHERE rcode <> 00.

MESSAGE ID contl_rec_header_rtc-msgid TYPE 'A' NUMBER

contl_rec_header_rtc-msgno

WITH contl_rec_header_rtc-msgv1 contl_rec_header_rtc-msgv2

contl_rec_header_rtc-msgv3 contl_rec_header_rtc-msgv4.

ENDLOOP.

COMMIT WORK.

ENDFUNCTION.

Former Member
0 Kudos

HI,

also check the connection to R3.

Write a function module to handle commit

Also see the below related links

http://help.sap.com/saphelp_nw04/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm

regards

Chilla.

Former Member
0 Kudos

Piotr,

you can you delete all the your entries in Sm58 and try again sending the message. before sending again make sure your SM59 TCP/IP rfc connection is working fine.

Former Member
0 Kudos

Hi!

Thx for the suggestion.

Once cleaned, only the first call "works"(I mean it sends data)but still we get "Transaction executing"message in SM58...

Connection works fine.

Any more ideas?

Piotrek

Former Member
0 Kudos

can you paste your code of how ur calling the FM . what is the voulme of data your sending through the RFC? are queues are reigstered.

Answers (1)

Answers (1)

Former Member
0 Kudos

Piotr,

are you calling the rfc asynchoronusly in background mode.

Message was edited by:

Sreeram Reddy

Former Member
0 Kudos

Hi

Yes, the call is triggered in background by R/3 process in PP-PI module.

The function is CONTROL_RECIPE_DOWNLOAD.

Thx

Piotrek

Former Member
0 Kudos

use "commit work." statement at end of the RFC call also check st22 for any logs