<?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 internal table manipulation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/7473197#M1555361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the idoc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E1SEG      NAME1&lt;/P&gt;&lt;P&gt;E2SEG        0&lt;/P&gt;&lt;P&gt;E3SEG      NAME2&lt;/P&gt;&lt;P&gt;E4SEG        10&lt;/P&gt;&lt;P&gt;E5SEG      NAME3&lt;/P&gt;&lt;P&gt;E6SEG        20&lt;/P&gt;&lt;P&gt;E7SEG      NAME4&lt;/P&gt;&lt;P&gt;E8SEG        50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOW I Need to move the number up....it should be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E1SEG      NAME1&lt;/P&gt;&lt;P&gt;E2SEG        10&lt;/P&gt;&lt;P&gt;E3SEG      NAME2&lt;/P&gt;&lt;P&gt;E4SEG        20&lt;/P&gt;&lt;P&gt;E5SEG      NAME3&lt;/P&gt;&lt;P&gt;E6SEG        50&lt;/P&gt;&lt;P&gt;E7SEG      NAME4&lt;/P&gt;&lt;P&gt;E8SEG        0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i code this for an internal table ?&lt;/P&gt;&lt;P&gt;kindly help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: JaiKarthik on Dec 20, 2010 10:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Dec 2010 21:49:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-20T21:49:37Z</dc:date>
    <item>
      <title>internal table manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/7473197#M1555361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the idoc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E1SEG      NAME1&lt;/P&gt;&lt;P&gt;E2SEG        0&lt;/P&gt;&lt;P&gt;E3SEG      NAME2&lt;/P&gt;&lt;P&gt;E4SEG        10&lt;/P&gt;&lt;P&gt;E5SEG      NAME3&lt;/P&gt;&lt;P&gt;E6SEG        20&lt;/P&gt;&lt;P&gt;E7SEG      NAME4&lt;/P&gt;&lt;P&gt;E8SEG        50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOW I Need to move the number up....it should be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E1SEG      NAME1&lt;/P&gt;&lt;P&gt;E2SEG        10&lt;/P&gt;&lt;P&gt;E3SEG      NAME2&lt;/P&gt;&lt;P&gt;E4SEG        20&lt;/P&gt;&lt;P&gt;E5SEG      NAME3&lt;/P&gt;&lt;P&gt;E6SEG        50&lt;/P&gt;&lt;P&gt;E7SEG      NAME4&lt;/P&gt;&lt;P&gt;E8SEG        0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i code this for an internal table ?&lt;/P&gt;&lt;P&gt;kindly help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: JaiKarthik on Dec 20, 2010 10:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 21:49:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/7473197#M1555361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-20T21:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: internal table manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/7473198#M1555362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are several possible ways to create the necessary code. It depends also on the structure of your internal table and if there is a general rule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the symbolic code as my personal christamas present for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab assigning &amp;lt;sourceval&amp;gt;.
  case &amp;lt;sourceval&amp;gt;-segment.
    when 'E4SEG
      or 'E6SEG
      or 'E8SEG.
    lv_tabix = sy-tabix - 2.
    read table itab assigning &amp;lt;target&amp;gt; index lv_tabix.
    &amp;lt;target&amp;gt;-value = &amp;lt;sourceval&amp;gt;-value.
    clear &amp;lt;sourceval&amp;gt;-value.
  endcase.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Dec 2010 22:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-manipulation/m-p/7473198#M1555362</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-12-20T22:17:56Z</dc:date>
    </item>
  </channel>
</rss>

