cancel
Showing results for 
Search instead for 
Did you mean: 

Datahub IDOC generation is not in the correct Order?

Former Member
0 Kudos

Hi All,

we are using Asynchronous Order Management to send Order to SAP via Data Hub in the form of IDOCs. We are using ORDERS05 IDOC schema to do the same.

The problem we are facing here is, if we have 4 Order entries and we are sending in the correct order as entry 0, entry 1, entry 2, entry 3 and I can see the same in Raw, Canonical data of DataHub.

But while publishing (Converting into IDOC) in the target the order entries are altering. In the generated IDOC in the data hub logs the Order of entries are like is entry 3, entry 2, entry 0, entry 1 (some random order every time).

I want the Order to be same as in Canonical while generating the IDOC, do I need to do anything for that?

Thanks a lot in advance for the help that I am getting on this.

Thanks, Pradeep

Accepted Solutions (0)

Answers (2)

Answers (2)

rahulverma94
Active Participant
0 Kudos

,

Could you please help us on steps to use ORDERS05 as an idoc to send order data to SAP? Did you create the JAXB classses using the ORDERS05 xsd? While we generate the classes from xjc, all the segment classes are generated as static into only one class file. How do we get the same segment class names(with $ as separator between hierarchy of segments) as we have in the oob classes(target extension of saporder jar)?

Any help here is appreciated.

Thanks.

former_member224482
Active Contributor
0 Kudos

This is a known behavior of the data hub.

The root cause is the transformation of the canonical item to target item is done with parallel processing and does not preserves any input ordering. The target items are in fact sorted by target item id but this does not improve the situation.

I've already provided a work around to perform a post IDOC creation sorting :
https://answers.sap.com/questions/12755740/sorting-of-order-entry-segments-in-datahub.html