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: 

Error when Adding a segment to an IDOC

Former Member
0 Kudos

Hi I have added one segment to an IDOC through one user exit and it is giving the error with status 26.

Here I am pasting the error details,

The segment E1IDT02 does not occur at the current level of the basic type PEXR2001 (extension ).

This error can have several reasons:

The segment E1IDT02 is assigned to a group whose header segment does not occur.

The segment E1IDT02 does not exist in the syntax description of the basic type PEXR2001 (extension ).

The sequence of segments in the group in which the segment appears is incorrect.

Previous errors ('mandatory' segment or group missing) may be due to this error.

Can any body help me, and let me know what can I do to avoid this.

Thanks,

Deepak.

2 REPLIES 2

Former Member
0 Kudos

from the error message itself, it is clear that you are adding the segment at an incorrrect place. Either you are using an incorrect index when inserting the values in EDIDD or not taking the correct parent segment into consideration

0 Kudos

Actually in the basic type of IDOC, there is no segment with this name. But I am adding this directly in an user exit. Can you tell me what is the actual procedure to add a new segment to the basic type of IDOC

Thanks

ravi