<?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: replacing selects with join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310254#M1027496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in some cases Selects on Views will be useful. your select is combination of join and for all entries. so it will not be that performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2008 19:00:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-30T19:00:32Z</dc:date>
    <item>
      <title>replacing selects with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310249#M1027491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT vbeln&lt;/P&gt;&lt;P&gt;           kunnr&lt;/P&gt;&lt;P&gt;           FROM vbpa&lt;/P&gt;&lt;P&gt;           INTO TABLE l_i_vbpa&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN i_kna1&lt;/P&gt;&lt;P&gt;          WHERE kunnr EQ i_kna1-kunnr.&lt;/P&gt;&lt;P&gt;      IF NOT l_i_vbpa[] IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Fetch the Credit checks.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        SELECT vbeln&lt;/P&gt;&lt;P&gt;               gbstk&lt;/P&gt;&lt;P&gt;               cmgst&lt;/P&gt;&lt;P&gt;               FROM vbuk&lt;/P&gt;&lt;P&gt;               INTO TABLE l_i_vbuk&lt;/P&gt;&lt;P&gt;               FOR ALL ENTRIES IN l_i_vbpa&lt;/P&gt;&lt;P&gt;              WHERE vbeln EQ l_i_vbpa-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT a~vbeln&lt;/P&gt;&lt;P&gt;           a~kunnr&lt;/P&gt;&lt;P&gt;           b~gbstk&lt;/P&gt;&lt;P&gt;           b~cmgst&lt;/P&gt;&lt;P&gt;           from vbpa as a inner join vbuk as b &lt;/P&gt;&lt;P&gt;           on a&lt;SUB&gt;vbeln eq b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;           INTO TABLE &lt;STRONG&gt;ITAB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN i_kna1&lt;/P&gt;&lt;P&gt;          WHERE kunnr EQ i_kna1-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a correct statement.&lt;/P&gt;&lt;P&gt;Pl let me know if any changes req.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 18:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310249#M1027491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T18:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: replacing selects with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310250#M1027492</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; Check if the table is empty or not for each select ...It is always better to use for all entries as two different selects as yours than using joins ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if not i_kna1[] is initial.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SELECT a~vbeln&lt;/P&gt;&lt;P&gt;a~kunnr&lt;/P&gt;&lt;P&gt;b~gbstk&lt;/P&gt;&lt;P&gt;b~cmgst&lt;/P&gt;&lt;P&gt;from vbpa as a inner join vbuk as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;vbeln eq b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;INTO TABLE ITAB&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN i_kna1&lt;/P&gt;&lt;P&gt;WHERE kunnr EQ i_kna1-kunnr.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;endif.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 18:50:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310250#M1027492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T18:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: replacing selects with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310251#M1027493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT a~vbeln&lt;/P&gt;&lt;P&gt;a~kunnr&lt;/P&gt;&lt;P&gt;b~gbstk&lt;/P&gt;&lt;P&gt;b~cmgst&lt;/P&gt;&lt;P&gt;from vbpa as a inner join vbuk as b &lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;vbeln eq b&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;INTO TABLE ITAB&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN i_kna1&lt;/P&gt;&lt;P&gt;WHERE &lt;STRONG&gt;a~&lt;/STRONG&gt;kunnr EQ i_kna1-kunnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 18:52:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310251#M1027493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T18:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: replacing selects with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310252#M1027494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHERE &lt;STRONG&gt;a~&lt;/STRONG&gt;kunnr EQ i_kna1-kunnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 18:53:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310252#M1027494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T18:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: replacing selects with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310253#M1027495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santhosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for that advise.&lt;/P&gt;&lt;P&gt;But am tuning a report that is running for almost 130hrs in background.Hence am replacing lot many selects with joins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it a good way 2 replace selects in view of tuning by replacing those couple of selects which i posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 18:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310253#M1027495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T18:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: replacing selects with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310254#M1027496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in some cases Selects on Views will be useful. your select is combination of join and for all entries. so it will not be that performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 19:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310254#M1027496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T19:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: replacing selects with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310255#M1027497</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;Here i would advise you to make use of the entire key in both the separate selects than using joins as joins always affect performance .... when using the individual select you can even sort the table and delete the adjacent duplicate entries comparing fields.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 19:01:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310255#M1027497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T19:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: replacing selects with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310256#M1027498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No - your problem is not with JOINs. It is because the first SELECT does not use an index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 19:02:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310256#M1027498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T19:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: replacing selects with join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310257#M1027499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly.&lt;/P&gt;&lt;P&gt;I was worrying about that only.&lt;/P&gt;&lt;P&gt;And I am also thinking, if my i replace them with a join, am i going to worsen the situation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 19:22:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replacing-selects-with-join/m-p/4310257#M1027499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T19:22:37Z</dc:date>
    </item>
  </channel>
</rss>

