Hello Guru's
I am doing the scenario IDOC to XML. During the mapping values are not populating in the same order in which I have defined the target structure. I am mapping different fields from different segments to different hierarchical structure fields in target. Pls see the below screens shot for more explanation.
But the output is in different order. Here is result XML.
<ShptCtryFinalDest>MO</ShptCtryFinalDest>
-<Invoice>
-<InvoiceFreightAndOtherCharges>
<ChargeCode>INV</ChargeCode>
<FromCurrCode>USD</FromCurrCode>
</InvoiceFreightAndOtherCharges>
</Invoice>
As per the definition InvoiceNo and InvoiceDate should come first under <Invoice> Node and then <InvoiceFreightAndOtherCharges>. Can you pls suggest how to do it.
Thanks
Arun