<?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 reading data from an internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-an-internal-table/m-p/4114834#M983763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table with 4 columns and the second column has values like shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to loop throught this table and take the values starting from first D to next D ( i.e., D, 1,2,3 ) into another internal table and do some processing. Next time i want to take D,1,2,3,4 into the same internal table and next time D,1,2,3,4,5 into that internal table. how do i do this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Jul 2008 07:51:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-01T07:51:48Z</dc:date>
    <item>
      <title>reading data from an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-an-internal-table/m-p/4114834#M983763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table with 4 columns and the second column has values like shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to loop throught this table and take the values starting from first D to next D ( i.e., D, 1,2,3 ) into another internal table and do some processing. Next time i want to take D,1,2,3,4 into the same internal table and next time D,1,2,3,4,5 into that internal table. how do i do this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;sankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 07:51:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-an-internal-table/m-p/4114834#M983763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T07:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: reading data from an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-an-internal-table/m-p/4114835#M983764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT wt_table1 INTO wa_table1.
  IF wa_table1-field = 'D'.
    IF wt_table2 IS NOT INITIAL.
      PERFORM f_do_something TABLES wt_table2.
      REFRESH wt_table2.
    ENDIF.
    APPEND wa_table1 TO wt_table2.
  ELSE.
    IF wt_table2 IS NOT INITIAL.
      APPEND wa_table1 TO wt_table2.
    ENDIF.
  ENDIF.
ENDLOOP.
IF wt_table2 IS NOT INITIAL.
  PERFORM f_do_something TABLES wt_table2.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 08:00:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-an-internal-table/m-p/4114835#M983764</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2008-07-01T08:00:18Z</dc:date>
    </item>
  </channel>
</rss>

