<?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: using 'read table' command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-table-command/m-p/2132662#M448426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case, you should use the LOOP statement with a WHERE clause  instead of the read statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab where k1 = v1.

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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2007 12:58:11 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-04-02T12:58:11Z</dc:date>
    <item>
      <title>using 'read table' command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-table-command/m-p/2132660#M448424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to read more than one record that matches with the key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab with key k1 = v1 ........................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cnu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 12:53:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-table-command/m-p/2132660#M448424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T12:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: using 'read table' command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-table-command/m-p/2132661#M448425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if more than 1 record matches then we can't use READ tsatement instead we need to use LOOP statement....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab1.&lt;/P&gt;&lt;P&gt;  Loop at itab2 where key1 = itab1-key1.&lt;/P&gt;&lt;P&gt;    &amp;lt;do ur statements&amp;gt;.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 12:58:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-table-command/m-p/2132661#M448425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T12:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: using 'read table' command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-table-command/m-p/2132662#M448426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case, you should use the LOOP statement with a WHERE clause  instead of the read statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab where k1 = v1.

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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 12:58:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-table-command/m-p/2132662#M448426</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-02T12:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: using 'read table' command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-table-command/m-p/2132663#M448427</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;for more than one record,&lt;/P&gt;&lt;P&gt;u have to loop through the table. and u can add where condition to the loop statement to restrict entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 13:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-table-command/m-p/2132663#M448427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T13:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: using 'read table' command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-table-command/m-p/2132664#M448428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or if conditions are more complex, you can exit the loop for the records you don't want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if tab-field1 cs 'A'.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  do some stuff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 15:14:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-read-table-command/m-p/2132664#M448428</guid>
      <dc:creator>johndeconinck</dc:creator>
      <dc:date>2007-04-02T15:14:33Z</dc:date>
    </item>
  </channel>
</rss>

