cancel
Showing results for 
Search instead for 
Did you mean: 

Replicating SAP ERP Product Master data into Hybris

Former Member
0 Kudos

I sending Product Master Data from SAP to Hybris, I am following below link to sending Product,

https://wiki.hybris.com/display/release5/Replicating+Product+Master+Data+from+the+SAP+Back+End https://wiki.hybris.com/display/release5/sapproduct+Data+Hub+Extension https://wiki.hybris.com/display/release5/sapidocintegration+Data+Hub+Extension

  1. I am sending Product master data by using MATMAS(SAP ERP). Getting data in console log files. Getting All Raw items in POSTMAN : http://localhost:9001/datahub-webapp/v1/pools/GLOBAL/items/RawMATMAS.xml

  2. How to get Canonical Items in POSTMAN????? http://localhost:9001/datahub-webapp/v1/pools/GLOBAL/items/CanonicalBaseProduct.xml

  3. When I am entering this link in postman to initiate publication of hybris. http://localhost:9001/datahub-webapp/v1/pools/SAPCUSTOMER_INBOUND_POOL/publications

with message body, {"poolName":"SAPCUSTOMER_INBOUND_POOL", "targetSystemPublications":[{"targetSystemName":"HybrisCore"}]}

3.a) message body as text, getting 415 unsupportedMediaType in postman getting MIME media type text/plain : Charset-UTF-8 was not found in console

3.b) message body as text/plain,

getting 415 unsupportedMediaType in postman getting MIME media type text/plain was not found in console

3.c) message body as html/text,

getting 415 unsupportedMediaType in postman getting MIME media type text/html was not found in console

3.d) message body as application/javascript,

getting 415 unsupportedMediaType in postman getting MIME media type application/javascript was not found in console

3.e) message body as xml/application,

getting 400 Bad request in postman

3.f) message body as xml/text,

getting 400 Bad request in postman

3.g) message body as application/json,

getting 400 Bad request in postman and TargetSystem for name HybrisCore has not been specified for target system publications TargetSystemPublicationDate{publicationId=null, startTime=null, endTime=null, status='null', targetSystemName='HybrisCore', actionId=3, poolName='null', numberOfErrors=0}

Please suggest.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member224482
Active Contributor
0 Kudos

I do not fully understand where the question above, but you can look at the troubleshooting sections of sapproduct : Troubleshooting

Also, as the CanonicalBaseProduct is read from the pool GLOBAL, the publication pool shall also be GLOBAL instead of SAPCUSTOMER_INBOUND_POOL.

Former Member
0 Kudos

http://localhost:9001/datahub-webapp/v1/pools/GLOBAL/items/RawMATMAS.xml getting some data.

http://localhost:9001/datahub-webapp/v1/pools/GLOBAL/items/CanonicalBaseProduct.xml getting Nothing

http://localhost:9001/datahub-webapp/v1/pools/GLOBAL/publications with message body, {"poolName":"GLOBAL", "targetSystemPublications":[{"targetSystemName":"HybrisCore"}]}

getting 400 Bad request, TargetSystem for name HybrisCore is not specified for target system publications TargetSystemPublicationDate{publicationId=null, status='null',targetSystemName='HybrisCore', poolName='null',numberOfErrors=0}

former_member224482
Active Contributor
0 Kudos

In this case, the sapproduct extension was not loaded. Look at the tomcat log to find the reason.

Former Member
0 Kudos

If sapproduct extension is not loaded , then how we can get values for RawMATMAS for Raw Model?

former_member224482
Active Contributor
0 Kudos

The RawMATMAS is a class deployed within the datahub-webapp/lib folder. The datahub-webapp classLoader loads the domain model using classes of its library. The attributes are loaded using the extension.xml of each extensions. Therefore, the sapproduct.jar is correctly deployed as part of the datahub-webapp but the loading of the sapproduct-datahub-extension.xml is not completed. Most likely due to missing properties during the startup of the tomcat. This happens with old version/patch.

Former Member
0 Kudos

I am using Hybris 5.5.12 and datahub-webapp-5.5.1.2-RC2.war and sapproduct-5.5.1.0-RC7.jar which is already installed when I extracted Hybris Commerce Suite. so what properties I need to add to resolve this issue??

former_member224482
Active Contributor
0 Kudos

Look at the tomcat log (tomcat7-stdout.YYYY-MM-DD.log), I cannot guess it.

Former Member
0 Kudos

Thanks Robin for your help, but i checked the log file and their is no exception while loading sapproduct-datahub-extension.xml and it showing loaded 39 beans in sapproduct-datahub-extension.xml