Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

*EDI: Syntax error in IDoc (segment cannot be identified)*


My IDoc is failling dueto a syntax error. I have extended the standard IDoc INVOIC02 with the extension E1EDP01

but when I run the send idoc report

the structure (hierarchy) of the IDOC changes drastically with all segments

of the IDOC being at the same hierarchical level and also I get the message



EDI: Syntax error in IDoc (segment cannot be identified)


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

This error can have several reasons:

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

The segment E1EDP19 does not exist in the syntax description of the basic type INVOIC02 (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 anyone help this issue..


Former Member
Former Member replied


i think you have an issue with your "add e1edp19" after e1edp01 modify.

what about your segmentnumber ? (segnum) this must be sorted after addition of a new segment.


segnum 1 = e1edp01

segnum 2 = e1edp19

segnum 3 = e1edp19 (003)

segnum 4 = e1edp01

segnum 5 = e1edp19 (new added).

if you delete segnum3 (cause of qualifier = 003), then you have to use Segnum 3 for Segnum 4.

OK, After your edidd is complete, make a new segnum sort like this:

loop at edidd assigning <edidd>.

<edidd>-segnum = sy-tabix.


Give me your EDIDD Table entries.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question