<?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 Regarding loop and nested loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-and-nested-loop/m-p/3415791#M820402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Dear experts,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i have four ztables and i have maintanig relation b/w four tables&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table1&lt;/STRONG&gt; (Comp table key field is srno) and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table2&lt;/STRONG&gt; (projects table key field psno and relation field is srno)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table3&lt;/STRONG&gt; (jobs table key jsno and relation fields srno and psno)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table4(&lt;/STRONG&gt; equipment table key esno and relation fields srno,psno,jsno)&lt;/P&gt;&lt;P&gt;actually i'm developing report for these tables &lt;/P&gt;&lt;P&gt;please tell me how can i maintain loops for this report please help me i tryed in diff ways but i'm gettin problem with clear data and append data please tell me d sol otherwise i will send detailed info&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Feb 2008 08:54:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-23T08:54:17Z</dc:date>
    <item>
      <title>Regarding loop and nested loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-and-nested-loop/m-p/3415791#M820402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Dear experts,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i have four ztables and i have maintanig relation b/w four tables&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table1&lt;/STRONG&gt; (Comp table key field is srno) and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table2&lt;/STRONG&gt; (projects table key field psno and relation field is srno)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table3&lt;/STRONG&gt; (jobs table key jsno and relation fields srno and psno)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table4(&lt;/STRONG&gt; equipment table key esno and relation fields srno,psno,jsno)&lt;/P&gt;&lt;P&gt;actually i'm developing report for these tables &lt;/P&gt;&lt;P&gt;please tell me how can i maintain loops for this report please help me i tryed in diff ways but i'm gettin problem with clear data and append data please tell me d sol otherwise i will send detailed info&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2008 08:54:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-and-nested-loop/m-p/3415791#M820402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-23T08:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding loop and nested loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-and-nested-loop/m-p/3415792#M820403</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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;Dear experts,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; i have four ztables and i have maintanig relation b/w four tables&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;table1&lt;/STRONG&gt; (Comp table key field is srno) and&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;table2&lt;/STRONG&gt; (projects table key field psno and relation field is srno)&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;table3&lt;/STRONG&gt; (jobs table key jsno and relation fields srno and psno)&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;STRONG&gt;table4(&lt;/STRONG&gt; equipment table key esno and relation fields srno,psno,jsno)&lt;/P&gt;&lt;P&gt;&amp;gt; actually i'm developing report for these tables &lt;/P&gt;&lt;P&gt;&amp;gt; please tell me how can i maintain loops for this report please help me i tryed in diff ways but i'm gettin problem with clear data and append data please tell me d sol otherwise i will send detailed info&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are getting data from four database tables&lt;/P&gt;&lt;P&gt;so its best method to declare internal tables for all the four tables.&lt;/P&gt;&lt;P&gt;then you have to code selecet statements for four tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from table1 into table itab where f1 = field1.&lt;/P&gt;&lt;P&gt;select * from table2 into table jtab where f2 = field2.&lt;/P&gt;&lt;P&gt;select * from table3 into table ktab where f3 = field3.&lt;/P&gt;&lt;P&gt;select * from table4 into table ltab where f4 = field4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now code loop statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ltab.&lt;/P&gt;&lt;P&gt;read table itab with key f1 = field1.&lt;/P&gt;&lt;P&gt;read table jtab with key f2 = field2.&lt;/P&gt;&lt;P&gt;read table ktab with key f3 = field3.&lt;/P&gt;&lt;P&gt;read table ltab with key f4 = field4.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the best method to avoid multiple loop statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;swaminat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2008 09:04:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-and-nested-loop/m-p/3415792#M820403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-23T09:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding loop and nested loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-and-nested-loop/m-p/3415793#M820404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please give me ur mail id i will send u the code then suggest me the best way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2008 09:11:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-and-nested-loop/m-p/3415793#M820404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-23T09:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding loop and nested loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-and-nested-loop/m-p/3415794#M820405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[The Performance of Nested Loops|/people/rob.burbank/blog/2006/02/07/performance-of-nested-loops]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2008 21:59:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-and-nested-loop/m-p/3415794#M820405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-23T21:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding loop and nested loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-and-nested-loop/m-p/3415795#M820406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to be no easy problem, because you would need a&lt;/P&gt;&lt;P&gt;several keys for the internal tables which is not (yet) possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be aware, that an internal table does not have a key automatically, you can define the key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check which tables will be largest. How many lines do you expect for your tables? Define the most useful keys starting with the largest tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 08:58:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-and-nested-loop/m-p/3415795#M820406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T08:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding loop and nested loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-and-nested-loop/m-p/3415796#M820407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The  best solution is to use JOINS in your select query and get all the required fields baluein a single Internal Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sonal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 12:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-loop-and-nested-loop/m-p/3415796#M820407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T12:02:10Z</dc:date>
    </item>
  </channel>
</rss>

