<?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 Re: Duplicating idoc segment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicating-idoc-segment/m-p/1200383#M130884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please elaborate your requirement little more? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;General Steps, Assuming that you want to insert the lines under same parent as E1EDK01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Loop through IDOC_DATA starting from E1EDK01 and traversing till the last child for that segment.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be achieved by checking that HIERLEVEL for subsequent records remain lesser than E1EDK01 heirlevel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy all the records to internal table. Store the SY-TABIX for last record. Add +1 to these value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert the new internal table records at the index value determined above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are doing this within the user exit, there is no need to RENUMBER SEGMENTS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you want to SAVE the IDOC data with new segments, You have to probably develop whole new logic that will renumber the segments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2006 19:47:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-24T19:47:27Z</dc:date>
    <item>
      <title>Duplicating idoc segment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicating-idoc-segment/m-p/1200382#M130883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to duplicate a segment and all its sub custom segments. For ex E1EDK01 has custom segments ze1edk01 . I want to create an additional E1EDK01 segment which would also contain ze1edk01. Pls help . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be awarded generously .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Alisha Albey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2006 19:18:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicating-idoc-segment/m-p/1200382#M130883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-24T19:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating idoc segment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicating-idoc-segment/m-p/1200383#M130884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please elaborate your requirement little more? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;General Steps, Assuming that you want to insert the lines under same parent as E1EDK01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Loop through IDOC_DATA starting from E1EDK01 and traversing till the last child for that segment.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be achieved by checking that HIERLEVEL for subsequent records remain lesser than E1EDK01 heirlevel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy all the records to internal table. Store the SY-TABIX for last record. Add +1 to these value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert the new internal table records at the index value determined above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are doing this within the user exit, there is no need to RENUMBER SEGMENTS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you want to SAVE the IDOC data with new segments, You have to probably develop whole new logic that will renumber the segments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2006 19:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicating-idoc-segment/m-p/1200383#M130884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-24T19:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating idoc segment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/duplicating-idoc-segment/m-p/1200384#M130885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please send me a sample code . &lt;/P&gt;&lt;P&gt;THank you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alisha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2006 19:55:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/duplicating-idoc-segment/m-p/1200384#M130885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-24T19:55:00Z</dc:date>
    </item>
  </channel>
</rss>

