<?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 Inserting segment E1EDL41 into IDoc type SHPMNT06 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-segment-e1edl41-into-idoc-type-shpmnt06/m-p/8496129#M1653609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have a requirement for IDOC.&lt;/P&gt;&lt;P&gt; If segment E1EDL41 with qualifier 001  is not found for a particular message type, I have to insert that segment.&lt;/P&gt;&lt;P&gt;I have added an Enhancement point in the Include' LV56KF3Q' and I am writing the code. At this point all the idoc data are in INT_EDIDD table.&lt;/P&gt;&lt;P&gt;I  can check whether E1EDL41 segment is present or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOC TYPE : SHPMNT06.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E1EDL41 is child segment for E1EDL24, and no mandatory segmnents are given .&lt;/P&gt;&lt;P&gt;E1EDL24 is the delivery item segment, hence it will repeat as many time ITEMS are present.So the child segment will also get repeated.&lt;/P&gt;&lt;P&gt;as many times parnt segment will repeat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At runtime INT_EDIDD has no Entries for fields PSGNUM, HLEVEL &amp;amp; SEGNUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me how to do so and how to find exact location as where to insert this segment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2012 11:56:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-09T11:56:43Z</dc:date>
    <item>
      <title>Inserting segment E1EDL41 into IDoc type SHPMNT06</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-segment-e1edl41-into-idoc-type-shpmnt06/m-p/8496129#M1653609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have a requirement for IDOC.&lt;/P&gt;&lt;P&gt; If segment E1EDL41 with qualifier 001  is not found for a particular message type, I have to insert that segment.&lt;/P&gt;&lt;P&gt;I have added an Enhancement point in the Include' LV56KF3Q' and I am writing the code. At this point all the idoc data are in INT_EDIDD table.&lt;/P&gt;&lt;P&gt;I  can check whether E1EDL41 segment is present or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOC TYPE : SHPMNT06.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E1EDL41 is child segment for E1EDL24, and no mandatory segmnents are given .&lt;/P&gt;&lt;P&gt;E1EDL24 is the delivery item segment, hence it will repeat as many time ITEMS are present.So the child segment will also get repeated.&lt;/P&gt;&lt;P&gt;as many times parnt segment will repeat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At runtime INT_EDIDD has no Entries for fields PSGNUM, HLEVEL &amp;amp; SEGNUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me how to do so and how to find exact location as where to insert this segment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 11:56:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-segment-e1edl41-into-idoc-type-shpmnt06/m-p/8496129#M1653609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-09T11:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting segment E1EDL41 into IDoc type SHPMNT06</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-segment-e1edl41-into-idoc-type-shpmnt06/m-p/8496130#M1653610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sha,&lt;/P&gt;&lt;P&gt;           You can not modify the idoc segment in the middle of idoc processing, it will throw an syntax error, you have to do it before the loop on IDOC data starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ_IDOC_DATA function module will give you the HLEVEL. SEGNUM is nothing but segment count, it will be equal to your sy-tabix value of a loop on idoc_data, and psgnum is the sy-tabix of your parent segment of current segment, Parent segment you will get from READ_IDOC_DATA FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Tapodipta Khan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 23:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inserting-segment-e1edl41-into-idoc-type-shpmnt06/m-p/8496130#M1653610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-09T23:04:58Z</dc:date>
    </item>
  </channel>
</rss>

