Skip to Content
0
Former Member
Jun 08, 2016 at 01:56 PM

IDoc - Custom segment position in extension

582 Views

Hi guys,

I have an IDoc extension in which I have added a custom segment. Everything works fine, but the position of the custom segment should be different and I don't know how to achieve this.

The IDoc contains all segments of the basic type, but in the extension I only want to add one custom segment. When I add it to the extension, it will be added like this:

Main-parent-segment-1

Sub-segment-1

Sub-segment-2

Sub-segment-3

Main-parent-segment-2

Sub-segment-4

Sub-segment-5

Z-Custom-Segment-1

Main-parent-segment-3

Sub-segment-6

........

The filling of this IDoc works good and the IDoc is created in the above structure.

The requirement is now to move the Custom segment up, so it looks like this:

Main-parent-segment-1

Sub-segment-1

Sub-segment-2

Sub-segment-3

Main-parent-segment-2

Sub-segment-4

Z-Custom-Segment-1

Sub-segment-5

Main-parent-segment-3

Sub-segment-6

........

I don't know how to change the order, so the strutcure is like the above one. If I just add the custom segment after Sub-segment-4 while the IDoc filling, the IDoc structure gets blowed up and all segments are on one level.

Can you tell me how to change the position of the custom segment?

Thank you & best regards,

Michael