cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronous RFC functions from XI

Former Member
0 Kudos

Please confirm my observations.

I wanted to call a synchronously RFC Function i.e. Importing some data and Exporting some reply.

The XI message monitor shows that the RFC adapter handles this call asynchronously i.e. QOS of EO and not BE as I would have expected.

Is this behaviour I observe correct and does this then imply that there is no way of calling RFC enabled Functions on SAP expecting anything back

Thanks

Andre

Accepted Solutions (0)

Answers (3)

Answers (3)

udo_martens
Active Contributor
0 Kudos

Hi Andre,

if you send from R/3 just find the right ABAP to determine synchronous/asynchronous:

CALL FUNCTION myFunction

DESTINATION myDest

IN BACKGROUND TASK "only for asychnronous messages

...

COMMIT WORK. "only for asychnronous messages

If R/3 is the receiver, then the sending system determines the quality of service. For example a http message should have an additional parameter QOS=BE/EO/EOIO.

Regards,

Udo

Former Member
0 Kudos

Hi,

You can do it in both the ways i.e. Synchronous as well as Asynchronous. Check your Message Interface. Here you have to check the attribute as Synchronous.

Thanks and Regards

Vishal Kumar

Former Member
0 Kudos

Hi Vishal,

The RFC Adapter has no place to specify the QOS. The interfaces are marked as synchronous.

Could you maybe supply an example of such an scenario ?

Thanks

Andre

former_member187339
Active Contributor
0 Kudos

Hi,

Have a look on this weblog /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit

Regards

Suraj

Former Member
0 Kudos

Hi Andre,

I have told nothing about RFC Adapter. I think your scenario is file to RFC. I hope u r calling a RFC from a file i.e XML input from file is given to RFC. That is obviously Asynch and QOS will be EO as specified in ur communication channel. check the correct one.

Thanks and Regards

Vishal Kumar

Former Member
0 Kudos

Hi Andre,

What is your exact scenario?

From where you are passing the input to the RFC.From a XML file.May be you are checking that QOS.

Regards,

Sudharshan

Former Member
0 Kudos

Hi Sudharshan,

I'm doing SOAP <-> XI <-> RFC or attempting in any case. Just wiped my whole config. Going to start over and do it with the BPE.

Thanks for the help

Andre

Former Member
0 Kudos

Hi Andre,

The RFC calls are for synchronous data processing by default.

You can send and receive data from a RFC enabled FM.

you can make it asynchronous using BPM though

Regards

Vijaya

Former Member
0 Kudos

Hi Vijaya,

Here is the message seq from the monitor for a call to a synchronous Function module :

Status Successful

Repeatable No

Cancelable No

Error Category

Error Code

Start 29.03.2006 11:51:47

End 29.03.2006 11:51:47

Sender Party

Sender Service DXI_Client_400

Receiver Party

Receiver Service DR3_Client_100

Interface

XML_Interface_With_RFC

<b>Quality of Service Exactly Once</b>

Message a2f1d6e0-bf09-11da-8b8a-000d6098578c

Reference

Conversation ID

Direction INBOUND

Message Type Recv

Profile XI

Connection AFW

Transport HTTP

End Point http://ntcdxi01:50100/MessagingSystem/receive/AFW/XI

Authorization

Sequential Number 0

Number of Retries 3

Failed 0

Retries 300000

Valid to

Persist Until 28.04.2006 11:51:47

Schedule Time 29.03.2006 11:51:47

The Audit log also shows that the call was handled asynchronously -

2006-03-29 11:51:47 Success SOAP: request message entering the adapter

2006-03-29 11:51:47 Success SOAP: completed the processing

2006-03-29 11:51:47 Success The message was successfully received by the messaging system. Profile: XI URL: http://ntcdxi01:50100/MessagingSystem/receive/AFW/XI

2006-03-29 11:51:47 Success Using connection AFW. Trying to put the message into the receive queue.

2006-03-29 11:51:47 Success Message successfully put into the queue.

2006-03-29 11:51:47 Success The message was successfully retrieved from the receive queue.

2006-03-29 11:51:47 Success The message status set to DLNG.

2006-03-29 11:51:47 Success Delivering to channel: RFC_MethodCaller

<b>2006-03-29 11:51:47 Success RFC adapter received an asynchronous message. Attempting to send tRFC for Z_THE_METHOD with TID XIel7MuBy94TgBYW0DO9XNZ0</b>

2006-03-29 11:51:47 Success The message status set to DLVD.

Any iead what I'm missing ?

Former Member
0 Kudos

H Andre,

Please can you check if the message interface is syncrhonous and also that you have given the message type correctly in you MI.

You will have two Synchronous MI with reguest and Response Message type. Also, two message mapping, one mapped request to request and other response to response.

regards

Vijaya