<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104151#M1706255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rudra,&lt;/P&gt;&lt;P&gt;I am using all the first 5 key feilds in where condition for VRPMA and then the no of selected records is near to ten million.&lt;/P&gt;&lt;P&gt;but i am not able to use the rest of the key fields since i dont have values for them.&lt;/P&gt;&lt;P&gt;i am in search for a function module or an alternative table in this case to avoid this select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2012 10:50:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-11-08T10:50:03Z</dc:date>
    <item>
      <title>Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104145#M1706249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the query that is present in the custom program is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SELECT a~vbeln posnr matnr werks&amp;nbsp; INTO TABLE gi_vbrp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM vbrk AS a INNER JOIN vbrp AS b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON a~vbeln = b~vbeln&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FOR ALL ENTRIES IN gi_valuetab&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE a~fkdat BETWEEN p_vdat AND p_bdat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; a~fkart IN li_fkart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; b~matnr EQ gi_valuetab-matnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; b~werks = p_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all the selected data is from vbrp table but the conditons are on vbrk table.&lt;/P&gt;&lt;P&gt;i have tried to use VRPMA table but that does not contain the field WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest any alternatives. For all entiries is fetching huge amount of data so that is even slower than the innerjoin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 09:55:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104145#M1706249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-08T09:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104146#M1706250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can separate the two select statements using FOR ALL ENTRIES or you can create a database view and use the same in your program or can opt for Function Module or BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 10:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104146#M1706250</guid>
      <dc:creator>former_member214709</dc:creator>
      <dc:date>2012-11-08T10:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104147#M1706251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to VRPMA first as it is indexed for Material using gi_valuetab-matnr, and use FKDAT and FKART also there, Then using VBELN and posnr do a select on VBRP using For all entries where you can use WERKS in the where condition. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 10:11:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104147#M1706251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-08T10:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104148#M1706252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rudra,&lt;/P&gt;&lt;P&gt;I have tried that but that reduces the performance(increases the time) as the no of records present in VRPMA is huge in the scale of nearly ten million entries for the given date range, usually the date range is for an year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 10:20:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104148#M1706252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-08T10:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104149#M1706253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Dinesh,&lt;/P&gt;&lt;P&gt;Can you suggest some function module to use in this case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 10:21:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104149#M1706253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-08T10:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104150#M1706254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to date range you have to specify the material number when selecting from VRPMA. SAP also suggest that. See the Note 185530. If you do not specify MATNR in the where clause while selecting from VRPMA then it is not going to help you. I think you can use MATNR here while selecting from VRPMA as I can see from your code. Also make sure you do not have any duplicate MATNR in gi_valuetab while using it the driver table of the for all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S : If you use material in the where clause while selecting from VRPMA and using For all entries, I am pretty sure that you wont be having 10 million records fetched. It will much less. Cause you would be getting the dump already while filling up gi_valuetab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 10:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104150#M1706254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-08T10:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104151#M1706255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rudra,&lt;/P&gt;&lt;P&gt;I am using all the first 5 key feilds in where condition for VRPMA and then the no of selected records is near to ten million.&lt;/P&gt;&lt;P&gt;but i am not able to use the rest of the key fields since i dont have values for them.&lt;/P&gt;&lt;P&gt;i am in search for a function module or an alternative table in this case to avoid this select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 10:50:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104151#M1706255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-08T10:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104152#M1706256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Bilal. Best of luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 10:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104152#M1706256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-08T10:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104153#M1706257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that you will need to take out the BETWEEN statment, make with a select options parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 11:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104153#M1706257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-08T11:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104154#M1706258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the alternative query that i have tried is &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; matnr vbeln posnr &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;INTO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;TABLE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; gi_vrpma&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; vrpma&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FOR&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;ALL&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; ENTRIES &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;IN&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; gi_valuetab&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; matnr = gi_valuetab-matnr&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; vkorg = l_vkorg&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; fkdat &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;BETWEEN&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; p_vdat &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; p_bdat&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; vtweg = &lt;/SPAN&gt;&lt;SPAN style="color: #4da619; font-size: 10pt;"&gt;'00'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; fkart &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;IN&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; li_fkart.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; gi_vrpma[] &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;IS&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;NOT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;INITIAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; vbeln posnr matnr werks &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;INTO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;TABLE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; gi_vbrp&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; vbrp&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FOR&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;ALL&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; ENTRIES &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;IN&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; gi_vrpma&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; vbeln = gi_vrpma-vbeln&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; posnr = gi_vrpma-posnr&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; matnr = gi_vrpma-matnr&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; werks = p_werks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;ENDIF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 12:06:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104154#M1706258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-08T12:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104155#M1706259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its perfectly fine , go ahead with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas You can remove the statement WHERE vtweg = '00' and use DELETE gi_vrpma IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dinesh&lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" height="1" src="https://community.sap.com/1050/images/emoticons/wink.gif" width="1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 07:26:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104155#M1706259</guid>
      <dc:creator>former_member214709</dc:creator>
      <dc:date>2012-11-09T07:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104156#M1706260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of the rules to follow: filter as soon as possible!&lt;/P&gt;&lt;P&gt;This means never remove filter criteria from WHERE clause and delete in ABAP!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 09:10:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104156#M1706260</guid>
      <dc:creator>yuri_ziryukin</dc:creator>
      <dc:date>2012-11-09T09:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104157#M1706261</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;couple of questions:&lt;/P&gt;&lt;P&gt;How many keys in the gi_valuetab table (was that 10 mio, or did I get that wrong?)&lt;/P&gt;&lt;P&gt;What is the average result of the selects below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SELECT count(*) FROM vbrk AS a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;WHERE a~fkdat BETWEEN p_vdat AND p_bdat&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;AND&amp;nbsp;&amp;nbsp; a~fkart IN li_fkart&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SELECT count(*)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FROM vbrp AS b&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;AND&amp;nbsp;&amp;nbsp; b~werks = p_werks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SELECT count(distinct MATNR)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FROM vbrp AS b&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;AND&amp;nbsp;&amp;nbsp; b~werks = p_werks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the DB type of this system?&lt;/P&gt;&lt;P&gt;If Oracle, how many blocks does each of the tables have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Volker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 09:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104157#M1706261</guid>
      <dc:creator>volker_borowski2</dc:creator>
      <dc:date>2012-11-09T09:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104158#M1706262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi volker,&lt;/P&gt;&lt;P&gt;gi_valuetab is an internal table and it has no keys.&lt;/P&gt;&lt;P&gt;but i am using sort and delete adjacent delete duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for thew first select the average result is 3 million&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for second its morethan 10 million&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for third select it is closer to 2nd select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont have much knowledge about the db systems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 10:31:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104158#M1706262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-12T10:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104159#M1706263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question was not precise. How many lines (MATNRs) do you have in GI_VALUETAB?&lt;/P&gt;&lt;P&gt;Obviously it is the numer of rows in this table that cuts down the 10 mio hits per WERKS by selected MATNRs, so this is an important number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To see the DB type, simply select Menu SYSTEM-&amp;gt;STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the statement that fills GI_VALUETAB.&lt;/P&gt;&lt;P&gt;Reason for this question is, that when filling an internal table, the only accesspath in a FAE select is usually indexdriven, which i.g. results in a so called nesteed loop join (of ABAP to DB).&lt;/P&gt;&lt;P&gt;This is architecture, it is not possible to do other joins with FAEs, beause the internal table is not part of the DB. So the join is split into multiple selects, passing keys from the internal table to the WHERE clause.&lt;/P&gt;&lt;P&gt;Now if you have a big number of rows in the internal table, the nested loop is a bad join type. So an option to change that would be to put the internal table into a DB sub-select. This gives the DB the oportunity to go for a SORT or a HASH join, esp. on Oracle DB, and if it is still bad, you might be able to go parallel on DB level.&lt;/P&gt;&lt;P&gt;If you have many rows in the internal table, it might be better to try this approach.&lt;/P&gt;&lt;P&gt;If it is just a few thousend rows it will probably not help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To decide about this, you need to know the number of rows and the number of blocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Volker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 11:01:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104159#M1706263</guid>
      <dc:creator>volker_borowski2</dc:creator>
      <dc:date>2012-11-12T11:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104160#M1706264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use the FOR ALL ENTRIES with &lt;SPAN class="L1S52"&gt;BYPASSING &lt;SPAN class="L1S52"&gt;BUFFER&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;Select * FROM XXXX &lt;SPAN class="L1S52"&gt;BYPASSING &lt;SPAN class="L1S52"&gt;BUFFER &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FOR &lt;SPAN class="L0S52"&gt;ALL&lt;/SPAN&gt; ENTRIES &lt;SPAN class="L0S52"&gt;IN YYYY&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;Where Condition.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;Let me know if there are any issues.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;SPAN class="L1S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 16:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104160#M1706264</guid>
      <dc:creator>former_member206439</dc:creator>
      <dc:date>2012-11-12T16:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104161#M1706265</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;It is a FAE which triggers a DB join (on VBRK and VBRP), &lt;/P&gt;&lt;P&gt;so how should SAP buffering be involved in this statement,&lt;/P&gt;&lt;P&gt;so that it could be of help to disable it????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did I miss anything here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Volker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 07:43:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104161#M1706265</guid>
      <dc:creator>volker_borowski2</dc:creator>
      <dc:date>2012-11-13T07:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104162#M1706266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Volker, I though you have already made some experience in SDN. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1050/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I don't even comment such "advices" because I'm still waiting for the "Dislike" button &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1050/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2012 16:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/9104162#M1706266</guid>
      <dc:creator>yuri_ziryukin</dc:creator>
      <dc:date>2012-11-14T16:00:20Z</dc:date>
    </item>
  </channel>
</rss>

