<?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: Lack Performance when select from GLPCA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808430#M1468602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all replied!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear Vinod,&lt;/P&gt;&lt;P&gt;  I don't have RPRCTR at this point as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear Short Dump,&lt;/P&gt;&lt;P&gt;  May I know why client specified by sy-mandy is meaningless here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear Rob,&lt;/P&gt;&lt;P&gt;  Can you explain? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear Clemens,&lt;/P&gt;&lt;P&gt;  Is there no other way to get fast access without GL_SIRID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Apr 2010 15:46:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-04T15:46:34Z</dc:date>
    <item>
      <title>Lack Performance when select from GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808425#M1468597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following select statement from table GLPCA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT RLDNR RRCTY RVERS RYEAR RTCUR DRCRK&lt;/P&gt;&lt;P&gt;           RBUKRS RPRCTR KOKRS RACCT TSL HSL&lt;/P&gt;&lt;P&gt;        INTO TABLE GT_GLPCA&lt;/P&gt;&lt;P&gt;        FROM GLPCA CLIENT SPECIFIED&lt;/P&gt;&lt;P&gt;        WHERE RCLNT EQ SY-MANDT&lt;/P&gt;&lt;P&gt;        AND   RLDNR EQ CC_C8A&lt;/P&gt;&lt;P&gt;        AND   RRCTY IN S_RRCTY&lt;/P&gt;&lt;P&gt;        AND   RVERS IN S_RVERS&lt;/P&gt;&lt;P&gt;        AND   RYEAR  EQ JAHR&lt;/P&gt;&lt;P&gt;        AND   POPER  EQ MONAT&lt;/P&gt;&lt;P&gt;        AND   RBUKRS EQ SKB1-BUKRS&lt;/P&gt;&lt;P&gt;        AND   KOKRS EQ CC_CUOBM&lt;/P&gt;&lt;P&gt;        AND   RACCT  EQ SKB1-SAKNR&lt;/P&gt;&lt;P&gt;        AND HSL NE '0'&lt;/P&gt;&lt;P&gt;        AND TSL NE '0'&lt;/P&gt;&lt;P&gt;        AND   BUDAT IN S_BUDAT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this select query took really long time to retrieving the data for only 1 GL account.&lt;/P&gt;&lt;P&gt;I don't have key GL_SIRID at this point.&lt;/P&gt;&lt;P&gt;May I know is there any way I can enhance the performance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===================================&lt;/P&gt;&lt;P&gt;Please assume data as below:&lt;/P&gt;&lt;P&gt;CC_C8A    is constant '8A'.&lt;/P&gt;&lt;P&gt;S_RRCTY  is '0'.&lt;/P&gt;&lt;P&gt;S_RVERS  is '0'&lt;/P&gt;&lt;P&gt;JAHR          is '2009'&lt;/P&gt;&lt;P&gt;MONAT      is '12'&lt;/P&gt;&lt;P&gt;SKB1-BUKRS  and SKB1-SAKNR are taking from logical database GET SKB1 (only 1 GL).&lt;/P&gt;&lt;P&gt;CC_CUOBM is constant 'UOBM'&lt;/P&gt;&lt;P&gt;S_BUDAT1 is from 01.12.2009 to 20.12.2009&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone may help! Thank you very much!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Apr 2010 10:15:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808425#M1468597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-02T10:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Lack Performance when select from GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808426#M1468598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are having the value for field "RPRCTR", then use the sequence mentioned in the index "GLPCA~1"(KOKRS,RYEAR,RPRCTR,RVERS,RACCT) in your where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filter out the unwanted records from your internal table after the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Apr 2010 10:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808426#M1468598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-02T10:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lack Performance when select from GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808427#M1468599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use of NOT operators (NE) assure a FULL TABLE SCAN....don't use NE in where clauses.  Client-specified is meaningless if you're selecting with sy-mandt....remove that...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Apr 2010 11:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808427#M1468599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-02T11:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Lack Performance when select from GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808428#M1468600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Use of NOT operators (NE) assure a FULL TABLE SCAN....don't use NE in where clauses...&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;That's incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Apr 2010 17:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808428#M1468600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-02T17:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Lack Performance when select from GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808429#M1468601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chuan Ng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have lots of documents in this table. Try to get possible GL_SIRIDs first so that you can make use of the primary index of the table. In the where-used list of the referenced data element GU_RECID shows a lot of tables, try to get faster access by selecting firrst from there and selecting from GLPCA with FOR ALL ENTRIES IN &amp;lt;itab with GL_SIRIDs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible table to select from first&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;COFIP                            Single plan items for reconciliation ledger
