cancel
Showing results for 
Search instead for 
Did you mean: 

Sap Integration: Can we maintain product catalog in SAP?

Former Member
0 Kudos

Can we create category-product hierarchy in sap and send as IDOC?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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...

Former Member
0 Kudos

Hello Panait,

Thank you for your response. Using CLSMAS, the categories sent are reflecting in classification catalog.

Is there any way to reflect the same in product catalog?

Former Member
0 Kudos

i don't think there is a way to maintain product catalog in SAP. Since SAP is not aware of what catalog are being used by you and how many .

Former Member
0 Kudos

How to replicate the SAP ERP products in hybris category structure?

Former Member
0 Kudos

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)

Former Member
0 Kudos
 <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>
Former Member
0 Kudos

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>