cancel
Showing results for 
Search instead for 
Did you mean: 

synchronous HTTP Response

Former Member
0 Kudos

Hello,

In our process we receive a cXML document via http which creates a SO in our R/3 system. According to the cXML specification we need to send a response xml back to the trade partner. This response needs to specify if the xml was well received or not and must be sent back in the http response of the original http request.

How can we put this into XI? When I compare to the RNIF/CIDX adapter, there this response is sent out via the adapter. Can we enhance the http adapter in some way for this behaviour.

Other possibility is to use BPM, but this looks heavy for this simple process.

Greetings,

Bart

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Bart,

I assume you're using an IDoc to post your SO?

The problem there is not so much your http-response but the fact that the IDoc adapter only works in asynchronous mode and you want to get back a synchronous response. The only way to bridge this gap is using a S/A-bridge in BPM.

But here you have to take care of guaranteed message processing and time out problems.

Best regards

Joachim

Former Member
0 Kudos

Hi Bart,

As I understand this, if you use reciever RFC then you can think of a Synchronous call and the sucessfull creation of SO can be known by the return of the BAPI, which can be passed across to the http adapter.

This shows that your cXML was not only valid but also contains proper data to create SO.

In case of Idoc, & if you want to send an immediate response, then you should go for BPM.

In the BPM, there should be an Interface (or some mechanism) to validate your cXML & send back a response to the sender system.

If you dont want to use a BPM, allow the Idoc to be processed. after a while "trigger" a seperate flow which goes from SAP->XI->(original Sender) with the reponse message (about validity, creation of SO acknowledgement etc)

Also, the http call ends, if ANY (only ONE) response is sent back. check this link

check this lin

Hope this Helps

Regards

Vishnu

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Bart,

For handling idoc acknowledgements have a lokk at this pdf:

How To Handle Acknowledgements For IDoc

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/how to handle acknowledgments for idoc.pdf

Regards

Priyanka