COFIS                            Actual line items for reconciliation ledger
ECMCA                            SAP Cons.: Journal Entry Table (Actual)
FBICRC001A                       ICRC: Open Items GL Accounts: Documents&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;... or check the where-used-list what else may help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Apr 2010 18:21:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808429#M1468601</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-04-02T18:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lack Performance when select from GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808430#M1468602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all replied!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear Vinod,&lt;/P&gt;&lt;P&gt;  I don't have RPRCTR at this point as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear Short Dump,&lt;/P&gt;&lt;P&gt;  May I know why client specified by sy-mandy is meaningless here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear Rob,&lt;/P&gt;&lt;P&gt;  Can you explain? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear Clemens,&lt;/P&gt;&lt;P&gt;  Is there no other way to get fast access without GL_SIRID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Apr 2010 15:46:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808430#M1468602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-04T15:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Lack Performance when select from GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808431#M1468603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chuan Ng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;although you did not ask me for that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CLIENT SPECIFIED WHERE RCLNT EQ SY-MANDT .. CLIENT SPECIFIED&lt;/EM&gt; is &lt;EM&gt;always&lt;/EM&gt; meaningless because without the addition &lt;EM&gt;CLIENT SPECIFIED&lt;/EM&gt; the select will always done from the current SY-MANDT. Some SAP centuries ago, some developers believed they could do a favor to the database by explicitly specifying what the database interface would do anyway. Others used this to confuse the spies that stole the software &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second, more important question, the &lt;EM&gt;way to get fast access&lt;/EM&gt;: If you don't get the primary key GL_SIRID value, you may be able to use one of the secondary keys (find in SE11/12 utilities -&amp;gt; database object -&amp;gt; display, scroll down)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Index GLPCA~1 
KOKRS 
RYEAR 
RPRCTR 
RVERS 
RACCT 

Unique index GLPCA~2 
DOCNR 
RYEAR 
DOCCT 
RBUKRS 
RLDNR 
RCLNT 
DOCLN 

Index GLPCA~3 
REFDOCNR 
REFRYEAR 
REFDOCCT 
RBUKRS 
RLDNR 
REFDOCLN 
RCLNT 

Index GLPCA~7 
RHOART 
KOKRS 
RYEAR 
ACTIV 
POPER&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: You must specify at least a condition for the first field of any index so that the databse can make use of it. The more fields of the index you specify, the better the access, but it must always be complete starting from first field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your SELECT, you use all fields of secondary index #1, only RPRCTR is missing. OK, you &lt;STRONG&gt;must&lt;/STRONG&gt; specify distinct values in the SELECT-OPTIONS. If you leave index fields blank, the index can not be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm convinced if you specify values for all fields KOKRS RYEAR RPRCTR RVERS RACCT  it will be faster than light.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Apr 2010 18:11:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808431#M1468603</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-04-04T18:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Lack Performance when select from GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808432#M1468604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The use of 'NE' in a WHERE clause does not "guarantee" a full table scan. In many cases, like the one here, you do what you have to do. You will probably end up with a full table scan anyway, but that's because you aren't using any indexes not the use of 'NE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your best solution here is probably to simply run it in the background and move on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Apr 2010 18:47:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808432#M1468604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-04T18:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Lack Performance when select from GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808433#M1468605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its better to create a secondary index for all the fields you are using. But if still problem persists then scheduling in background option is also good if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 16:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808433#M1468605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T16:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lack Performance when select from GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808434#M1468606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Creating a secondary index on a standard SAP table to speed up a single SELECT is &lt;U&gt;not&lt;/U&gt; a good solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 17:07:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/lack-performance-when-select-from-glpca/m-p/6808434#M1468606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T17:07:40Z</dc:date>
    </item>
  </channel>
</rss>

