Skip to Content
0
Former Member
Dec 31, 2016 at 08:24 AM

different data in same segment at target level for hybris to sap through datahub

100 Views

hi, i am using datahub 6.0. I am working on saporder-**.jar for placing order to erp system

i have extended saporder-**.jar for adding ORDERS01 as my basic type. I want to send data to

ORDERS01$E1EDK14

in target.xml i have hardcoded the data as it is final data and not retrieved from Hybris. my issue is that when i want to populate more data to same segment and same field it is just taking first set of value only.

The target_**.xml for hardcoded data is as follows

 <item>
                     <type>ORDERS01$E1EDK14</type>
                     <exportCode>idockeyfield=BELNR</exportCode>
                     <description>Header reference data</description>
                     <updatable>true</updatable>
                     <canonicalItemSource>CanonicalOrder</canonicalItemSource>
                     <status>ACTIVE</status>
                     <attributes>
                         <attribute>
                             <name>BELNR</name>
                             <localizable>false</localizable>
                             <collection>false</collection>
                             <transformationExpression>orderId</transformationExpression>
                             <exportCode></exportCode>
                             <mandatoryInHeader>true</mandatoryInHeader>
                         </attribute>
                         <attribute>
                             <name>QUALF</name>
                             <localizable>false</localizable>
                             <collection>false</collection>
                             <transformationExpression>'006'</transformationExpression>
                             <exportCode>keyfield=true</exportCode>
                             <mandatoryInHeader>true</mandatoryInHeader>
                         </attribute>
                         <attribute>
                             <name>ORGID</name>
                             <localizable>false</localizable>
                             <collection>false</collection>
                             <transformationExpression>'00'</transformationExpression>
                             <exportCode></exportCode>
                             <mandatoryInHeader>true</mandatoryInHeader>
                         </attribute>
                     </attributes>
                 </item> 

Now i want to send QUALF as 007 and ORGID as 01 and also QUALF as 008 and ORGID as 02 along with the above item with same segment and same field .

my second question is how data's are populated from hybris to datahub. how datahub identifies raw item attribute and what is the triggering point in hybris to identify which raw item has to be called from datahub?