Symptom
In datahub, for example to replicate order from hybris to SAP ERP, CSV data is sent to datahub and idoc is generated and sent to ERP. As shown below in the generated idoc, the order of E1BPSDITM segments are inconsistent, the order item segments coming as non-sequence.i.e 20,10,30 or 30,20,10 but the customer needs them to be sorted according to the itm_NUMBER field:
e1BPSDITM=SALESORDER_CREATEFROMDAT202.IDOC.E1SALESORDER_CREATEFROMDAT2.E1BPSDITM[ itm_NUMBER=10 po_ITM_NO=000010 material=SM_TEXT plant=4847 short_TEXT=sample s_UNIT_ISO=KGM comp_QUANT=3000 e1BPSDITM1=SALESORDER_CREATEFROMDAT202.IDOC.E1SALESORDER_CREATEFROMDAT2.E1BPSDITM.E1BPSDITM1[ mat_EXT=SM_TEXT segment=1 ]
SALESORDER_CREATEFROMDAT202.IDOC.E1SALESORDER_CREATEFROMDAT2.E1BPSDITM[ itm_NUMBER=30 hg_LV_ITEM=10 po_ITM_NO=000030 material=147852 plant=4847 short_TEXT=ABC s_UNIT_ISO=KGM comp_QUANT=1000 e1BPSDITM1=SALESORDER_CREATEFROMDAT202.IDOC.E1SALESORDER_CREATEFROMDAT2.E1BPSDITM.E1BPSDITM1[ mat_EXT=147852 segment=1 ] segment=1 SALESORDER_CREATEFROMDAT202.IDOC.E1SALESORDER_CREATEFROMDAT2.E1BPSDITM[ itm_NUMBER=20 hg_LV_ITEM=10 po_ITM_NO=000020 material=1234 plant=4847 short_TEXT=BCD s_UNIT_ISO=KGM comp_QUANT=1000 e1BPSDITM1=SALESORDER_CREATEFROMDAT202.IDOC.E1SALESORDER_CREATEFROMDAT2.E1BPSDITM.E1BPSDITM1[ mat_EXT=1234 segment=1 ] segment=1 SALESORDER_CREATEFROMDAT202.IDOC.E1SALESORDER_CREATEFROMDAT2.E1BPSDITM[ itm_NUMBER=40 hg_LV_ITEM=10 po_ITM_NO=000040 material=3245 plant=4847 short_TEXT=ABC s_UNIT_ISO=KGM comp_QUANT=1000 e1BPSDITM1=SALESORDER_CREATEFROMDAT202.IDOC.E1SALESORDER_CREATEFROMDAT2.E1BPSDITM.E1BPSDITM1[ mat_EXT=3245 segment=1 ]
|
So as you can see, the OOTB behavior might not always fulfil customer’s business requirement and flexibility to sort idoc segments in different order on various criteria is desired.
Read more...
Environment
SAP Hybris Commerce Datahub 5.7 and above
Product
SAP Hybris Commerce 5.7, data hub ; SAP Hybris Commerce 6.1 ; SAP hybris Commerce 5.6, data hub
Keywords
Data hub, hybris, idoc, segment, sort, order , KBA , CEC-SCC-INT-HUB , Data Hub , How To
About this page
This is a preview of a SAP Knowledge Base Article. Click
more to access the full version on SAP for Me (Login
required).
Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.