<?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: which one is better performance between loop and select query. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-one-is-better-performance-between-loop-and-select-query/m-p/423173#M11650</link>
    <description>&lt;P&gt;There is an index with XBLNR but it also require BUKRS and BSTAT. Check with functional if you are able to provide those values too. Also I'm surprised you don't already use BUKRS field.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2017 09:50:19 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2017-03-06T09:50:19Z</dc:date>
    <item>
      <title>which one is better performance between loop and select query.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-one-is-better-performance-between-loop-and-select-query/m-p/423171#M11648</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I have a question for ABAPER, in my program fetching data from BKPF table based on input fields BELNR, GJAHR and XBLNR. Here XBLNR is a non primary key field, so when data volume is huge system giving dump at BKPF table select query. Anyone can help on this whether i need to create secondary index for BKPF table or I need to fetch data based on BELNR and GJAHR then in loop i will filter by xblnr.&lt;/P&gt;&lt;P&gt;Which one is better performance.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pradeep.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2017 17:05:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-one-is-better-performance-between-loop-and-select-query/m-p/423171#M11648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-03-04T17:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: which one is better performance between loop and select query.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-one-is-better-performance-between-loop-and-select-query/m-p/423172#M11649</link>
      <description>&lt;P&gt;You should look into creating a secondary index if it is not already in place.&lt;/P&gt;&lt;P&gt;Check with your BASIS-team and perhaps do some tests around this ...&lt;/P&gt;&lt;P&gt;I see a lot of SAP-KBA's with regard to the use of (secondary) indexes on table 'BKPF' in SAP-Standard FunctionModules. So if SAP-Stdrd makes use of it, it is worth checking this out for your own Development as well.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 08:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-one-is-better-performance-between-loop-and-select-query/m-p/423172#M11649</guid>
      <dc:creator>NTeunckens</dc:creator>
      <dc:date>2017-03-06T08:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: which one is better performance between loop and select query.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-one-is-better-performance-between-loop-and-select-query/m-p/423173#M11650</link>
      <description>&lt;P&gt;There is an index with XBLNR but it also require BUKRS and BSTAT. Check with functional if you are able to provide those values too. Also I'm surprised you don't already use BUKRS field.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 09:50:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-one-is-better-performance-between-loop-and-select-query/m-p/423173#M11650</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-03-06T09:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: which one is better performance between loop and select query.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-one-is-better-performance-between-loop-and-select-query/m-p/423174#M11651</link>
      <description>&lt;P&gt;What am I missing here...&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;You state that you are getting back so much data with  BELNR, GJAHR and XBLNR - that your program dumps on the selection - &lt;EM&gt;What is the dump? For volume or time?&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Now you want to get rid of XBLNR -&amp;gt; You do realize that will only return more data, right? How is that going to help?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;An ABAP loop after bringing all the data over to the application server will never be as efficient as even letting the database server work on un-indexed data. That said, as Raymond said - there is an index - figure out how to use it!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 13:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-one-is-better-performance-between-loop-and-select-query/m-p/423174#M11651</guid>
      <dc:creator>raghug</dc:creator>
      <dc:date>2017-03-06T13:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: which one is better performance between loop and select query.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/which-one-is-better-performance-between-loop-and-select-query/m-p/423175#M11652</link>
      <description>&lt;P&gt;Use all the three Key fields "BUKRS", BELNR" and "GJAHR" to fetch data from BKPF. &lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 16:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/which-one-is-better-performance-between-loop-and-select-query/m-p/423175#M11652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-03-06T16:24:22Z</dc:date>
    </item>
  </channel>
</rss>

