08-25-2006 3:25 PM
I have created an extension for idoc INVOIC02. I added a segment ZDISC to E1EDK18(qualf 002). In my test system, everything is working fine. But in production, it is giving a syntax error. Following is the error.
*********************************************************************************
EDI: Syntax error in IDoc (segment cannot be identified)
Message no. E0078
Diagnosis
The segment ZDISC does not occur at the current level of the basic type INVOIC02 (extension INVOICEX).
This error can have several reasons:
The segment ZDISC is assigned to a group whose header segment does not occur.
The segment ZDISC does not exist in the syntax description of the basic type INVOIC02 (extension INVOICEX).
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 INVOIC02 (extension INVOICEX).
***************************************************************************
Though , the segment E1EDK18 with qualifier is being created in the IDOC but zdisc created at zero level and not attching to the E1EDK18.
Same thing is working fine in the test system.
All the helpful answers will be rewarded.
Thanks
08-25-2006 4:04 PM
Hi,
Can you verify the IDoc Type/Message (WE82) to ensure the extension was setup/assigned?
Regards,
Ferry Lianto
08-25-2006 3:34 PM
Hi Shahnila,
Is this for outbound IDoc?
If it is then please check the partner profile (WE20) and ensure to add/have the extension specified under IDoc type tab.
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful.
08-25-2006 3:46 PM
Check the extension segment transported to the prd system.
Regards
Sridhar
08-25-2006 3:49 PM
I've already checked the partner profile. It has basic type as INVOIC02 and extention is INVOICEX.
The extension segment is transported in production.
08-25-2006 3:56 PM
Did you verify the extension is defined properly in RPD via WE30? Can you navigate to the segment definition from here as well?
What is the segment release version?
08-25-2006 4:00 PM
Yes, I checked WE30 and through segment editor navigated to WE31. Release is 620.
08-25-2006 4:01 PM
The user exit populating the extension segment might be adding it wrongly because some condition was true which didnot happen in test system.
Debug the user exit to check it's adding the segments to the idoc_data table in proper place.
REgards
Sridhar
08-25-2006 4:06 PM
I debugged user exit in both the systems and the new segment is being appended correctly.
The only thing I noticed is that the hier.level in int_edidd for all the segments is 00 at this point.
But this is true for both the systems.
08-25-2006 4:04 PM
Hi,
Can you verify the IDoc Type/Message (WE82) to ensure the extension was setup/assigned?
Regards,
Ferry Lianto
08-25-2006 4:13 PM
Yes I checked we82. Idoc basic type and extension are all linked with message type invoic. I know it is weird but i tried to check everything before posting it here. And still it is not working.
I am now double checking it with your suggestions.
08-25-2006 4:20 PM
Did you check the minimum and maximum number of times the segment being added in the user exit is with in the limits when you've defined the extension.
Regards
Sridhar
08-25-2006 4:33 PM
This segment is at header level and is just being added one time to the segment E1EDK018 when the qualf is '002'.
Min and max in the segment def. is 1 and 1.
08-25-2006 4:39 PM
Hi,
I think you have selected ZDISC as mandatory segment . this is added to optional segment : E1EDK18, if segment E1EDK18 is missing in the idoc , you will get the above error.
remove the mandatory option for the Z segment ZDISC.
Check this link , if you miss something it will give details:
http://www.intelligententerprise.com/channels/applications/feature/archive/kasturi.jhtml
Regards
Appana
08-25-2006 4:43 PM
No, It is not added as a mandatory segment. And segment E1EDK18 with qualf 002 exist in the idoc.
08-25-2006 4:57 PM
Is there a value in the 'Seg. release in IDoc type' field in the partner profile?
08-25-2006 5:01 PM
08-25-2006 5:28 PM
If there is no value then it expects the current system version. It uses this version to get the corresponding segment versions for the IDoc. In my case, we are in a basis 620 environment, so unless I explicitly state an alternative release in the partner profile, it will expect the 620 version of each segment. It doesn't sound like this is your issue.
08-25-2006 5:32 PM
No this is not. But I put the vrsion 620 there and still the same error.
08-25-2006 5:40 PM
After extension, did you do edit->set release in WE30. Idoc modules does not raise syntax error if release is not set in 4.6c but don't know in 6.20.
Regards
Sridhar
08-25-2006 5:44 PM
I did the transport again from Development system to production. Nothing appeared to be changed but it worked this time
Thanks to all of you for your replies.