Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

xml to Idoc scenario

Hi Gurus,

I got an interface

3rd party application<- PI<- sap

3rd party app->PI->SAP

1)PI has to perform HTTP get for every half an hour to send the request to 3rd party application and get the response in xml format into XI

2)PI has to transform the xml document to Idoc and post the idocs in SAP system.

3)If the errors occured while posting raise alerts...

Please tell me if Im wrong.

to achieve 1st objective

I m using client proxies to send the message request from sap to PI which will send the request to the 3rd party application using HTTP adapter.Outbound Interface and Inbound interface is synchronous in this case

The response is coming from 3rd party application in xml format and sent to SAP where the xml is converted to ABAP objects

to achieve 2nd objective

I developed interface to map xml document to idoc and post in sap system.

im using sender soap adapter with asynchrous interface and idoc receiver adapter.

im defining the webservice in PI and calling the webservice from SAP system in the ABAP report.

Can you please tell if there is any alternate solution for linking this 1 and 2 interface as a whole.

Former Member
replied

Hello,

1)PI has to perform HTTP get for every half an hour to send the request to 3rd party application and get the response in xml format into XI

This can be achieved using the Sender SOAP Axis Adapter see SAP Note 1039369 - FAQ Axis Adapter section 36.

Can I periodically call some HTTP service and use its response to call the sender channel?

Yes. This can be achieved using the com.sap.aii.adapter.axis.ra.transport.http.HTTPGetter Receiver task. This task calls the specified URL using the GET request and its response is sent to the sender channel. The scheduling parameters can be set in the channel to specify the periodic triggering of the request. See a sample configuration of periodically calling a REST based GET service. For the availability of this feature, refer to Note 1448849.

2)PI has to transform the xml document to Idoc and post the idocs in SAP system.

Yup, you need message mapping for this one and Idoc receiver

3)If the errors occured while posting raise alerts...

Use XI alerting framework.

Hope this helps,

Mark

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question