<?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 read ( or)  loop stements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-or-loop-stements/m-p/4753767#M1114952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi abapers,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam select some data base  tables.&lt;/P&gt;&lt;P&gt; and  &lt;/P&gt;&lt;P&gt;select quries completed for every tables and joined by for all entries conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move the all table fields values into final table  at that time some tables contains so many no of  records based &lt;/P&gt;&lt;P&gt;on different types of conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so thats why i used read statement or loop statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please  explain some example codeing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Nov 2008 13:29:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-11T13:29:16Z</dc:date>
    <item>
      <title>read ( or)  loop stements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-or-loop-stements/m-p/4753767#M1114952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi abapers,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam select some data base  tables.&lt;/P&gt;&lt;P&gt; and  &lt;/P&gt;&lt;P&gt;select quries completed for every tables and joined by for all entries conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move the all table fields values into final table  at that time some tables contains so many no of  records based &lt;/P&gt;&lt;P&gt;on different types of conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so thats why i used read statement or loop statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please  explain some example codeing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 13:29:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-or-loop-stements/m-p/4753767#M1114952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T13:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: read ( or)  loop stements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-or-loop-stements/m-p/4753768#M1114953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a problem that you do not know which table will fetch you the maximum number of records then use the DESCRIBE command to get the number of entries in your each internal table and store them in different variables. Now you need to find out which variable is the highest amoung them (build a if elseif endif logic for that).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you find this use the DO X times ... ENDDO loop with X = Maximum value which you get from internal table which hold maximum records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read all the tables inside this Do.. Enddo loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jayant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 13:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-or-loop-stements/m-p/4753768#M1114953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T13:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: read ( or)  loop stements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-or-loop-stements/m-p/4753769#M1114954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use loop and read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at i_table into wa_i_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If you have validations with others i_tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   read i_tableb into wa_i_tableb with key key_a = wa_i_table-key_a.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   check sy-subrc is initial&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 13:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-or-loop-stements/m-p/4753769#M1114954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T13:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: read ( or)  loop stements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-or-loop-stements/m-p/4753770#M1114955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj Ram,&lt;/P&gt;&lt;P&gt;                You can do it in this way also:&lt;/P&gt;&lt;P&gt;                    Move all the entries of any of internal table to final report table and then read all other internal tables inside loop. Before &lt;STRONG&gt;ENDLOOP&lt;/STRONG&gt;  statement use &lt;STRONG&gt;modify&lt;/STRONG&gt;  statement to update the final report table. Modify statement is combination of update and insert both,if same entry will be  in final table then it will update it otherwise it will create  a new entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 13:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-or-loop-stements/m-p/4753770#M1114955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T13:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: read ( or)  loop stements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-or-loop-stements/m-p/4753771#M1114956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt; Modify statement is combination of update and insert both,if same entry will be  in final table then it will update it otherwise it will create  a new entry.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is true in case of database table, but NOT in case of internal tables... MODIFY does not create new entries in internal tables (that is done by INSERT), only changes existing ones.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 14:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-or-loop-stements/m-p/4753771#M1114956</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-11-11T14:02:34Z</dc:date>
    </item>
  </channel>
</rss>

