Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

IDoc - Custom segment position in extension

Former Member
0 Kudos

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

1 REPLY 1

0 Kudos

You need to delete the current Zsegment and add it in the proper position, you can achieve this with the set of transactions you will find in the WEDI tx.