cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Order IDoc_XML from a URL

Former Member
0 Kudos

Hi all,

We are using PI 7.1.

HYBRIS is sending order Idoc (SALESORDER_CREATEFROMDAT202) to PI. As per the SAP standard, HYBRIS can directly send order IDoc to ECC. But we decided to have an extra layer on top of ECC for better monitoring. So, decided order idocs via PI to ECC.

HYBRIS is sending order idoc to a URL http://host of PI system:PI port/sap/bc/idoc_xml?sap-client=XXX

The above link is something we can see in PI system for t-code SICF.

Is it possible to get the idoc xml from a URL ? if yes How?

any configurations needed to be done on PI system to get idoc xml from HYBRIS?

Note:

We have not provided any WSDL/PI endpoint to HYBRIS to call/post idocs. As this is going to be out of box solution and as per Standard SAP they are publshing the Idoc data to above mentioned URL..

Thanks,

Ramakrishna

Accepted Solutions (1)

Accepted Solutions (1)

engswee
Active Contributor
0 Kudos

Hi Ramakrishna

The /sap/bc/idoc_xml path in PI will not go through PI's adapter framework, instead if it is posted to that path, it is treated as posting to PI as a backend application instead of a middleware.

If you want to add PI as an extra layer of for monitoring, Hybris has to post to PI's plain HTTP adapter, and you will need to configure a scenario to route it to ECC. To post to the plain HTTP adapter, you will need to following the URL convention as described in the link below.

Defining Query for Plain HTTP Inbound Channel - Configuring the Plain HTTP Adapter - SAP Library

If the posting URL cannot be changed on Hybris side, then you would have to post directly to ECC instead of going through PI.

Regards

Eng Swee

Former Member
0 Kudos

Hi Eng Swee,

Thank you very much for your time. I got the below link.

If you look at the second diagram(HYBRIS to ECC), sender adapter is HTTP and receiver adapter id Idoc.

Hybris has to post to Pis plain HTTP adapter (Are you talking about PI endpoint?)   .... can you give more details on this?

Thanks,

Ramakrishna

engswee
Active Contributor
0 Kudos

Hi Ramakrishna

Yes, you can use a HTTP > PI > IDoc scenario but you cannot use the /sap/bc/idoc_xml as the PI endpoint because that will not go through PI's adapter.

As I mentioned above, you can create the scenario in PI and provide a different URL for Hybris to post to (if it is possible on their side). An example URL path would look like below. The configuration is just the same as any normal PI configuration if you have already any experience in that.


http://sap-ag.com:8088/sap/xi/adapter_plain?service=sender&namespace=urn%3Asap-ag%2Ecom&interface=%2...

Regards

Eng Swee

former_member186851
Active Contributor
0 Kudos

Hello Ramakrishna,

yes,it has to post to HTTP adapter endpoint.

@Engg is it suggestable to use IDOC_AAE adapter here?

engswee
Active Contributor
0 Kudos

PI 7.1 does not have an IDocAAE adapter.

Former Member
0 Kudos

Hi Eng Swee,

i got your point now. The issue here is HYBRIS will not call our end-point like (http://sap-ag.com:8088/sap/xi/adapter_plain?service=sender&namespace=urn%3Asap-ag%2Ecom&interface=%2...) , because it is their out of box solution and they need to do custom development and will not agree for it at the moment .

looks like i can see only one option here.. They can directly send Order Idocs to ECC with out PI.

Thanks,

Ramakrishna

engswee
Active Contributor
0 Kudos

Yup, if Hybris can't change the endpoint, then it's not possible to route it through PI.

Hope that clarifies your issue here. If you no longer have any queries on this matter, please do close this thread.

Former Member
0 Kudos

Hi Eng Swee

one last question on this before i close this discussion. Below tip from Michal will not help on my requirement?

Thanks,

Ramakrishna

engswee
Active Contributor
0 Kudos

Nope. That is not relevant at all to your requirement.

Answers (1)

Answers (1)

former_member186851
Active Contributor
0 Kudos

Hello Rama,

Check with them if they are Sending the Idoc through IDOC_AAE adapter of SAP PI.

You can check the below link for monitoring and getting XML

Former Member
0 Kudos

Hi Raghu,

They are posting idoc_xml to URL http://host of PI system:PI port/sap/bc/idoc_xml?sap-client=XXX

Let me know how PI can get the Idoc data from that URL

former_member186851
Active Contributor
0 Kudos

Hello Ramakrishna,

Got it, IDOC is transferred  via HTTP .I guess you don't have any monitoring facility available at PI.

You should get it in ECC system or you can have small configuration as per below link just ,Pop up will appear once the IDOC is posted.

Former Member
0 Kudos

Hi Raghu,

The link you had provided is without PI. My requirement is with PI. I need to get Idoc_Xml from a URL http://<host of PI system>:<PI port>/sap/bc/idoc_xml?sap-client=XXX


The above link we can see in SICF transaction in PI system