<?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: Select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782924#M337363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;  Got any solution for your issue,&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Dec 2006 11:57:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-28T11:57:12Z</dc:date>
    <item>
      <title>Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782915#M337354</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 am facing a problem where I have huge number of records in the database table.&lt;/P&gt;&lt;P&gt;So when in my program I select them using a SELECT statment into an internal table it gives me a DUMP saying time out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me how should I populate my internal table with all the records in the database tables.&lt;/P&gt;&lt;P&gt;Such that I can fetch 1 lakh records at a time .&lt;/P&gt;&lt;P&gt;and append them to  the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helpful answer will be rewarded with points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 09:50:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782915#M337354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T09:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782916#M337355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if you are writing the statement with select........  end select. If you are using that then it is better you populate the internal table by using ........into table itab........... clause and then process the records by using loop...... endloop statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Jagannadh Ketavarapu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 09:53:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782916#M337355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T09:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782917#M337356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) declare internal table by occurs 0 clause.&lt;/P&gt;&lt;P&gt;2) select only relevent fields from dtabase into Internal table instead of select *..&lt;/P&gt;&lt;P&gt;3) do not use select and endselect loop.&lt;/P&gt;&lt;P&gt;4) try to use where condition on select and also try tht fields in where condition are in the same order as they appear in the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g  - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0.&lt;/P&gt;&lt;P&gt;   include structure pa0002.&lt;/P&gt;&lt;P&gt;data end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select field1 field2 into corresponding fields of table itab&lt;/P&gt;&lt;P&gt;  from pa0002 where field3 = '124'&lt;/P&gt;&lt;P&gt;                         and field4 = '23'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 09:54:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782917#M337356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T09:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782918#M337357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the performance is not a factor just tell your basis person to increase the time limit for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 09:54:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782918#M337357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T09:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782919#M337358</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;You can use statement select  upto 100000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will work&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;Sabu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 09:55:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782919#M337358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T09:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782920#M337359</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;First check your select staement following key points,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Dont use select endselect.&lt;/P&gt;&lt;P&gt;2.Use desired fields not select *.&lt;/P&gt;&lt;P&gt;3.Use where condition to estrict data.&lt;/P&gt;&lt;P&gt;4.Use the table index as much as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u r still getting dump contact BASIS person.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 09:59:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782920#M337359</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2006-12-28T09:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782921#M337360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The main reasons include &amp;lt;b&amp;gt;usage of join statements and no where conditions for index fields&amp;lt;/b&amp;gt; which takes a long time to execute. Please note that. Then if you could post the code it would better to find what the problem is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 10:00:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782921#M337360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T10:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782922#M337361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;  In the select statement there is an addition called package size , which basically restricts the number of records fetched from database at a time.&lt;/P&gt;&lt;P&gt;this statrement is used in select - endselect format.&lt;/P&gt;&lt;P&gt;an e.g.is given below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : it_1 type table of mara.
select * into table it_1  " Here it selects 100 records at a time
from mara
package size 100.

endselect.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the select statement selects 100 records during each iteration ,so what you can do is in the select - endselect , appned the content of it_1 to another table usinf &amp;lt;b&amp;gt;append lines of&amp;lt;/b&amp;gt; command , &lt;/P&gt;&lt;P&gt;you can specify the package size based on your systems setting.&lt;/P&gt;&lt;P&gt;just debug the program and see how it runs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do revert back in case you have any further queries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reward points if reply is helpful&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 10:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782922#M337361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T10:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782923#M337362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rashmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the table is transactional table, don't use select * without where clause. You can a way to restrict no of entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the table is master table like company code, you can retrieve select * without where clause. Based on company code you can retrieve transactional data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 10:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782923#M337362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T10:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782924#M337363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;  Got any solution for your issue,&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 11:57:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select/m-p/1782924#M337363</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T11:57:12Z</dc:date>
    </item>
  </channel>
</rss>

