<?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: Internal table data manipulation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-data-manipulation/m-p/2868169#M672882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try da code ..its working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:begin of it,&lt;/P&gt;&lt;P&gt;zch(4),&lt;/P&gt;&lt;P&gt;end of it.&lt;/P&gt;&lt;P&gt;data:itab TYPE TABLE OF it WITH HEADER LINE,itab1 TYPE TABLE OF it WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-zch = 'a'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'ab'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'abc'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'abcd'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'efg'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'efgh'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'ijk'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'ijkl'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;data count1 TYPE i.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;count1 = sy-tabix.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;data count type i.&lt;/P&gt;&lt;P&gt;count = 4.&lt;/P&gt;&lt;P&gt;LOOP at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-tabix = count and sy-tabix le count1.&lt;/P&gt;&lt;P&gt;move-CORRESPONDING itab to itab1.&lt;/P&gt;&lt;P&gt;APPEND itab1.&lt;/P&gt;&lt;P&gt;count = count + 2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;WRITE / itab1-zch.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2007 04:58:53 GMT</pubDate>
    <dc:creator>former_member188827</dc:creator>
    <dc:date>2007-10-05T04:58:53Z</dc:date>
    <item>
      <title>Internal table data manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-data-manipulation/m-p/2868166#M672879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have itab data as below:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;a&lt;/P&gt;&lt;P&gt;ab&lt;/P&gt;&lt;P&gt;abc&lt;/P&gt;&lt;P&gt;abcd----need to pass this line to another itab&lt;/P&gt;&lt;P&gt;efg&lt;/P&gt;&lt;P&gt;efgh----need to pass this line to another itab&lt;/P&gt;&lt;P&gt;ijk&lt;/P&gt;&lt;P&gt;ijkl----need to pass this line to another itab&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;First i need to pass 4th line data to another itab and subsequest second line values need to pass to another itab.&lt;/P&gt;&lt;P&gt;How to do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 04:42:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-data-manipulation/m-p/2868166#M672879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T04:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table data manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-data-manipulation/m-p/2868167#M672880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;types:begin of it,&lt;/P&gt;&lt;P&gt;  zch(4),&lt;/P&gt;&lt;P&gt;end of it.&lt;/P&gt;&lt;P&gt;  data:itab TYPE TABLE OF it WITH HEADER LINE,itab1 TYPE TABLE OF it WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  itab-zch = 'a'.&lt;/P&gt;&lt;P&gt;  APPEND itab.&lt;/P&gt;&lt;P&gt; itab-zch = 'ab'.&lt;/P&gt;&lt;P&gt; APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'abc'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'abcd'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'efg'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'efgh'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'ijk'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'ijkl'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;data count1 TYPE i.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt; count1 = sy-tabix.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;data count type i.&lt;/P&gt;&lt;P&gt;count = 4.&lt;/P&gt;&lt;P&gt;LOOP at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if sy-tabix = count and sy-tabix le count1.&lt;/P&gt;&lt;P&gt;   move-CORRESPONDING itab to itab1.&lt;/P&gt;&lt;P&gt;   APPEND itab1.&lt;/P&gt;&lt;P&gt;   count = count + 2.&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;  WRITE / itab1-zch.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        abapuser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 04:46:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-data-manipulation/m-p/2868167#M672880</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-10-05T04:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table data manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-data-manipulation/m-p/2868168#M672881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;If it is always a record which is having 4 char then&lt;/P&gt;&lt;P&gt;we can use the STRLEN  fun and then move into another itab.&lt;/P&gt;&lt;P&gt;data v_len type i.&lt;/P&gt;&lt;P&gt;loop at ITAB.&lt;/P&gt;&lt;P&gt; v_len = STRLEN( itab-field )&lt;/P&gt;&lt;P&gt; if v_len  = 4.&lt;/P&gt;&lt;P&gt;  itab1-field = itab-field.&lt;/P&gt;&lt;P&gt;append itab1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;clear itab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there should be some distinction for that record which has to be moved to other int table , based on that condition we can move it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 04:51:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-data-manipulation/m-p/2868168#M672881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T04:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table data manipulation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-data-manipulation/m-p/2868169#M672882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try da code ..its working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types:begin of it,&lt;/P&gt;&lt;P&gt;zch(4),&lt;/P&gt;&lt;P&gt;end of it.&lt;/P&gt;&lt;P&gt;data:itab TYPE TABLE OF it WITH HEADER LINE,itab1 TYPE TABLE OF it WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-zch = 'a'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'ab'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'abc'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'abcd'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'efg'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'efgh'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'ijk'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;itab-zch = 'ijkl'.&lt;/P&gt;&lt;P&gt;APPEND itab.&lt;/P&gt;&lt;P&gt;data count1 TYPE i.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;count1 = sy-tabix.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;data count type i.&lt;/P&gt;&lt;P&gt;count = 4.&lt;/P&gt;&lt;P&gt;LOOP at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-tabix = count and sy-tabix le count1.&lt;/P&gt;&lt;P&gt;move-CORRESPONDING itab to itab1.&lt;/P&gt;&lt;P&gt;APPEND itab1.&lt;/P&gt;&lt;P&gt;count = count + 2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;WRITE / itab1-zch.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 04:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-data-manipulation/m-p/2868169#M672882</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-10-05T04:58:53Z</dc:date>
    </item>
  </channel>
</rss>

