<?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: Problem while fetching more records in SAP ABAP report program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-fetching-more-records-in-sap-abap-report-program/m-p/5774865#M1307257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the select statement without a where clause is causing the time out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you definitely need all the records you can-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- try using packet size keyword with select statement &lt;/P&gt;&lt;P&gt;- or you can try running the code in background.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2009 05:43:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-01T05:43:58Z</dc:date>
    <item>
      <title>Problem while fetching more records in SAP ABAP report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-fetching-more-records-in-sap-abap-report-program/m-p/5774864#M1307256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Frinds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have SAP ABAP report program which fetches data from usr02 table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, program is working fine with less number of records, bot in production there are more than 200000 records and either report gets timed out or there is run time error like buffer area not available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the fetch statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT bname FROM usr02 INTO TABLE lt_user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, do I need to take records in small chunks, I do not think it is needed as I have worked on number of othere databases where there are number of records in single fetch statement and database itself take care of this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide me some approach to resolve this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 05:40:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-fetching-more-records-in-sap-abap-report-program/m-p/5774864#M1307256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-01T05:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while fetching more records in SAP ABAP report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-fetching-more-records-in-sap-abap-report-program/m-p/5774865#M1307257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the select statement without a where clause is causing the time out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you definitely need all the records you can-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- try using packet size keyword with select statement &lt;/P&gt;&lt;P&gt;- or you can try running the code in background.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 05:43:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-fetching-more-records-in-sap-abap-report-program/m-p/5774865#M1307257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-01T05:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while fetching more records in SAP ABAP report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-fetching-more-records-in-sap-abap-report-program/m-p/5774866#M1307258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will be very difficult for you.....&lt;/P&gt;&lt;P&gt;Since you are getting a time out error....it looks like, you are runnning this report in foreground....................&lt;/P&gt;&lt;P&gt;Try running it in background it will work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE....you have to fetch in small chunks....but the question is how will you do it. Since the USR02 only has BNAME as primary key...&lt;/P&gt;&lt;P&gt;Either put the BNAME as part of selection screen and fetch the data.....it will solve your problem....&lt;/P&gt;&lt;P&gt;Only fetch for those BNAME which is entered in the selection screen...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 05:45:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-fetching-more-records-in-sap-abap-report-program/m-p/5774866#M1307258</guid>
      <dc:creator>former_member212005</dc:creator>
      <dc:date>2009-07-01T05:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while fetching more records in SAP ABAP report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-fetching-more-records-in-sap-abap-report-program/m-p/5774867#M1307259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For 2lak record it will take time out based on your production system setting, may be you can run in background or else ask BASIS to extend the time out period. I beleive the first option is the right one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 05:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-fetching-more-records-in-sap-abap-report-program/m-p/5774867#M1307259</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2009-07-01T05:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while fetching more records in SAP ABAP report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-fetching-more-records-in-sap-abap-report-program/m-p/5774868#M1307260</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;Always it is suggested to use the where condition if you have some restrictions like specific to country etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now check the internal table structure used whether it is having only single fields bname or not. If not modify it.&lt;/P&gt;&lt;P&gt;Forcefully if you want to restrict the records to some number, then you can use the addition of up to XXX rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santhosh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2009 05:48:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-fetching-more-records-in-sap-abap-report-program/m-p/5774868#M1307260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-01T05:48:32Z</dc:date>
    </item>
  </channel>
</rss>

