<?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 problem with query on bkpf table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001988#M956112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Try adding key fields in your select query mate like say BELNR BUKRS or GJAHR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jun 2008 04:46:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-20T04:46:13Z</dc:date>
    <item>
      <title>performance problem with query on bkpf table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001979#M956103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi good morning all ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i ahave a performance problem with a below query on bkpf table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT bukrs&lt;/P&gt;&lt;P&gt;           belnr&lt;/P&gt;&lt;P&gt;           gjahr&lt;/P&gt;&lt;P&gt;      FROM bkpf&lt;/P&gt;&lt;P&gt;      INTO TABLE ist_bkpf_temp  &lt;/P&gt;&lt;P&gt;     WHERE budat IN s_budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is ther any possibility to improve the performanece by using index .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me ,&lt;/P&gt;&lt;P&gt;thanks in advance ,&lt;/P&gt;&lt;P&gt;regards ,&lt;/P&gt;&lt;P&gt;srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 03:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001979#M956103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T03:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem with query on bkpf table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001980#M956104</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;can u add any other primary or sec key fields into the WHERE clause..like bukrs, gjahr?? BUDAT forms part of  index~2, so if u can add bukrs, if possible, it might help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 04:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001980#M956104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T04:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem with query on bkpf table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001981#M956105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The bad performance is because you're not specifying the primary keys of the table BKPF in your WHERE condition; BKPF usually is a big table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you really need is to create a new index on database for table BKPF via the ABAP Dictionary on fields BUKRS, AWKEY, GJAHR &amp;amp; BSTAT. You'll find the performace of the program will significantly increase after the new index is activated. But I would talk to the Basis first to confirm they have no issues if you create a new index for BKPF on the database system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 04:02:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001981#M956105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T04:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem with query on bkpf table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001982#M956106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.Try creating an index and use those fields in the where clause while fetching the data.Seems you are working on purchase register sort of report.&lt;/P&gt;&lt;P&gt;2.Make sure the selecting fields are in same order of the database table, and the Where condtion values also should be the same order, &lt;/P&gt;&lt;P&gt;3.use corresponding fields of statement with you select staement and check the performance .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 04:04:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001982#M956106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T04:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem with query on bkpf table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001983#M956107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5124605"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4710616"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3139495"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3957872"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 04:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001983#M956107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T04:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem with query on bkpf table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001984#M956108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vasu ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes  , but not sure , we can add company code ( Bukrs ) , if so how to do that ,&lt;/P&gt;&lt;P&gt; can u give me the code ,&lt;/P&gt;&lt;P&gt;thanks in advance ,&lt;/P&gt;&lt;P&gt;regards , &lt;/P&gt;&lt;P&gt;srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 04:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001984#M956108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T04:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem with query on bkpf table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001985#M956109</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;if u can add bukrs as input field or if u have bukrs as part of any other internal table to filter out the data u can use:&lt;/P&gt;&lt;P&gt;for ex:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT bukrs
belnr
gjahr
FROM bkpf
INTO TABLE ist_bkpf_temp 
WHERE budat IN s_budat
    and    bukrs in s_bukrs.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT bukrs
belnr
gjahr
FROM bkpf
INTO TABLE ist_bkpf_temp
for all entries in itab 
WHERE budat IN s_budat
    and bukrs = itab-bukrs.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just see , if it is possible to do any one of the above?? It has to be verified with ur requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 04:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001985#M956109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T04:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem with query on bkpf table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001986#M956110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add extra conditions to the &lt;EM&gt;where&lt;/EM&gt; clause in your &lt;EM&gt;select&lt;/EM&gt; statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 04:29:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001986#M956110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T04:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem with query on bkpf table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001987#M956111</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;BKPF always causing performance issue.Use BSIS table  Instead of BKPF &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anbulakshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 04:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001987#M956111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T04:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem with query on bkpf table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001988#M956112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Try adding key fields in your select query mate like say BELNR BUKRS or GJAHR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2008 04:46:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-query-on-bkpf-table/m-p/4001988#M956112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-20T04:46:13Z</dc:date>
    </item>
  </channel>
</rss>

