on 05-19-2016 2:30 PM
Can we create category-product hierarchy in sap and send as IDOC?
Yes, you can do it. This hierarchy could be sent through CLSMAS.
For more information you can check:
https://wiki.hybris.com/display/release5/sapproduct+Data+Hub+Extension#sapproductDataHubExtension-CL...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think it can be done using out of the box extension. In 5.4 version I used a custom "product extension" and I had 3 canonical and 3 target items for categories and hierarchy.
Canonical Items:
(categories are sent by CLSMAS, the hierarchy by CLFMAS)
- CanonicalCategory
- CanonicalSuperCategory (I filtered by "E1OCLFM-MAFID" = "O")
- CanonicalProductCategory (I filtered by "E1OCLFM-MAFID" = "K")
TargetItems:
- "CatalogCategory" (for creating the categories)
- "CatalogSuperCategory" (for category-category relation)
- "CatalogProductCategory" (for product-category relation)
<type>CatalogCategory</type>
<exportCode>Category</exportCode>
<description>Hybris Platform representation of category</description>
<updatable>true</updatable>
<canonicalItemSource>CanonicalCategory</canonicalItemSource>
<attributes>
<attribute>
<name>code</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>identifier</transformationExpression>
<exportCode>code[unique=true]</exportCode>
<mandatoryInHeader>true</mandatoryInHeader>
</attribute>
<attribute>
<name>catalogVersion</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>""</transformationExpression>
<exportCode>$catalogVersion</exportCode>
<mandatoryInHeader>true</mandatoryInHeader>
</attribute>
<attribute>
<name>name</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>name</transformationExpression>
<exportCode>name</exportCode>
<mandatoryInHeader>false</mandatoryInHeader>
</attribute>
</attributes>
where
<targetSystems>
<targetSystem>
<name>HybrisCore</name>
<type>HybrisCore</type>
<exportURL>${targetsystem.hybriscore.url}</exportURL>
<userName>${targetsystem.hybriscore.username}</userName>
<password>${targetsystem.hybriscore.password}</password>
<exportCodes>
<exportCode>#% impex.setLocale( Locale.ENGLISH )</exportCode>
<exportCode>
$catalogVersion=${mycoreconfiguration.catalogVersion}
</exportCode>
<exportCode>
$supercategories=source(code, $catalogVersion)[unique=true]
</exportCode>
<exportCode>
$categories=target(code, $catalogVersion)[unique=true]
</exportCode>
<exportCode>
$productsupercategories=supercategories(code, $catalogVersion)
</exportCode>
</exportCodes>
</targetSystem>
</targetSystems>
User | Count |
---|---|
8 | |
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.