cancel
Showing results for 
Search instead for 
Did you mean: 

PI settings for order idoc replication from HYBRIS

Former Member
0 Kudos

Hi all,

my requirement is to get the Order idoc from HYBRIS system and pass it to ECC. i have used sender adapter as HTTP and SOAP. But both the cases i have not received any order idoc. are there any special configuration needs to be done to get order Idoc from HYBRIS?

i have also verified the below link:

Thanks,

Ramakrishna

Accepted Solutions (1)

Accepted Solutions (1)

former_member186851
Active Contributor
0 Kudos


Hello Ramakrishna,

HTTP Should work.Hybris supports HTTP/RFC protocols.

Are you getting any specific error?

check the below wiki

https://wiki.hybris.com/display/release5/Setting+up+System+Connections+for+hybris-SAP+Solution+Integ...

Former Member
0 Kudos

Hi Raghu,

In rapid deployment solutions(HY3) we found only the configuration settings to be done on ECC and Datahub .Can you please let us know how to replicate the orders from Hybris to ECC using SAP PI.

We are using SAP PI(version 7.1 , Service pack 0009) .The Hybris version we are using is 5.7.0.2. we have successfully replicated master data, order, documents, conditions, etc. from SAP ECC to Hybris with SAP PI.


Thanks,

Ramakrishna

former_member186851
Active Contributor
0 Kudos

Hello Ram,

The Same HTTP settings like other scenarios in PI will do.

But for Hybris point of view am not sure how thy configure in Data hub.

Are you gettin any error while doing a HTTP post?

And did you check that wiki?

Former Member
0 Kudos

Hi Raghu,

I have verified that link. HYBRIS is getting the below error when push order idoc xml.

HYBRIS team is saying that they are unable to send order idoc xml to the given end-point. Not sure what it is causing the issue?

Thanks,

Ramakrishna

bhavesh_kantilal
Active Contributor
0 Kudos

Try to use SOAP UI to push the IDoc and see if all is OK in PI. You may use the same data as you see in Hybris Data Hub.

If that works fine, then check what user / password is being used by Hybris and see if anything on authorization etc.

Regards

Bhavesh

former_member186851
Active Contributor
0 Kudos

Hello Ramakrishna,

If your using HTTP Adapter the endpoint being used is wrong, That is for soap adapter.

Check the below link and form URL accordingly

Configuring the Java HTTP Adapter on the Sender Channel - Advanced Adapter Engine - SAP Library

Former Member
0 Kudos

Hi Raghu,

I am using PI 7.1 (do not have http 1.1 protocol, have only http 1.0). earlier i was using SOAP as my sender adapter and i had shared that endpoint to HYBRIS. Later i had changed my sender adapter to HTTP. But i forgot to take the new endpoint.

Now i took the new endpoint from sender agreement. below is the new endpoint

http://<PI Host Name>:50000/XISOAPAdapter/MessageServlet?channel=:BC_HYBRIS:CC_HYBRIS_ECC_IDoc_Sender


but my doubt is endpoint still contains SOAPadapter. I need to change it as described below?


URL: http:// <hostname:port> / <path> ? <query-string>

Where,

  • path = /HttpAdapter/HttpMessageServlet
  • query-string = ?interfaceNamespace= <interfaceNamespace> &interface= <interface>>& senderService= <senderService> &senderParty= <senderParty> &receiverParty=<receiverParty> &receiverService= <receiverService> &qos= <qos> &queueid=<queueid> &msgguid= <msgguid>
former_member186851
Active Contributor
0 Kudos

Yes Ramakrishna,

The URL is for Post method of HTTP adapter.

First try once with SOAP UI whether your able to make HTTP post to PI with the URL.

Former Member
0 Kudos

Hi Bhavesh,

Everything looks OK in PI when i try with SOAP UI and there is no authorization issue with userid and password.

Thanks,

Ramakrishna Nasaka

bhavesh_kantilal
Active Contributor
0 Kudos

Ramakrishna,

  • Hybris uses a HTTP Post to PI.
  • The URL you have provided to Hybris is that of a SOAP Adapter.
  • You have 2 options
    • Use the HTTP Adapter in PI and get the URL changes in Hybris to HTTP URL of your Interface
    • Continue to use the Same SOAP Adapter with same SOAP URL but in PI -> in your Sender SOAP Adapter select option -> Do Not Use SOAP Envelope.

I would recommend using the HTTP Adapter with the correct URL in Hybris but the other approach will also work as the SOAP Sender Adapter with Do Not Use SOAP envelope acts as a HTTP Adapter

Regards

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

Thank you very much for your inputs.

Now i am able to get the requests from HYBRIS.

I have not created any sender side communication channels and sender agreement as suggested in below links

http://scn.sap.com/thread/3888995 (refer the answers of Iñaki Vila)

Below is the url i had provided HYBRIS.

http://<PI HOST>:50000/sap/xi/adapter_plain?namespace=urn.Hybris.com:xi:HYBRIS_Order_IDoc_Create&interface=SI_HYBRIS_ECC_Order_IDoc_OB&service=BC_HYBRIS

and i am getting the below error when test with SOAP UI.

<SAP:Category>XIAdapter</SAP:Category>

  <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_BE_NOT_SUPP</SAP:Code>

  <SAP:AdditionalText />

  <SAP:Stack>Only asynchronous processing supported for IDoc adapter outbound processg</SAP:Stack>

  <SAP:Retry>M</SAP:Retry>

so, later i added quality of service as EO to the url

http://<PI HOST>:50000/sap/xi/adapter_plain?namespace=urn.Hybris.com:xi:HYBRIS_Order_IDoc_Create&interface=SI_HYBRIS_ECC_Order_IDoc_OB&service=BC_HYBRIS&qos=EO

Now iam getting below error

<SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_INV_SND_SERV</SAP:Code>

  <SAP:P1>BC_HYBRIS</SAP:P1>

  <SAP:Stack>Unable to convert the sender service BC_HYBRIS to an ALE logical system</SAP:Stack>

Atually in receiver agreement i am passing my sender business system to sender communication component and

Receiver business system to  receiver communication component.

not sure what is causing the issue. Can you help me?

Thanks,

Ramakrishna

bhavesh_kantilal
Active Contributor
0 Kudos

The reason for the error is because your your Hybris Business Component is not assigned a Logical System Name.

Go to your Business Component --> Edit Mode --> Business Component --> Adapter Specific Attributes --> And Provide a Logical System Name here.

Save and Activate and your Idoc should now go through.

Please make sure this logical system name matches your Partner Profile in SAP.

Former Member
0 Kudos

it is working..Thank you..thank you very much..

Thanks,

Ramakrishna

Answers (0)