2021 Mar 11 3:46 PM - edited 2024 Feb 03 10:44 PM
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!
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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).
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!
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.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.