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

approach to create base product as well as variant product from Single MATMAS

Former Member
0 Likes
581

Hi Experts ,

I have a requirement to create 1 variant product , 1 base product from a single MATMAS from S4 system. This MATMAS will have 1 variant product . From this variant product , I would like to create 1 upper variant and 1 base product in hybris .I have single MATMAS with me.

S4 is sending single MATMAS to me.

Any kind of help is appreciated.

Thanks, Sid

Accepted Solutions (0)

Answers (2)

Answers (2)

rahulverma94
Active Participant
0 Likes

Target item publications are not deterministic by default. Data Hub does not enforce a particular order. Assume that no order is defined and you have a type, such as variant. It is entirely possible that Data Hub would attempt to publish variant before base product . On SAP Hybris Commerce, the publication of variant would fail and the later publication of baseproduct would succeed. To avoid this error, you can control the order in which target items are published. You solve the problem by defining dependencies between the types in the Data Hub target XML file. Data Hub evaluates the dependencies during the publication process and publishes the target items based on precedence. For example, if a baseproduct must exist before adding a variant as shown in the following code snippet.

...

 ...
 <targetSystem>
   ...
   <targetItems>
     ...
     <item>
       <type>BaseProduct</type>
       ...
     </item>
     <item>
       <type>VariantProduct</type>
       ...
       <dependencies>
         <dependency>BaseProduct</dependency>
       </dependencies>
       ...
     </item>
     ...
   </targetItems>
 </targetSystem>
 ...
  

...

0 Likes

You can process the base product as well as variant product from single Matmas Idoc. What is the problem you are facing.