<?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 Problem in collect statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect-statement/m-p/7169292#M1517040</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 Collect staement into an internal table  for calculating total from General Ledger Details.which is having arround 60000 records. This loop Statement taking more time.For improveing  the performance for the particular loop statment what should i do?..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT LT_FAGLFLEXT  INTO LS_FAGLFLEXT .&lt;/P&gt;&lt;P&gt;        CLEAR : GV_MESSAGE , GV_PERCOUNT.&lt;/P&gt;&lt;P&gt;GV_MESSAGE = TEXT-023. "' Calculating totals from General Ledger Details'.&lt;/P&gt;&lt;P&gt;PERFORM PROGRESS_INDIACTOR USING GV_PERCOUNT GV_MESSAGE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        COLLECT LS_FAGLFLEXT INTO  LT_COLLECT_FAGLFLEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLEAR LS_FAGLFLEXT .&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Shubh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Aug 2010 06:01:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-05T06:01:00Z</dc:date>
    <item>
      <title>Problem in collect statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect-statement/m-p/7169292#M1517040</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 Collect staement into an internal table  for calculating total from General Ledger Details.which is having arround 60000 records. This loop Statement taking more time.For improveing  the performance for the particular loop statment what should i do?..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT LT_FAGLFLEXT  INTO LS_FAGLFLEXT .&lt;/P&gt;&lt;P&gt;        CLEAR : GV_MESSAGE , GV_PERCOUNT.&lt;/P&gt;&lt;P&gt;GV_MESSAGE = TEXT-023. "' Calculating totals from General Ledger Details'.&lt;/P&gt;&lt;P&gt;PERFORM PROGRESS_INDIACTOR USING GV_PERCOUNT GV_MESSAGE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        COLLECT LS_FAGLFLEXT INTO  LT_COLLECT_FAGLFLEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLEAR LS_FAGLFLEXT .&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Shubh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 06:01:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect-statement/m-p/7169292#M1517040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-05T06:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in collect statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect-statement/m-p/7169293#M1517041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shubh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think that the problem is with collect statement. I didn't see that there is any change in the parameters GV_PERCOUNT and GV_MESSAGE passed to the routine PROGRESS_INDIACTOR. So you can call this perform outside the loop which will increase the performance a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if the problem still persists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 06:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-collect-statement/m-p/7169293#M1517041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-05T06:14:17Z</dc:date>
    </item>
  </channel>
</rss>

