Skip to Content
1
Nov 02, 2016 at 07:52 PM

Data Hub issue in creation of Canonical Items.

87 Views

I am trying to replicate prices to Hybris from SAP. But the single IDOC contains 4 price rows in it. So if I try pushing them individually to Hybris from postman then it is working fine. But if I push them i.e. all 4 price rows at one time then I see 4 Raw Items are getting created but only 2 Canonical Items are further getting created. So please help me with this. Below is IDOC structure:

 <IDOC BEGIN="1">
     <EDI_DC40 SEGMENT="1">
         <TABNAM>EDI_DC40</TABNAM>
         <MANDT>080</MANDT>
         <DOCNUM>0000000133288707</DOCNUM>
         <DOCREL>701</DOCREL>
         <STATUS>30</STATUS>
         <DIRECT>1</DIRECT>
         <OUTMOD>2</OUTMOD>
         <IDOCTYP>COND_A04</IDOCTYP>
         <MESTYP>COND_A</MESTYP>
         <SNDPOR>SAPTST</SNDPOR>
         <SNDPRT>LS</SNDPRT>
         <SNDPRN>TSTCLNT080</SNDPRN>
         <RCVPOR>HYBRISDH</RCVPOR>
         <RCVPRT>LS</RCVPRT>
         <RCVPRN>HYBRISDH</RCVPRN>
         <CREDAT>20161102</CREDAT>
         <CRETIM>075351</CRETIM>
         <SERIAL>20161102075351</SERIAL>
     </EDI_DC40>
     <E1KOMG SEGMENT="1">
         <KVEWE>A</KVEWE>
         <KOTABNR>004</KOTABNR>
         <KAPPL>V</KAPPL>
         <KSCHL>PR00</KSCHL>
         <VAKEY>101510000000000000000121</VAKEY>
         <VKORG>1015</VKORG>
         <VTWEG>10</VTWEG>
         <MATNR>000000000000000121</MATNR>
         <EVRTP>00000</EVRTP>
         <POSNR>000000</POSNR>
         <ANZSN>0000000000</ANZSN>
         <VAKEY_LONG>101510000000000000000121</VAKEY_LONG>
         <E1KONH SEGMENT="1">
             <KNUMH>0010772269</KNUMH>
             <DATAB>20161102</DATAB>
             <DATBI>20161102</DATBI>
             <E1KONP SEGMENT="1">
                 <KSCHL>PR00</KSCHL>
                 <KSTBM>0.000</KSTBM>
                 <KSTBW>0.00</KSTBW>
                 <KRECH>C</KRECH>
                 <KBETR>123.11</KBETR>
                 <KONWA>USD</KONWA>
                 <KPEIN>1</KPEIN>
                 <KMEIN>EA</KMEIN>
                 <KUMZA>0</KUMZA>
                 <KUMNE>0</KUMNE>
                 <MXWRT>0.00</MXWRT>
                 <GKWRT>0.00</GKWRT>
                 <KWAEH>USD</KWAEH>
                 <ZAEHK_IND>01</ZAEHK_IND>
                 <KBRUE>0.00</KBRUE>
                 <VALTG>00</VALTG>
                 <VALDT>00000000</VALDT>
                 <ANZAUF>00</ANZAUF>
                 <MIKBAS>0.000</MIKBAS>
                 <MXKBAS>0.000</MXKBAS>
                 <KOMXWRT>0.00</KOMXWRT>
                 <KLF_STG>0000</KLF_STG>
                 <KLF_KAL>0000</KLF_KAL>
             </E1KONP>
         </E1KONH>
         <E1KONH SEGMENT="1">
             <KNUMH>0010772269</KNUMH>
             <DATAB>20161106</DATAB>
             <DATBI>20161110</DATBI>
             <E1KONP SEGMENT="1">
                 <KSCHL>PR00</KSCHL>
                 <KSTBM>0.000</KSTBM>
                 <KSTBW>0.00</KSTBW>
                 <KRECH>C</KRECH>
                 <KBETR>123.22</KBETR>
                 <KONWA>USD</KONWA>
                 <KPEIN>1</KPEIN>
                 <KMEIN>EA</KMEIN>
                 <KUMZA>0</KUMZA>
                 <KUMNE>0</KUMNE>
                 <MXWRT>0.00</MXWRT>
                 <GKWRT>0.00</GKWRT>
                 <KWAEH>USD</KWAEH>
                 <ZAEHK_IND>01</ZAEHK_IND>
                 <KBRUE>0.00</KBRUE>
                 <VALTG>00</VALTG>
                 <VALDT>00000000</VALDT>
                 <ANZAUF>00</ANZAUF>
                 <MIKBAS>0.000</MIKBAS>
                 <MXKBAS>0.000</MXKBAS>
                 <KOMXWRT>0.00</KOMXWRT>
                 <KLF_STG>0000</KLF_STG>
                 <KLF_KAL>0000</KLF_KAL>
             </E1KONP>
         </E1KONH>
         <E1KONH SEGMENT="1">
             <KNUMH>0010771530</KNUMH>
             <DATAB>20161111</DATAB>
             <DATBI>20161112</DATBI>
             <E1KONP SEGMENT="1">
                 <KSCHL>PR00</KSCHL>
                 <STFKZ>A</STFKZ>
                 <KSTBM>0.000</KSTBM>
                 <KSTBW>0.00</KSTBW>
                 <KRECH>C</KRECH>
                 <KBETR>123.33</KBETR>
                 <KONWA>USD</KONWA>
                 <KPEIN>1</KPEIN>
                 <KMEIN>EA</KMEIN>
                 <KUMZA>0</KUMZA>
                 <KUMNE>0</KUMNE>
                 <MXWRT>0.00</MXWRT>
                 <GKWRT>0.00</GKWRT>
                 <KWAEH>USD</KWAEH>
                 <ZAEHK_IND>01</ZAEHK_IND>
                 <KBRUE>0.00</KBRUE>
                 <VALTG>00</VALTG>
                 <VALDT>00000000</VALDT>
                 <ANZAUF>00</ANZAUF>
                 <MIKBAS>0.000</MIKBAS>
                 <MXKBAS>0.000</MXKBAS>
                 <KOMXWRT>0.00</KOMXWRT>
                 <KLF_STG>0000</KLF_STG>
                 <KLF_KAL>0000</KLF_KAL>
             </E1KONP>
         </E1KONH>
         <E1KONH SEGMENT="1">
             <KNUMH>0010772269</KNUMH>
             <DATAB>20161113</DATAB>
             <DATBI>99991231</DATBI>
             <E1KONP SEGMENT="1">
                 <KSCHL>PR00</KSCHL>
                 <KSTBM>0.000</KSTBM>
                 <KSTBW>0.00</KSTBW>
                 <KRECH>C</KRECH>
                 <KBETR>123.44</KBETR>
                 <KONWA>USD</KONWA>
                 <KPEIN>1</KPEIN>
                 <KMEIN>EA</KMEIN>
                 <KUMZA>0</KUMZA>
                 <KUMNE>0</KUMNE>
                 <MXWRT>0.00</MXWRT>
                 <GKWRT>0.00</GKWRT>
                 <KWAEH>USD</KWAEH>
                 <ZAEHK_IND>01</ZAEHK_IND>
                 <KBRUE>0.00</KBRUE>
                 <VALTG>00</VALTG>
                 <VALDT>00000000</VALDT>
                 <ANZAUF>00</ANZAUF>
                 <MIKBAS>0.000</MIKBAS>
                 <MXKBAS>0.000</MXKBAS>
                 <KOMXWRT>0.00</KOMXWRT>
                 <KLF_STG>0000</KLF_STG>
                 <KLF_KAL>0000</KLF_KAL>
             </E1KONP>
         </E1KONH>
     </E1KOMG>
 </IDOC>