<?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: Data fetch from table GLPCA taking long . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071610#M429144</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 use the PACKAGE SIZE addition, the lines of the selection are not written into the internal table at once, but in packets. You can define packets of &amp;lt;n&amp;gt; lines that are written one after the other into the internal table. If you use INTO, each packet replaces the preceding one. If you use APPENDING, the packets are inserted one after the other. This is only possible in a loop that ends with ENDSELECT. Outside the SELECT loop, the contents of the internal table are undetermined. You must process the selected lines within the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this link:&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="2329848"&gt;&lt;/A&gt;&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>Mon, 19 Mar 2007 12:01:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-19T12:01:36Z</dc:date>
    <item>
      <title>Data fetch from table GLPCA taking long .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071602#M429136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am fetching five fields from GLPCA table and i have RACCT and RPRCTR ( account Number and profit Centre res ) in the where condition. neither of these field is the primary key of the table GLPCA. I have around 161096,482 entries in the GLPCA. It takes around 20 min to fetch the data. can you guys think of some method so that it works faster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 09:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071602#M429136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T09:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Data fetch from table GLPCA taking long .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071603#M429137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are 4 secondary indexes created on this table.&lt;/P&gt;&lt;P&gt;Try using fields in the where condition such tat one of the four indexes is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;one of the idexes has the following fields:&lt;/P&gt;&lt;P&gt;KOKRS&lt;/P&gt;&lt;P&gt;RYEAR&lt;/P&gt;&lt;P&gt;RPRCTR&lt;/P&gt;&lt;P&gt;RVERS&lt;/P&gt;&lt;P&gt;RACCT&lt;/P&gt;&lt;P&gt;Similarly have a look at the other secondary indexes in SE11 for the table GLPCA.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 09:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071603#M429137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T09:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Data fetch from table GLPCA taking long .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071604#M429138</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;As mentioned above try to use the index available. or try creadting your own index. &lt;/P&gt;&lt;P&gt;You have to use the fields mentioned in the index in the same order in ur where clause too. &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>Mon, 19 Mar 2007 09:28:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071604#M429138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T09:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data fetch from table GLPCA taking long .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071605#M429139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vidya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are selecting the data through a For All Entries in itab addition and the itab has more data i.e. around 1 or 2 Lakh rec, your selection is going to take time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So try using Open Cursor Statement and get 200 records from each fetch statement. Also try selecting 200 records in SE16 with your selection data and test its effeciency. By doing this you are grabbing the records in chunks and not as a whole block. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do tell me if the issue still persists with the way you are writting the select. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a good day,&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 09:31:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071605#M429139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T09:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Data fetch from table GLPCA taking long .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071606#M429140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vidya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Also try to use Package size and check out if it reduces some time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; select field1 field2 from ztable into corresponding fields of wa_itab package size 10000 where XXXXX..
  append wa_itab to itab.
  clear wa_itab.
endselect.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 09:32:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071606#M429140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T09:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Data fetch from table GLPCA taking long .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071607#M429141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not using for all entries in itab statement. Infact the  code is as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select refdocnr&lt;/P&gt;&lt;P&gt;         docln&lt;/P&gt;&lt;P&gt;         drcrk&lt;/P&gt;&lt;P&gt;         hsl&lt;/P&gt;&lt;P&gt;         rprctr&lt;/P&gt;&lt;P&gt;         into table i_data&lt;/P&gt;&lt;P&gt;         from glpca&lt;/P&gt;&lt;P&gt;         where  racct  eq p_racct       and&lt;/P&gt;&lt;P&gt;                   rprctr in r_prctr       and&lt;/P&gt;&lt;P&gt;                   budat  in r_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you suggest something here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regads,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 09:42:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071607#M429141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T09:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Data fetch from table GLPCA taking long .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071608#M429142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vidya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The time utilization is due to the way data base is been accessed. Just think that you are selecting same data in SE16 with 200 hits. See how that behaves. If you find its Ok(i.e. around 1/2 mins) go for open cursor logic. Check this syntax and change the code accordigly and try: &lt;/P&gt;&lt;P&gt;OPEN CURSOR w_cur1 FOR&lt;/P&gt;&lt;P&gt;       SELECT  ktabg vkorg ktaar ktaer kunnr&lt;/P&gt;&lt;P&gt;               vtweg spart&lt;/P&gt;&lt;P&gt;               FROM vbka&lt;/P&gt;&lt;P&gt;               WHERE ktabg IN so_ktabg AND&lt;/P&gt;&lt;P&gt;                     vkorg IN so_vkorg AND&lt;/P&gt;&lt;P&gt;                     kunnr IN so_kunnr AND&lt;/P&gt;&lt;P&gt;                     ktaar IN so_ktaar AND&lt;/P&gt;&lt;P&gt;                     ktaer IN so_ktaer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      FETCH NEXT CURSOR w_cur1 INTO CORRESPONDING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            FIELDS OF TABLE it_vbka2 PACKAGE SIZE 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLOSE CURSOR w_cur1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;   ENDDO.&lt;/P&gt;&lt;P&gt;  It behaves just like Select ... Endselect. The most important thing here is the Pakage size which you have to decide based on the SE16 results. Also please mind that if the Package size is less, number of times it hits the DB is high, reducing the efficiency thereby. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &amp;amp; Thanks,&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 10:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071608#M429142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T10:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Data fetch from table GLPCA taking long .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071609#M429143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandrashekhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell the logic of Package size. It is improving the fetch time . if possible can you tell the logic like why its improving the time. How does package size 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;Vidya .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 11:43:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071609#M429143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T11:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Data fetch from table GLPCA taking long .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071610#M429144</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 use the PACKAGE SIZE addition, the lines of the selection are not written into the internal table at once, but in packets. You can define packets of &amp;lt;n&amp;gt; lines that are written one after the other into the internal table. If you use INTO, each packet replaces the preceding one. If you use APPENDING, the packets are inserted one after the other. This is only possible in a loop that ends with ENDSELECT. Outside the SELECT loop, the contents of the internal table are undetermined. You must process the selected lines within the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this link:&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="2329848"&gt;&lt;/A&gt;&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>Mon, 19 Mar 2007 12:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071610#M429144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T12:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Data fetch from table GLPCA taking long .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071611#M429145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vidya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   If you give package size as 10000 , it will fetch 10000 records at a time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2007 12:06:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071611#M429145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-19T12:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Data fetch from table GLPCA taking long .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071612#M429146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution provided by you all helped in improving the performence. So thanks to you all.&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;Vidya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 04:22:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-fetch-from-table-glpca-taking-long/m-p/2071612#M429146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T04:22:47Z</dc:date>
    </item>
  </channel>
</rss>

