Application Development and Automation 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: 
Read only

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

Former Member
0 Likes
606

Hi!

We have a working IDoc interface between 2 SAP systems. I got the task to append a new segment into the interface.

However meanwhile the receiver SAP system, was upgraded from 4.6C to ECC6 (701).

So I created the new segment (ZPMACTIV_LTXT) in the source SAP (f.e. SRC) and in the receiver SAP (f.e. REC) also using WE31 transaction. In the SRC system I modified the basic type ZPMACTIV in transaction WE30.

In the REC system I could not modify the basic type, because of the new SAP version (WE30 did not allow me to cancel the release of the ZPMACTIV basic type). So I've created an extension of the ZPMACTIV, based on the basic type ZPMACTIV, and I inserted the new segment into the extended basic type ZPMACTIV.

Now this basic type loox like this, in both SRC and REC systems:

ZPMACTIV

+ZPMACTIV_HEAD_PM2SM

++ZPM_ORDERS_LTXT

++ZPMACTIV_ACT_PM2SM

+++ZPMACTIV_LTXT <<<<<<<< this is the new segment

+++ZPMACTIV_REL_PM2SM

I've sent a new IDoc from the SRC system successfully. But when it arrives to the REC system, I got the following error message (in the IDoc's status 60:

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

Message no. E0078

Diagnosis

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

This error can have several reasons:

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

The segment ZPMACTIV_LTXT does not exist in the syntax description of the basic type ZPMACTIV (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 ZPMACTIV (extension ).

What shall I do now to correct this error?

Thanx

Tamá

1 REPLY 1
Read only

Former Member
0 Likes
414

I've modified the version in the EDBAS table from 46C to 701, and then I could modify the IDoc type itself.

Thanx Tamas, you're good