<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic EDI: Syntax error in IDoc (segment cannot be identified) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/edi-syntax-error-in-idoc-segment-cannot-be-identified/m-p/8961863#M1694983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have an existing custom program, which populate all the segment values for an &lt;STRONG&gt;Inbound IDoc&lt;/STRONG&gt; and call the IDoc function module to create the data through IDoc. My requirement was to extend the IDoc ( say : msg type SHPCON, basic type : DELVRY03 ) and populate those fields in the segment, no further process with those data. I have done the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) WE31 --&amp;gt; Created the new segment&lt;/P&gt;&lt;P&gt;2) WE30 --&amp;gt; Extended the basic type (DELVRY03) and released.&lt;/P&gt;&lt;P&gt;3) WE57 --&amp;gt; Created new entry for this extension.&lt;/P&gt;&lt;P&gt;4) WE82 --&amp;gt; Assigned extension to the msg and basic types.&lt;/P&gt;&lt;P&gt;5) Within the program, located the place where all other segments are getting populated. Populated our custom segment with same process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when we are executing the program, the following error is coming in the IDoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=================================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;EDI: Syntax error in IDoc (segment cannot be identified)&lt;/H3&gt;&lt;P&gt;Message no. E0078&lt;/P&gt;&lt;H3&gt;Diagnosis&lt;/H3&gt;&lt;P&gt;The segment ZFILE_INFO does not occur at the current level of the basic type DELVRY03 (extension ).&lt;/P&gt;&lt;P&gt;This error can have several reasons:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The segment ZFILE_INFO is assigned to a group whose header segment does not occur.&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;The segment ZFILE_INFO does not exist in the syntax description of the basic type DELVRY03 (extension ).&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;The sequence of segments in the group in which the segment appears is incorrect.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Previous errors ('mandatory' segment or group missing) may be due to this error.&lt;/P&gt;&lt;H3&gt;Procedure&lt;/H3&gt;&lt;P&gt;Please check the &lt;A&gt;&lt;STRONG&gt;IDoc&lt;/STRONG&gt;&lt;/A&gt; or the syntax description of the basic type DELVRY03 (extension ).&lt;/P&gt;&lt;P&gt;=======================================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please check the attachment for more details of the issue.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2012 08:08:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-08-10T08:08:11Z</dc:date>
    <item>
      <title>EDI: Syntax error in IDoc (segment cannot be identified)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edi-syntax-error-in-idoc-segment-cannot-be-identified/m-p/8961863#M1694983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have an existing custom program, which populate all the segment values for an &lt;STRONG&gt;Inbound IDoc&lt;/STRONG&gt; and call the IDoc function module to create the data through IDoc. My requirement was to extend the IDoc ( say : msg type SHPCON, basic type : DELVRY03 ) and populate those fields in the segment, no further process with those data. I have done the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) WE31 --&amp;gt; Created the new segment&lt;/P&gt;&lt;P&gt;2) WE30 --&amp;gt; Extended the basic type (DELVRY03) and released.&lt;/P&gt;&lt;P&gt;3) WE57 --&amp;gt; Created new entry for this extension.&lt;/P&gt;&lt;P&gt;4) WE82 --&amp;gt; Assigned extension to the msg and basic types.&lt;/P&gt;&lt;P&gt;5) Within the program, located the place where all other segments are getting populated. Populated our custom segment with same process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when we are executing the program, the following error is coming in the IDoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=================================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;EDI: Syntax error in IDoc (segment cannot be identified)&lt;/H3&gt;&lt;P&gt;Message no. E0078&lt;/P&gt;&lt;H3&gt;Diagnosis&lt;/H3&gt;&lt;P&gt;The segment ZFILE_INFO does not occur at the current level of the basic type DELVRY03 (extension ).&lt;/P&gt;&lt;P&gt;This error can have several reasons:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The segment ZFILE_INFO is assigned to a group whose header segment does not occur.&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;The segment ZFILE_INFO does not exist in the syntax description of the basic type DELVRY03 (extension ).&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;The sequence of segments in the group in which the segment appears is incorrect.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Previous errors ('mandatory' segment or group missing) may be due to this error.&lt;/P&gt;&lt;H3&gt;Procedure&lt;/H3&gt;&lt;P&gt;Please check the &lt;A&gt;&lt;STRONG&gt;IDoc&lt;/STRONG&gt;&lt;/A&gt; or the syntax description of the basic type DELVRY03 (extension ).&lt;/P&gt;&lt;P&gt;=======================================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please check the attachment for more details of the issue.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 08:08:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edi-syntax-error-in-idoc-segment-cannot-be-identified/m-p/8961863#M1694983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-10T08:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: EDI: Syntax error in IDoc (segment cannot be identified)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edi-syntax-error-in-idoc-segment-cannot-be-identified/m-p/8961864#M1694984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) The screen shot for WE30 show that your extension is called DELVRY03 and not ZDEL03 which is what you have configured in most places. You need to sort out which is which.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) The screen shot from WE05/WE02 shows that the IDOC you have created is only based on the basic type DELVRY03. It should be created based on the basic type DELVRY03 and your new extension (DELVRY03 or ZDEL03). When calling the IDOC creation function module make sure that you fill the extension idoc field EDIDC-CIMTYP = your new extension (DELVRY03 or ZDEL03).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now the inbound IDOC cannot be parsed as SAP is trying to use basic type DELVRY03 and cannot find your new extension segment. Once you sort out the above the IDOC will be able to be parsed successfully based on the definition of the basic type + extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Che&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 10:11:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edi-syntax-error-in-idoc-segment-cannot-be-identified/m-p/8961864#M1694984</guid>
      <dc:creator>che_eky</dc:creator>
      <dc:date>2012-08-10T10:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: EDI: Syntax error in IDoc (segment cannot be identified)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edi-syntax-error-in-idoc-segment-cannot-be-identified/m-p/8961865#M1694985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sorry that was a copy-paste mistake. It would be ZDEL03 only. However, the point you have mentioned, is absolutely&amp;nbsp; correct. I missed that EDIDC field. After populating, now its working perfectly.&lt;/P&gt;&lt;P&gt;Thanks a lotttt...&amp;nbsp; &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/910/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 09:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edi-syntax-error-in-idoc-segment-cannot-be-identified/m-p/8961865#M1694985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-16T09:14:16Z</dc:date>
    </item>
  </channel>
</rss>

