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: 

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

Former Member
0 Kudos

Hi All,

Im facing the below error EDI: Syntax error in IDoc (segment cannot be identified).

And this error is coming only for few idocs rest are getting processed successfully.

Message no. E0078

Diagnosis

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

This error can have several reasons:

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

The segment E1EDP03 does not exist in the syntax description of the basic type ORDERS05 (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.

Procedure

Please check the IDoc or the syntax description of the basic type ORDERS05 (extension ).

Please suugest.

Thanks,

Spandana

3 REPLIES 3

NAeda
Contributor
0 Kudos

Hi,

Is this standard program or custom program?

you might be appending the Z segment instead of inserting it. Always best practice is get the index of the segment and instert it.

If all the data is not populated then segment position will change incase of appending. Please check your code and revert back.

Refer the below link for detailed information.

Thank you

0 Kudos

Hi,

In SE19 provide the Basic Type(Ex: ORDERS05) and execute, we can get the complete list of sub-segments .

1. check if E1EDP03 is in list, if your using a custom one.

2. Inserting the segements in that sequence is very important.

3. If its processing few IDOCs successfully then please check where and how this segment is populated. It could be possible that based on some condition a segment is populated or sometimes not.

Regards,

Akhila Bidare

Former Member
0 Kudos

Check if the order of the segments matches with the example below and also as Aeda wrote, check if you are not appending instead of inserting:

.

.

.

<E1EDP01 SEGMENT="1">

<POSEX></POSEX>

<MENGE></MENGE>

<MENEE></MENEE>

<BMNG2></BMNG2>

<PMENE></PMENE>

<VPREI></VPREI>

<PEINH></PEINH>

<NETWR></NETWR>

<CURCY></CURCY>

<E1EDP02 SEGMENT="1">

<E1EDP03 SEGMENT="1">

<E1EDP03 SEGMENT="1">

<E1EDP05 SEGMENT="1">

<E1EDP20 SEGMENT="1">

<E1EDP19 SEGMENT="1">

</E1EDP01>

.

.

.

Regards,

Felipe