cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Integration: Replicate Classification Data

Former Member
0 Kudos

Hi experts,

after we successfully managed to replicate products from SAP to hybirs, we are heading forward to the next step our sap integration case: replication of classification data.

So we pushed some example files (CHRMAS, CLSMAS, CLFMAS, ARTMAS) from SAP to Hybris. While the products where imported sucessfully, we got an error when publishing the categories:

 column 4: cannot resolve value 'ERP_CLASSIFICATION_026:ERP_IMPORT' for attribute 'catalogVersion'

So it seems datahub doesn't know about the target classification system the data should be imported into. While it is quite obvious how to define the target catalog version for products (using Sales Area Mapping) i couldn't find any information how to do this for classification data.

Any hints would be highly appreciated!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Explaination for Problem with ERP_CLASSIFICATION_26 can be found in ticket https://answers.sap.com/questions/12754227/datahub-importing-products-and-classifications.html

Former Member
0 Kudos

Having again a look at that topics after a view months i've found this snippet in wiki:

 <attribute>
   <name>attributes</name>
   <localizable>false</localizable>
   <collection>true</collection>
   <transformationExpression>determineAttributeValue()</transformationExpression>       
   <exportCode expression="true">
   '@'+attributeID+'[system=ERP_CLASSIFICATION_'+categoryType+',version=ERP_IMPORT,translator=de.hybris.platform.catalog.jalo.classification.impex.ClassificationAttributeTranslator]'</exportCode>
   <mandatoryInHeader>false</mandatoryInHeader>
 </attribute>

So it seems the classification system is simply defined as ERP_CLASSIFICATION_{categoryType} and it's version as ERP_IMPORT.

Having a look at my CLSMAS/CLFMAS input files, it seems {categoryType} referes to IDOC element KLART, which is set to "026".

After creating a classification system "ERP_CLASSIFICATION_26" and a related version "ERP_IMPORT" in hybris manually, the publication worked.

So now to my questions:

  • Is there a hidden/planned feature to define the classification system mapping in hmc? (like you can do it with with sales area/catalog version mapping)

  • If not possible using hmc, how can the classification system be changed easily in data hub?

Best Regards, Norbert