<?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: Table GLPCA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677681#M298845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see only one KOKRS values coming up for all the company codes ... that means that the relationship is one Controlling area to many comapny codes ... so does it mean that I cannot use the index here ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Nov 2006 18:20:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-03T18:20:39Z</dc:date>
    <item>
      <title>Table GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677672#M298836</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; I am using the following select to get data from table GLPCA... this table has  3 million records just in QA environment... &amp;amp; the program is getting timed out ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select BLART BUDAT CPUDT DRCRK HSL POPER RACCT RBUKRS REFDOCLN REFDOCNR&lt;/P&gt;&lt;P&gt;RPRCTR RTCUR RYEAR SGTXT USNAM&lt;/P&gt;&lt;P&gt;       into corresponding fields of GLPCA&lt;/P&gt;&lt;P&gt;       from GLPCA&lt;/P&gt;&lt;P&gt;       where BLART in SP$00010&lt;/P&gt;&lt;P&gt;         and BUDAT in SP$00004&lt;/P&gt;&lt;P&gt;         and POPER in SP$00002&lt;/P&gt;&lt;P&gt;         and RACCT in SP$00008&lt;/P&gt;&lt;P&gt;         and RBUKRS in SP$00006&lt;/P&gt;&lt;P&gt;         and REFDOCNR in SP$00001&lt;/P&gt;&lt;P&gt;         and RPRCTR in SP$00007&lt;/P&gt;&lt;P&gt;         and RTCUR in SP$00009&lt;/P&gt;&lt;P&gt;         and RYEAR in SP$00003&lt;/P&gt;&lt;P&gt;         and USNAM in SP$00005.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I avoid the program from dumping due "Time_out"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 03:37:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677672#M298836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-01T03:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677673#M298837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only WHERE that can use an index effectively in your select is for REFDOCNR. So before you do the select, make sure SP$00001 is not empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 03:51:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677673#M298837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-01T03:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Table GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677674#M298838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This program is basically used to get all the documents, their line items for all the accounts in a company for a given quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the selection screen the user will be just giving the company code, the fisical year and period say '007' to '009'.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-SB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 04:15:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677674#M298838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-01T04:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Table GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677675#M298839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as you are saying user will enter company code, fiscal year and period, i think the index which suits your case is "Index with origin object / activity", if atall this is existing in your system. over here it contains the following fields:&lt;/P&gt;&lt;P&gt;RHOART	Type of origin object (EC-PCA)&lt;/P&gt;&lt;P&gt;KOKRS	Controlling Area&lt;/P&gt;&lt;P&gt;RYEAR	Fiscal Year&lt;/P&gt;&lt;P&gt;ACTIV	FI-SL business activity&lt;/P&gt;&lt;P&gt;POPER	Posting period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i will suggest you if you can find out the &lt;/P&gt;&lt;P&gt;KOKRS	Controlling Area&lt;/P&gt;&lt;P&gt;field before retrieving data, then it may help you in getting your data in a faster way. one more thing, if you can avoid writing INTO CORRESPONDING FIELDS OF TABLE GLPCA. if you can design the internal table, in the order you are selecting data, it will be better. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it may help you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 06:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677675#M298839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-01T06:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677676#M298840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The more data you retrieve, the less important using an index becomes. So if you need to select a lot of data using non-key fields, there's not much you can do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2006 15:46:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677676#M298840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-01T15:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Table GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677677#M298841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; How do I create or use Index in my probelm ?? Please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;SB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 03:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677677#M298841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T03:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Table GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677678#M298842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you check out for the index i suggested in SE11. go to the respective table in SE11. there is one button with caption called "indexes". click on that. you will get list of indexes existing in your system. check out for the index i suggested you in that list. if it is not existing, then you have to create that. create the index in the order of the field which you are using in your select query quite often.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;Note: creating additional index is typically based on need basis and risk factor involved in it is the number of indexes already existing in your system. if number of records in your table is huge and already you are seeing 5 - 6 indexes in your table, then it is not adivisable to create one more index.&lt;/STRONG&gt;**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are not left with any other choice, then select data in ranges instead of selecting a huge chunk of data in one shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 05:50:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677678#M298842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T05:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Table GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677679#M298843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shane&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; these are the indexes present...&lt;/P&gt;&lt;P&gt;1 Profit-center-based index Active&lt;/P&gt;&lt;P&gt;2 Index with document number Active&lt;/P&gt;&lt;P&gt;3 Index Through Reference Document Number Active&lt;/P&gt;&lt;P&gt;7 Index with origin object / activity  Active&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has the one you mentioned earlier ... 7 Index with origin object / activity  Active ... so with this how do I write my select statement ??....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also please guide me how to select a range of data ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 16:10:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677679#M298843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T16:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Table GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677680#M298844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there is a one to one correspondence in your system between controlling area (KOKRS) and company code (RBUKRS), you can replace the select on RBUKRS with one on KOKRS. Since you already have RYEAR in the select, this should cause the SELECT to use index 1.&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, 03 Nov 2006 16:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677680#M298844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T16:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Table GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677681#M298845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see only one KOKRS values coming up for all the company codes ... that means that the relationship is one Controlling area to many comapny codes ... so does it mean that I cannot use the index here ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2006 18:20:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677681#M298845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T18:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Table GLPCA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677682#M298846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK try this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT blart budat cpudt drcrk hsl poper racct rbukrs refdocln refdocnr
       rprctr rtcur ryear sgtxt usnam
  INTO CORRESPONDING FIELDS OF glpca
  FROM glpca
  WHERE kokrs     = 'XXXX'        "Substitute your contolling area
    AND ryear    IN sp[code]SELECT blart budat cpudt drcrk hsl poper racct rbukrs refdocln refdocnr
       rprctr rtcur ryear sgtxt usnam
  INTO CORRESPONDING FIELDS OF glpca
  FROM glpca
  WHERE kokrs     = 'XXXX'        "Substitute your contolling area
    AND ryear    IN sp$00003
    AND blart    IN sp$00010
    AND budat    IN sp$00004
    AND poper    IN sp$00002
    AND racct    IN sp$00008
    AND rbukrs   IN sp$00006
    AND refdocnr IN sp$00001
    AND rprctr   IN sp$00007
    AND rtcur    IN sp$00009
    AND usnam    IN sp$00005.
