<?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 Issue with this Join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-this-join/m-p/1679483#M299562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pankaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks for your reply, your suggestion basically involves interchanging selection tables, so this has no effect on performance metric. any ideas about enhancing/replacing joins as a whole ??&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, 01 Nov 2006 08:36:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-01T08:36:33Z</dc:date>
    <item>
      <title>Performance Issue with this Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-this-join/m-p/1679481#M299560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select distinct vbrk&lt;SUB&gt;vbeln vbrk&lt;/SUB&gt;fkart vbrk&lt;SUB&gt;vtweg vbrk&lt;/SUB&gt;knumv vbrk~fkdat&lt;/P&gt;&lt;P&gt;                  vbrk&lt;SUB&gt;kunrg vbrk&lt;/SUB&gt;sfakn vbrk~knuma&lt;/P&gt;&lt;P&gt;    into table i_vbrk&lt;/P&gt;&lt;P&gt;    from VRPMA join vbrk&lt;/P&gt;&lt;P&gt;    on   vrpma&lt;SUB&gt;vbeln = vbrk&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;    where ( vrpma&lt;SUB&gt;fkart = 'ZCB4' or vrpma&lt;/SUB&gt;fkart = 'S2' or&lt;/P&gt;&lt;P&gt;            vrpma~fkart = 'S1') &lt;/P&gt;&lt;P&gt;           and vrpma~vtweg = p_vtweg&lt;/P&gt;&lt;P&gt;           and vbrk~fkdat ge t_date&lt;/P&gt;&lt;P&gt;           and vbrk~fkdat le e_date                          &lt;/P&gt;&lt;P&gt;           and vbrk~vkorg = p_vkorg. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on enhancing the above selection as both vbrk vrpma are huge tables!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 06:09:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-this-join/m-p/1679481#M299560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-01T06:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with this Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-this-join/m-p/1679482#M299561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srikanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbrk&lt;SUB&gt;vbeln vbrk&lt;/SUB&gt;fkart vbrk&lt;SUB&gt;vtweg vbrk&lt;/SUB&gt;knumv vbrk~fkdat&lt;/P&gt;&lt;P&gt;vbrk&lt;SUB&gt;kunrg vbrk&lt;/SUB&gt;sfakn vbrk~knuma&lt;/P&gt;&lt;P&gt;into table i_vbrk&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;from VBRK join VRPMA&amp;lt;/b&amp;gt; on vbrk&lt;SUB&gt;vbeln = vrpma&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;where ( vrpma&lt;SUB&gt;fkart = 'ZCB4' or vrpma&lt;/SUB&gt;fkart = 'S2' or&lt;/P&gt;&lt;P&gt;vrpma~fkart = 'S1') &lt;/P&gt;&lt;P&gt;and vrpma~vtweg = p_vtweg&lt;/P&gt;&lt;P&gt;and vbrk~fkdat ge t_date&lt;/P&gt;&lt;P&gt;and vbrk~fkdat le e_date &lt;/P&gt;&lt;P&gt;and vbrk~vkorg = p_vkorg. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if is efficient and works by selecting appropriate data..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 07:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-this-join/m-p/1679482#M299561</guid>
      <dc:creator>messier31</dc:creator>
      <dc:date>2006-11-01T07:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with this Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-this-join/m-p/1679483#M299562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pankaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks for your reply, your suggestion basically involves interchanging selection tables, so this has no effect on performance metric. any ideas about enhancing/replacing joins as a whole ??&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, 01 Nov 2006 08:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-this-join/m-p/1679483#M299562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-01T08:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with this Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-this-join/m-p/1679484#M299563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;give a try to this piece of code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbrk&lt;SUB&gt;vbeln vbrk&lt;/SUB&gt;fkart vbrk&lt;SUB&gt;vtweg vbrk&lt;/SUB&gt;knumv vbrk~fkdat&lt;/P&gt;&lt;P&gt;vbrk&lt;SUB&gt;kunrg vbrk&lt;/SUB&gt;sfakn vbrk~knuma&lt;/P&gt;&lt;P&gt;into table i_vbrk&lt;/P&gt;&lt;P&gt;from VRPMA inner join vbrk&lt;/P&gt;&lt;P&gt;on    vrpma&lt;SUB&gt;mandt = vbrk&lt;/SUB&gt;mandt&lt;/P&gt;&lt;P&gt;and   vrpma&lt;SUB&gt;vbeln = vbrk&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;and   vrpma&lt;SUB&gt;vbeln = vbrk&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;and   vrpma&lt;SUB&gt;vkorg = vbrk&lt;/SUB&gt;vkorg&lt;/P&gt;&lt;P&gt;and   vrpma&lt;SUB&gt;fkdat = vbrk&lt;/SUB&gt;fkdat&lt;/P&gt;&lt;P&gt;and   vrpma&lt;SUB&gt;vtweg = vbrk&lt;/SUB&gt;vtweg&lt;/P&gt;&lt;P&gt;and   vrpma&lt;SUB&gt;fkart = vbrk&lt;/SUB&gt;fkart&lt;/P&gt;&lt;P&gt;and   vrpma&lt;SUB&gt;kunnr = vbrk&lt;/SUB&gt;kunrg&lt;/P&gt;&lt;P&gt;and   vrpma&lt;SUB&gt;kunag = vbrk&lt;/SUB&gt;kunag&lt;/P&gt;&lt;P&gt;and   vrpma&lt;SUB&gt;vbtyp = vbrk&lt;/SUB&gt;vbtyp&lt;/P&gt;&lt;P&gt;and   vrpma&lt;SUB&gt;ERNAM = vbrk&lt;/SUB&gt;ERNAM&lt;/P&gt;&lt;P&gt;where ( vrpma&lt;SUB&gt;fkart = 'ZCB4' or vrpma&lt;/SUB&gt;fkart = 'S2' or&lt;/P&gt;&lt;P&gt;vrpma~fkart = 'S1') &lt;/P&gt;&lt;P&gt;and vrpma~vtweg = p_vtweg&lt;/P&gt;&lt;P&gt;and vbrk~fkdat ge t_date&lt;/P&gt;&lt;P&gt;and vbrk~fkdat le e_date &lt;/P&gt;&lt;P&gt;and vbrk~vkorg = p_vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the select query&lt;/P&gt;&lt;P&gt;SORT i_vbrk by fdl1 fld2...&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from i_vbrk comparing fld1 fld2 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note: here fld1, fld2 denotes the key fields of your internal table according to which you were initially saying SELECT DISTINCT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHANE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 08:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-this-join/m-p/1679484#M299563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-01T08:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with this Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-this-join/m-p/1679485#M299564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you are selecting all the fields from VBRK and even the filters are also present in VBRK table, I really do not understand the use of VRPMA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead if you try the below query &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select distinct vbrk&lt;SUB&gt;vbeln vbrk&lt;/SUB&gt;fkart vbrk&lt;SUB&gt;vtweg vbrk&lt;/SUB&gt;knumv vbrk~fkdat&lt;/P&gt;&lt;P&gt;vbrk&lt;SUB&gt;kunrg vbrk&lt;/SUB&gt;sfakn vbrk~knuma&lt;/P&gt;&lt;P&gt;into table i_vbrk&lt;/P&gt;&lt;P&gt;from vbrk&lt;/P&gt;&lt;P&gt;where vbrk~fkart in ('ZCB4','S2','S1')&lt;/P&gt;&lt;P&gt;and vrpma~vtweg = p_vtweg&lt;/P&gt;&lt;P&gt;and vbrk~fkdat ge t_date&lt;/P&gt;&lt;P&gt;and vbrk~fkdat le e_date &lt;/P&gt;&lt;P&gt;and vbrk~vkorg = p_vkorg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 09:06:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-this-join/m-p/1679485#M299564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-01T09:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue with this Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-this-join/m-p/1679486#M299565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you just tell me whether view created based on these 2 tables can be used instead of join. Please suggest me which is more efficient with very large amount of data??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 11:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-this-join/m-p/1679486#M299565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-01T11:17:10Z</dc:date>
    </item>
  </channel>
</rss>

