we create an PO from a Sales Order in system A and send this via IDOC to system B.
In this sales order it can be that the line item number is not in sequence. Like 10, 30,40,50,90....
Now the need is that the new Sales Order should have the same numbering like the Sales Order in plant A.
Now i want to change at the outbound IDOC the POSEX field in the Segment E1CUREF.
Can anybody give me a short hint how the ABAP Code should look like. I can get the Sales Order number an positon in the PO from table EKKN.