<?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: Query performance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-performance/m-p/5370895#M1235570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;To avoid this type of dilemna, i would advice to use function module like C1CE_LIKP_READ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2009 04:31:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-30T04:31:15Z</dc:date>
    <item>
      <title>Query performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-performance/m-p/5370893#M1235568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;please can you tell me how to speed up the performance of a query where I used a custom field (NUMEROBOLLA) with a search coded as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;clear NUMEROBOLLA.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;select single XABLN from LIKP into NUMEROBOLLA&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where vbeln = CONSEGNA.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSEGNA is another custom field where I retrive SD Delivery number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Mar 2009 20:17:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-performance/m-p/5370893#M1235568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-29T20:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Query performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-performance/m-p/5370894#M1235569</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 you are writing the SELECT Statement in the LOOP..ENDLOOP statement then it can be a performance issue. You can this select statement outside the Loop using SELECT ..FOR ALL ENTRIES and read the table for the XABLN in the Loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 01:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-performance/m-p/5370894#M1235569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T01:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Query performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-performance/m-p/5370895#M1235570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;To avoid this type of dilemna, i would advice to use function module like C1CE_LIKP_READ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 04:31:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-performance/m-p/5370895#M1235570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T04:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Query performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-performance/m-p/5370896#M1235571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Avoid using select single in loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible try to use all the key fields in where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: c_vbeln    TYPE vbfa-vbeln      VALUE IS INITIAL,&lt;/P&gt;&lt;P&gt;     	           c_posnn 	  TYPE vbfa-posnn    VALUE IS INITIAL,&lt;/P&gt;&lt;P&gt;     	           c_vbtyp_n TYPE vbfa-vbtyp_n VALUE IS INITIAL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE1: &lt;/P&gt;&lt;P&gt;	SELECT vbelv posnv vbeln posnn vbtyp_n rfmng meins&lt;/P&gt;&lt;P&gt;  INTO TABLE i_vbfa FROM vbfa&lt;/P&gt;&lt;P&gt;  WHERE vbelv IN so_vbeln&lt;/P&gt;&lt;P&gt;  AND   posnv IN so_posnv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE2:&lt;/P&gt;&lt;P&gt;SELECT vbelv posnv vbeln posnn vbtyp_n rfmng meins&lt;/P&gt;&lt;P&gt;  INTO TABLE i_vbfa FROM vbfa&lt;/P&gt;&lt;P&gt;  WHERE vbelv   IN so_vbeln&lt;/P&gt;&lt;P&gt;  AND   posnv   IN so_posnv&lt;/P&gt;&lt;P&gt;  AND   vbeln   GE c_vbeln&lt;/P&gt;&lt;P&gt;  AND   posnn   GE c_posnn&lt;/P&gt;&lt;P&gt;  	  AND   vbtyp_n GE c_vbtyp_n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will definitely improve the performance to a considerable extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: harsh bhalla on Mar 30, 2009 1:11 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 07:41:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-performance/m-p/5370896#M1235571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T07:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Query performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-performance/m-p/5370897#M1235572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VBELN is the primary key of LIKP, so there is no problem with your query.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 10:55:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-performance/m-p/5370897#M1235572</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-03-30T10:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Query performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-performance/m-p/5370898#M1235573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You use key field in the search so this sql does not have problem.&lt;/P&gt;&lt;P&gt;But you need to check if this kind of sql is used inside the LOOP.&lt;/P&gt;&lt;P&gt;Also you need to check NUMEROBOLLA is the same type of XABLN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2009 08:30:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-performance/m-p/5370898#M1235573</guid>
      <dc:creator>former_member131774</dc:creator>
      <dc:date>2009-03-31T08:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Query performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-performance/m-p/5370899#M1235574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try to include some more conditions in where . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will provide slight improvement in performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also , if possible replace Select single from Database table to Read statement on the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 09:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-performance/m-p/5370899#M1235574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T09:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Query performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-performance/m-p/5370900#M1235575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Please try to include some more conditions in where. This will provide slight improvement in performance."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can someone say this things? Why don't you answer only if you know what you are saying? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And how can you give points to this? Please read what Thomas said ... that's your correct answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards and good luck!&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2009 09:35:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-performance/m-p/5370900#M1235575</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2009-04-04T09:35:29Z</dc:date>
    </item>
  </channel>
</rss>

