<?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: Performance during joining large tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-during-joining-large-tables/m-p/5730275#M1299788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if it_caufv is not initial.&lt;/P&gt;&lt;P&gt;select &amp;lt;fields&amp;gt; from afih into table it_afih for all entries in it_caufv where aufnr = it_caufv-aufnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if it_afih is not initial.&lt;/P&gt;&lt;P&gt;select &amp;lt;fields&amp;gt; from iloa into table it_iloa for all entries in it_afih where iloan = afih-iloan.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and like wise..&lt;/P&gt;&lt;P&gt;Try doing like this..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2009 10:38:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-27T10:38:45Z</dc:date>
    <item>
      <title>Performance during joining large tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-during-joining-large-tables/m-p/5730274#M1299787</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 to maintain a report which gets data from many large tables as below. Currently it is using join statement to join all 8 tables and causing a very slow performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT
      ...
    into corresponding fields of table equip
    FROM caufv
              join afih on afih~aufnr = caufv~aufnr
              join iloa on iloa~iloan = afih~iloan
              join iflos  on iflos~tplnr = iloa~tplnr
              join iflotx on iflos~tplnr = iflotx~tplnr
              join vbak on vbak~aufnr = caufv~aufnr
              join equz on equz~equnr = afih~equnr
              join equi on equi~equnr = equz~equnr
              join vbap on vbak~vbeln = vbap~vbeln
    WHERE
          ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me another way, I'm newbie in ABAP. I tried using FOR ALL ENTRIES IN but it did not work. I would very appreciate if you can leave me some sample lines of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 10:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-during-joining-large-tables/m-p/5730274#M1299787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T10:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Performance during joining large tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-during-joining-large-tables/m-p/5730275#M1299788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if it_caufv is not initial.&lt;/P&gt;&lt;P&gt;select &amp;lt;fields&amp;gt; from afih into table it_afih for all entries in it_caufv where aufnr = it_caufv-aufnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if it_afih is not initial.&lt;/P&gt;&lt;P&gt;select &amp;lt;fields&amp;gt; from iloa into table it_iloa for all entries in it_afih where iloan = afih-iloan.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and like wise..&lt;/P&gt;&lt;P&gt;Try doing like this..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 10:38:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-during-joining-large-tables/m-p/5730275#M1299788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T10:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Performance during joining large tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-during-joining-large-tables/m-p/5730276#M1299789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dear ,&lt;/P&gt;&lt;P&gt;I will suggest you not to use inner join for such i.e. 8 number of table and that too huge tables. Instead use For All entries wherever possible. But before using for all entries check initial for base table and if its not possible to avoid inner join then try to minimise it. Use inner join between header and item. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you to solve your problem . Feel free to ask if you have any doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 10:41:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-during-joining-large-tables/m-p/5730276#M1299789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T10:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Performance during joining large tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-during-joining-large-tables/m-p/5730277#M1299790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna and Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestions. I created a database view for some main huge tables and using FOR ALL ENTRIES IN for other tables. The performance is now quite better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2009 02:34:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-during-joining-large-tables/m-p/5730277#M1299790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-01T02:34:01Z</dc:date>
    </item>
  </channel>
</rss>