[/code]3
    AND blart    IN spSELECT blart budat cpudt drcrk hsl poper racct rbukrs refdocln refdocnr
       rprctr rtcur ryear sgtxt usnam
  INTO CORRESPONDING FIELDS OF glpca
  FROM glpca
  WHERE kokrs     = 'XXXX'        "Substitute your contolling area
    AND ryear    IN sp$00003
    AND blart    IN sp$00010
    AND budat    IN sp$00004
    AND poper    IN sp$00002
    AND racct    IN sp$00008
    AND rbukrs   IN sp$00006
    AND refdocnr IN sp$00001
    AND rprctr   IN sp$00007
    AND rtcur    IN sp$00009
    AND usnam    IN sp$00005.
0
    AND budat    IN sp[code]SELECT blart budat cpudt drcrk hsl poper racct rbukrs refdocln refdocnr
       rprctr rtcur ryear sgtxt usnam
  INTO CORRESPONDING FIELDS OF glpca
  FROM glpca
  WHERE kokrs     = 'XXXX'        "Substitute your contolling area
    AND ryear    IN sp$00003
    AND blart    IN sp$00010
    AND budat    IN sp$00004
    AND poper    IN sp$00002
    AND racct    IN sp$00008
    AND rbukrs   IN sp$00006
    AND refdocnr IN sp$00001
    AND rprctr   IN sp$00007
    AND rtcur    IN sp$00009
    AND usnam    IN sp$00005.
[/code]4
    AND poper    IN sp[code]SELECT blart budat cpudt drcrk hsl poper racct rbukrs refdocln refdocnr
       rprctr rtcur ryear sgtxt usnam
  INTO CORRESPONDING FIELDS OF glpca
  FROM glpca
  WHERE kokrs     = 'XXXX'        "Substitute your contolling area
    AND ryear    IN sp$00003
    AND blart    IN sp$00010
    AND budat    IN sp$00004
    AND poper    IN sp$00002
    AND racct    IN sp$00008
    AND rbukrs   IN sp$00006
    AND refdocnr IN sp$00001
    AND rprctr   IN sp$00007
    AND rtcur    IN sp$00009
    AND usnam    IN sp$00005.
