Hi Praveen,
Thanks for your response.
After the applied solution, I got the same issue, the second record is not being sent to legacy. Applying the removecontext function, I have the following result. All the E1EDPT2 segments are in the same level.
By the way, have a look at the following IDOC.
The E1EDP01 segment will be the our MESSAGE node, in this case there are 2, in additional there are 6 E1EDPT2 segments, that will be our ORDER node.
If I set to the E1EDPT1 context, I will have the correct result, because now I have 6 and 6 segments
Therefore, the second 6 records remaining is not being sent. Only the first of them.
Best regards,
Leandro Silva