Skip to Content
Author's profile photo Former Member

Integrating Datahub with PI java stack

Hybris provides industry’ leading Omni-channel commerce solutions, combined with SAP’s strength in enterprise applications and technology, will enable business to optimize customer engagements. SAP and hybris form a powerful combination, enabling clients to create a robust digital commerce experiences.

The big question comes in as to what data from ECC needs to be presented to customers in real time and what can be transferred to hybris asynchronously on scheduled basis to show it to customers anytime quickly.

Datahub is hybris’ preferred approach to asynchronously transfer data from one system into another. Hybris has built pre-integrated connectors allowing the data to flow from SAP directly through the datahub and into hybris. Now if the clients have the PI Middleware already in place, which is routing the ECC data to other third parties, then clients prefer to let PI do the task to transfer the ECC data to datahub (which will send it to hybris) without making the code/functional changes at ECC end.

Here, let us just quickly see how to configure ICO in PI to send the data to datahub successfully. The datahub and hybris

ECC configuration : Create a RFC destination, port and logical system for PI . and configure the partner profile. Here let us do it for Product Data .

MATMAS.MASMAS05

PI configuration :

  1. Check for ECC system present as business system in PI.
  2. Create Idoc sender channel.
  3. Create a business component with datahub.
  4. Create a HTTP_AAE receiver channel pointing to Datahub.
  5. Configure the ICO (here no OM is used, the Idoc XML would be posted to Datahub)

Picture1.png

Picture2.png

Picture3.png

For the HTTP_AAE receiver channel, in the target host put the host name for Datahub server, update the target port with the corresponding port and the path is always same for Idoc end point as shown in screen-print following. Do update the character encoding and content-type as well.

Picture4.png

Save the ICO, and trigger a test MATMAS.MATMAS05 Idoc from ECC.and it would flow to Datahub through PI successfully.

Picture5.png

Picture6.png

Picture7.png

In the datahub server, browse to the bin location under tomcat directory, there a log file would be created with the name logFile.<date>. In that the idoc xml can be found.

Captur.png

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Vikas Singh
      Vikas Singh

      Hi Ruchi,

      Nice blog - thanks for writing.

      About datahub server - do we ( as customers ) have access ?

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Hi Vikas.

      Create a hybris wiki account. Download the installable, follow the steps and you can have the local installation of hybris and datahub on your machine.

      Thanks,

      Ruchi

      Author's profile photo Jean-Philippe Pain
      Jean-Philippe Pain

      Hi Ruchi,

      Could you send data directly to Hybris without going through the Datahub and use PO as datahub in that case. Meaning that it would handle conversion to raw format for Hybris and so on...

      Author's profile photo Vimal Pillai
      Vimal Pillai

      Hi Jean,

      I am too looking for a similar requirement of integration of Hybris directly with SAP PI. I have done synch integration with Hybris directly and its possible.

      Hybirs <-> SAP PI <-> SAP ECC