[/code]2
    AND racct    IN sp[code]SELECT blart budat cpudt drcrk hsl poper racct rbukrs refdocln refdocnr
       rprctr rtcur ryear sgtxt usnam
  INTO CORRESPONDING FIELDS OF glpca
  FROM glpca
  WHERE kokrs     = 'XXXX'        "Substitute your contolling area
    AND ryear    IN sp$00003
    AND blart    IN sp$00010
    AND budat    IN sp$00004
    AND poper    IN sp$00002
    AND racct    IN sp$00008
    AND rbukrs   IN sp$00006
    AND refdocnr IN sp$00001
    AND rprctr   IN sp$00007
    AND rtcur    IN sp$00009
    AND usnam    IN sp$00005.
[/code]8
    AND rbukrs   IN sp[code]SELECT blart budat cpudt drcrk hsl poper racct rbukrs refdocln refdocnr
       rprctr rtcur ryear sgtxt usnam
  INTO CORRESPONDING FIELDS OF glpca
  FROM glpca
  WHERE kokrs     = 'XXXX'        "Substitute your contolling area
    AND ryear    IN sp$00003
    AND blart    IN sp$00010
    AND budat    IN sp$00004
    AND poper    IN sp$00002
    AND racct    IN sp$00008
    AND rbukrs   IN sp$00006
    AND refdocnr IN sp$00001
    AND rprctr   IN sp$00007
    AND rtcur    IN sp$00009
    AND usnam    IN sp$00005.
[/code]6
    AND refdocnr IN spSELECT blart budat cpudt drcrk hsl poper racct rbukrs refdocln refdocnr
       rprctr rtcur ryear sgtxt usnam
  INTO CORRESPONDING FIELDS OF glpca
  FROM glpca
  WHERE kokrs     = 'XXXX'        "Substitute your contolling area
    AND ryear    IN sp$00003
    AND blart    IN sp$00010
    AND budat    IN sp$00004
    AND poper    IN sp$00002
    AND racct    IN sp$00008
    AND rbukrs   IN sp$00006
    AND refdocnr IN sp$00001
    AND rprctr   IN sp$00007
    AND rtcur    IN sp$00009
    AND usnam    IN sp$00005.

    AND rprctr   IN sp[code]SELECT blart budat cpudt drcrk hsl poper racct rbukrs refdocln refdocnr
       rprctr rtcur ryear sgtxt usnam
  INTO CORRESPONDING FIELDS OF glpca
  FROM glpca
  WHERE kokrs     = 'XXXX'        "Substitute your contolling area
    AND ryear    IN sp$00003
    AND blart    IN sp$00010
    AND budat    IN sp$00004
    AND poper    IN sp$00002
    AND racct    IN sp$00008
    AND rbukrs   IN sp$00006
    AND refdocnr IN sp$00001
    AND rprctr   IN sp$00007
    AND rtcur    IN sp$00009
    AND usnam    IN sp$00005.
[/code]7
    AND rtcur    IN sp[code]SELECT blart budat cpudt drcrk hsl poper racct rbukrs refdocln refdocnr
       rprctr rtcur ryear sgtxt usnam
  INTO CORRESPONDING FIELDS OF glpca
  FROM glpca
  WHERE kokrs     = 'XXXX'        "Substitute your contolling area
    AND ryear    IN sp$00003
    AND blart    IN sp$00010
    AND budat    IN sp$00004
    AND poper    IN sp$00002
    AND racct    IN sp$00008
    AND rbukrs   IN sp$00006
    AND refdocnr IN sp$00001
    AND rprctr   IN sp$00007
    AND rtcur    IN sp$00009
    AND usnam    IN sp$00005.
[/code]9
    AND usnam    IN sp[code]SELECT blart budat cpudt drcrk hsl poper racct rbukrs refdocln refdocnr
       rprctr rtcur ryear sgtxt usnam
  INTO CORRESPONDING FIELDS OF glpca
  FROM glpca
  WHERE kokrs     = 'XXXX'        "Substitute your contolling area
    AND ryear    IN sp$00003
    AND blart    IN sp$00010
    AND budat    IN sp$00004
    AND poper    IN sp$00002
    AND racct    IN sp$00008
    AND rbukrs   IN sp$00006
    AND refdocnr IN sp$00001
    AND rprctr   IN sp$00007
    AND rtcur    IN sp$00009
    AND usnam    IN sp$00005.
[/code]5.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This should give a small increase in performance.&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, 03 Nov 2006 19:22:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-glpca/m-p/1677682#M298846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-03T19:22:06Z</dc:date>
    </item>
  </channel>
</rss>

