<?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: fetch data into internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-into-internal-table/m-p/3371216#M809214</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally when you try to select all records of field OPBEL into to internal table there is chance to go to the report dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So better you use package size.Here you will get slect....end select but you can stop the program from dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT opbel&lt;/P&gt;&lt;P&gt;INTO APPENDING  TABLE ITAB&lt;/P&gt;&lt;P&gt;PACKAGE SIZE 30000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt; Here  if you want to do any validations you can do code here.....&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2008 04:48:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-24T04:48:05Z</dc:date>
    <item>
      <title>fetch data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-into-internal-table/m-p/3371212#M809210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to fetch all the opbel records from erdk table into an intrnal table.&lt;/P&gt;&lt;P&gt;Only opbel records.There are 100000000 records in erdk table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I fetch into internal table ? what statement can I use to fetch the data faster keepin performance into consideration ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 04:29:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-into-internal-table/m-p/3371212#M809210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T04:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: fetch data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-into-internal-table/m-p/3371213#M809211</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;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab like erdk occurs 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from erdk into corresponding fields of  itab.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajasekhar  Reddy on Jan 24, 2008 10:05 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 04:35:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-into-internal-table/m-p/3371213#M809211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T04:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: fetch data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-into-internal-table/m-p/3371214#M809212</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 far as data fetch is concerned you do the same as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from erdk into table itab&lt;/P&gt;&lt;P&gt;where..... &amp;lt; Your Where Condition if any&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as the number of records are very high, first try to put all the primary keys in the where clause and also if possible, try to narrow down the selection criteria by fetching data from some other table or widening the conditions in where clause.&lt;/P&gt;&lt;P&gt;Also try to fetch only thode fields which you actually need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else your program will give performance problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 04:41:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-into-internal-table/m-p/3371214#M809212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T04:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: fetch data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-into-internal-table/m-p/3371215#M809213</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; Data:  itab  LIKE  TABLE OF erdk WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO TABLE itab&lt;/P&gt;&lt;P&gt;    FROM erdk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 04:43:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-into-internal-table/m-p/3371215#M809213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T04:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: fetch data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-into-internal-table/m-p/3371216#M809214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally when you try to select all records of field OPBEL into to internal table there is chance to go to the report dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So better you use package size.Here you will get slect....end select but you can stop the program from dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT opbel&lt;/P&gt;&lt;P&gt;INTO APPENDING  TABLE ITAB&lt;/P&gt;&lt;P&gt;PACKAGE SIZE 30000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt; Here  if you want to do any validations you can do code here.....&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 04:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-data-into-internal-table/m-p/3371216#M809214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T04:48:05Z</dc:date>
    </item>
  </channel>
</rss>

