<?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: Read internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487738#M838596</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;&lt;U&gt;READ for any Internal Table&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reads a line of an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE &amp;lt;itab&amp;gt;  FROM &amp;lt;wa&amp;gt;&lt;/P&gt;&lt;P&gt;                  |WITH TABLE KEY &amp;lt;k1&amp;gt; = &amp;lt;f1&amp;gt;... &amp;lt;kn&amp;gt; = &amp;lt;fn&amp;gt; &lt;/P&gt;&lt;P&gt;                  |WITH KEY = &amp;lt;f&amp;gt;&lt;/P&gt;&lt;P&gt;                  |WITH KEY &amp;lt;k1&amp;gt; = &amp;lt;f1&amp;gt;... &amp;lt;kn&amp;gt; = &amp;lt;fn&amp;gt; &lt;/P&gt;&lt;P&gt;      INTO &amp;lt;wa&amp;gt; [COMPARING &amp;lt;f1&amp;gt; &amp;lt;f2&amp;gt;... |ALL FIELDS]&lt;/P&gt;&lt;P&gt;                [TRANSPORTING &amp;lt;f1&amp;gt; &amp;lt;f2&amp;gt;... |ALL FIELDS|NO FIELDS]&lt;/P&gt;&lt;P&gt;     |ASSIGNING &amp;lt;FS&amp;gt;&lt;/P&gt;&lt;P&gt;     |REFERENCE INTO &amp;lt;dref&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement reads either the line of the internal table with the same key as specified in the work area &amp;lt;wa&amp;gt;, the line with the key specified in the TABLE KEY addition, the line that corresponds fully to &amp;lt;f&amp;gt;, or the one corresponding to the freely-defined key in the KEY addition. The contents of the line are either written to the work area &amp;lt;wa&amp;gt;, or the line is assigned to the field symbol &amp;lt;FS&amp;gt;. If you assign the line to a work area, you can compare field contents and specify the fields that you want to transport.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;READ for Index Tables&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reads a line of an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE &amp;lt;itab&amp;gt; INDEX &amp;lt;idx&amp;gt;   INTO &amp;lt;wa&amp;gt;... &lt;/P&gt;&lt;P&gt;                              | ASSIGNING &amp;lt;FS&amp;gt;&lt;/P&gt;&lt;P&gt;                              | REFERENCE INTO &amp;lt;dref&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line with index 7 is read. The result is specified as with any internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;READ for Lists&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Reads the contents of a line from a list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ LINE  &amp;lt;n&amp;gt; [INDEX &amp;lt;idx&amp;gt;] [OF CURRENT PAGE|OF PAGE &amp;lt;p&amp;gt;]&lt;/P&gt;&lt;P&gt;          |CURRENT LINE&lt;/P&gt;&lt;P&gt;          [FIELD VALUE &amp;lt;f1&amp;gt; [INTO &amp;lt;g1&amp;gt;]... &amp;lt;fn&amp;gt; [INTO &amp;lt;gn&amp;gt;]].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reads either the line &amp;lt;n&amp;gt; on the current or specified list or page, or the last line to have been selected by the user. The addition specifies the fields that you want to read, and the target fields into which they should be placed. The entire line is always placed in the system field SY-LISEL, and the HIDE area is filled for the line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2008 08:57:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-28T08:57:28Z</dc:date>
    <item>
      <title>Read internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487732#M838590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have one internal table and there are 100 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used &lt;STRONG&gt;read table&lt;/STRONG&gt; command to read this table with key condition&lt;/P&gt;&lt;P&gt;when i read there are more than one records selected.&lt;/P&gt;&lt;P&gt;i want to put those records to another itab (same line type)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please help me to solve this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 08:13:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487732#M838590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T08:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487733#M838591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Nelson,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with READ TABLE you can always read only one record. If you think that more records will match your criteria, you have to use LOOP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa WHERE ...&lt;/P&gt;&lt;P&gt;APPEND wa TO itab2.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have all matching records in itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 08:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487733#M838591</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-02-28T08:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487734#M838592</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;in a LOOP AT.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use Read internal table....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read table doesn't allow ne operator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It reads only one record...Either by index or key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE MY_TAB INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE MY_TAB WITH KEY CODE = 'ATG'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these are the results for SY-SUBRC checks after read table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An entry was read. &lt;/P&gt;&lt;P&gt;SY-TABIX is set to the index of the entry. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 2: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An entry was read. &lt;/P&gt;&lt;P&gt;SY-TABIX is set to the index of the entry. This return code can only occur when you use the COMPARING addition. For further detauls, refer to the COMPARING section of the additions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 4: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No entry was read. &lt;/P&gt;&lt;P&gt;The value of SY-TABIX depends on the table type and whether the BINARY SEARCH addition was specified. &lt;/P&gt;&lt;P&gt;If the table is a SORTED TABLE or a table sorted in ascending order of the type STANDARD TABLE with the BINARY SEARCH addition, SY-TABIX refers to the next-highest index. &lt;/P&gt;&lt;P&gt;Otherwise, SY-TABIX is undefined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 8: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No entry was read. &lt;/P&gt;&lt;P&gt;This return code only occurs with a SORTED TABLE or a STANDARD TABLE with the BINARY SEARCH addition. SY-TABIX is set to the number of all entries plus 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading records with keys&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb35f8358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb35f8358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading lines with Index&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3730358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3730358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;reward if help.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 08:15:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487734#M838592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T08:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487735#M838593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nelson,&lt;/P&gt;&lt;P&gt;Unfortunately, READ TABLE api does not support this functionality.&lt;/P&gt;&lt;P&gt;To achieve this, you can use LOOP AT keyword where you can specify itab as your target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ramanath Kulkarni on Feb 28, 2008 9:19 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 08:17:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487735#M838593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T08:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487736#M838594</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;&lt;STRONG&gt;READ TABLE&lt;/STRONG&gt; is meant for reading a row and not rows.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement &lt;STRONG&gt;reads a row&lt;/STRONG&gt; from internal table itab. You have to specify the row by either naming values table_key for the table key, a free condition free_key or an index index. The latter choice is possible only for index tables. The output result result determines when and where the row contents are read. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If the row to be read is not uniquely specified&lt;/STRONG&gt;, the first suitable row is read. In the case of index tables, this row has the lowest table index of all matching rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So better use&lt;/P&gt;&lt;P&gt;loop at itab where cond&lt;/P&gt;&lt;P&gt;move-corresponding itab to new_itab&lt;/P&gt;&lt;P&gt;append new_itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 08:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487736#M838594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T08:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487737#M838595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No need to go for READ . simple use MOVE-CORRESPONDING.&lt;/P&gt;&lt;P&gt;for this you also no need to go for any loop statement.&lt;/P&gt;&lt;P&gt;syntax:&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING itab1 to itab2 with key &amp;lt;--&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 08:31:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487737#M838595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T08:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487738#M838596</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;&lt;U&gt;READ for any Internal Table&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reads a line of an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE &amp;lt;itab&amp;gt;  FROM &amp;lt;wa&amp;gt;&lt;/P&gt;&lt;P&gt;                  |WITH TABLE KEY &amp;lt;k1&amp;gt; = &amp;lt;f1&amp;gt;... &amp;lt;kn&amp;gt; = &amp;lt;fn&amp;gt; &lt;/P&gt;&lt;P&gt;                  |WITH KEY = &amp;lt;f&amp;gt;&lt;/P&gt;&lt;P&gt;                  |WITH KEY &amp;lt;k1&amp;gt; = &amp;lt;f1&amp;gt;... &amp;lt;kn&amp;gt; = &amp;lt;fn&amp;gt; &lt;/P&gt;&lt;P&gt;      INTO &amp;lt;wa&amp;gt; [COMPARING &amp;lt;f1&amp;gt; &amp;lt;f2&amp;gt;... |ALL FIELDS]&lt;/P&gt;&lt;P&gt;                [TRANSPORTING &amp;lt;f1&amp;gt; &amp;lt;f2&amp;gt;... |ALL FIELDS|NO FIELDS]&lt;/P&gt;&lt;P&gt;     |ASSIGNING &amp;lt;FS&amp;gt;&lt;/P&gt;&lt;P&gt;     |REFERENCE INTO &amp;lt;dref&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement reads either the line of the internal table with the same key as specified in the work area &amp;lt;wa&amp;gt;, the line with the key specified in the TABLE KEY addition, the line that corresponds fully to &amp;lt;f&amp;gt;, or the one corresponding to the freely-defined key in the KEY addition. The contents of the line are either written to the work area &amp;lt;wa&amp;gt;, or the line is assigned to the field symbol &amp;lt;FS&amp;gt;. If you assign the line to a work area, you can compare field contents and specify the fields that you want to transport.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;READ for Index Tables&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reads a line of an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE &amp;lt;itab&amp;gt; INDEX &amp;lt;idx&amp;gt;   INTO &amp;lt;wa&amp;gt;... &lt;/P&gt;&lt;P&gt;                              | ASSIGNING &amp;lt;FS&amp;gt;&lt;/P&gt;&lt;P&gt;                              | REFERENCE INTO &amp;lt;dref&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line with index 7 is read. The result is specified as with any internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;READ for Lists&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Reads the contents of a line from a list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ LINE  &amp;lt;n&amp;gt; [INDEX &amp;lt;idx&amp;gt;] [OF CURRENT PAGE|OF PAGE &amp;lt;p&amp;gt;]&lt;/P&gt;&lt;P&gt;          |CURRENT LINE&lt;/P&gt;&lt;P&gt;          [FIELD VALUE &amp;lt;f1&amp;gt; [INTO &amp;lt;g1&amp;gt;]... &amp;lt;fn&amp;gt; [INTO &amp;lt;gn&amp;gt;]].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reads either the line &amp;lt;n&amp;gt; on the current or specified list or page, or the last line to have been selected by the user. The addition specifies the fields that you want to read, and the target fields into which they should be placed. The entire line is always placed in the system field SY-LISEL, and the HIDE area is filled for the line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 08:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487738#M838596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T08:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487739#M838597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear its good but it hasn't been move any records &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 09:04:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487739#M838597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T09:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487740#M838598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Priyadarshani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to move more than one records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 09:07:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487740#M838598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T09:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487741#M838599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With Read U'll get only one record at a time ..&lt;/P&gt;&lt;P&gt;So go for Loop  ... endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab where field1 = &amp;lt;condition&amp;gt;...&lt;/P&gt;&lt;P&gt;   itab1 = itab.&lt;/P&gt;&lt;P&gt;   append itab1.&lt;/P&gt;&lt;P&gt;   clear itab1.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 09:15:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487741#M838599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T09:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487742#M838600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;filter the records using where clause and append the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab1 into wa_itab where &amp;lt;condition&amp;gt;.&lt;/P&gt;&lt;P&gt;apeend wa_itab to itab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 09:16:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487742#M838600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T09:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487743#M838601</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;loop at it into wa .&lt;/P&gt;&lt;P&gt; read table using  into wa conditions and set sy-tabix.&lt;/P&gt;&lt;P&gt;append wa from itab.&lt;/P&gt;&lt;P&gt;modify itab.&lt;/P&gt;&lt;P&gt;clear wa.&lt;/P&gt;&lt;P&gt;if sy-tabix &amp;gt;=100.&lt;/P&gt;&lt;P&gt; exit.&lt;/P&gt;&lt;P&gt;end if.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it into wa where sy-tabix &amp;gt; 100.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points, if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 08:38:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487743#M838601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T08:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487744#M838602</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;We cant able to fetch more thatn one record by using read statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inorder to fetch more than one record you can use if condition in loop or where condition applied to the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into w_itab.&lt;/P&gt;&lt;P&gt;if w_itab-field1 = 'xyz' and w_itab-field2 = 'xyz'.&lt;/P&gt;&lt;P&gt;append w_itab to jtab.&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;Here both itab and jtab must be of same structure.&lt;/P&gt;&lt;P&gt;Otherwise you can use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding fields of w_itab to jtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is useful for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2008 08:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487744#M838602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-10T08:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Read internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487745#M838603</link>
      <description>&lt;P&gt;The thread is rather old, but since I stubled over it while searching for the answer for this very questions, I post here how I solved it.&lt;BR /&gt;to copy parts of an internal table to another one the VALUE statement with FOR ... IN can be used:&lt;/P&gt;&lt;P&gt;lt_data_2 = value #( FOR wa in lt_data WHERE ( fieldname = &amp;lt;value&amp;gt; ) ( CORRESPONDING #( wa ) ) ).&lt;/P&gt;&lt;P&gt;The statment copies all entries from itab lt_data to itab lt_data_2 where the field "fieldname" has the content of &amp;lt;value&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 14:19:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-internal-table/m-p/3487745#M838603</guid>
      <dc:creator>lat_gmbh14</dc:creator>
      <dc:date>2023-05-02T14:19:14Z</dc:date>
    </item>
  </channel>
</rss>

