cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Datahub-Hybris set up to load product data to multiple product catalogs

sobha
Explorer
0 Kudos
523

Hello,

We currently have a single datahub instance with pool/feed for incoming products from SAP that get loaded into a single product catalog on Hybris. Looking for suggestions on how to configure datahub to support multiple product catalogs to load certain products into a specific product catalog. thank you!

Accepted Solutions (0)

Answers (1)

Answers (1)

Slava
Product and Topic Expert
Product and Topic Expert
0 Kudos

If you use one of those sample extensions distributed with Datahub (pcm-apparel or pcm-electronics), then I understand where the problem is coming from. The catalog is not explicitly present in the model. Those extensions have something like this:

<exportCodes>
<exportCode>
$catalogVersion=catalogversion(catalog(id[default=apparelProductCatalog]),version[default='Staged'])[unique=true,default=apparelProductCatalog:Staged]
</exportCode>
<exportCode>
$baseProduct=baseProduct(code,catalogVersion(catalog(id[default='apparelProductCatalog']),version[default='Staged']))
</exportCode>
</exportCodes>

which sets default catalog to be used by all products going through that target system. Therefore the solution is to change the model.

Ideally, look for available standard extensions for integration with SAP. Hopefully that all you need.

If standard extensions not found or does not work, you have to model products with catalogs. You will need to add Catalog and CatalogVersion items in the raw/canonical/target extensions to create those items from incoming data and to use correct references to them in the Product or Category types.

Perhaps catalogs and catalog version can be loaded into a dedicated pool, that will be used as lookup tables for products loaded in to the products (or global) pool. There should be documentation about the lookup tables.

sobha
Explorer
0 Kudos

Thank you for your response vanosov!!

We are currently using a custom extension and products do get load to a custom product catalog and not to Default catalog. In addition to the existing custom product catalog (catalog1) - we need to load the products to an additional product catalog (catalog2) based on some attribute value in incoming iDoc xml (matmas)

I came across below page and may be is along the lines of what you suggested above (model products with catalogs).

https://help.sap.com/viewer/451f9eea67c3442696e7a0a631e9b975/2102/en-US/8bbd45ee86691014923fab90e04e...

Is this in line with what you suggested? Please share if any other suggestions/help that we could use to implement the solution. thank you!

Slava
Product and Topic Expert
Product and Topic Expert
0 Kudos

tammana, that page is talking about standard extensions distributed by SAP for integration with ERP. If it's your case, I would inquire about those extensions and whether you can simply use them. If I'm not mistaken, it's team Fusion that supports them. Try to find them and to reach out to them.

If the standard extensions cannot be used, then, yes, you would need to create your custom extensions which model Catalog and CatalogVersion in addition to Product. But, I hope it's not necessary.

sobha
Explorer
0 Kudos

ok thank you! Really appreciate your response and suggestions.