<?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 Sequential Select fromDB in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-select-fromdb/m-p/4367781#M1039323</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;I have a DB with more than 30 million records.&lt;/P&gt;&lt;P&gt;I would like to process the records using the packet size &amp;lt;p_pckt&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Requirement is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would read the first &amp;lt;p_pckt&amp;gt; records first from the DB.&lt;/P&gt;&lt;P&gt;Then later on when I come to execute the report some other day i would start and processing from &amp;lt;p_pckt&amp;gt; + 1 record in the DB and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could any one suggest some efficient way of doing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Sep 2008 04:41:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-02T04:41:33Z</dc:date>
    <item>
      <title>Sequential Select fromDB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-select-fromdb/m-p/4367781#M1039323</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;I have a DB with more than 30 million records.&lt;/P&gt;&lt;P&gt;I would like to process the records using the packet size &amp;lt;p_pckt&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Requirement is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would read the first &amp;lt;p_pckt&amp;gt; records first from the DB.&lt;/P&gt;&lt;P&gt;Then later on when I come to execute the report some other day i would start and processing from &amp;lt;p_pckt&amp;gt; + 1 record in the DB and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could any one suggest some efficient way of doing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 04:41:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-select-fromdb/m-p/4367781#M1039323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-02T04:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential Select fromDB</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-select-fromdb/m-p/4367782#M1039324</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;Use SELECT and ENDSELECT with PACKAGE SIZE option.&lt;/P&gt;&lt;P&gt;Each time the database is hit only the given number of records will be fetched and put in the destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will be executed much faster when the database records are very high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exmple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab TYPE STANDARD TABLE OF SCARR WITH NON-UNIQUE &lt;/P&gt;&lt;P&gt;                 DEFAULT KEY INITIAL SIZE 10. &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS&amp;gt; TYPE scarr. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO TABLE itab PACKAGE SIZE 20 FROM scarr. &lt;/P&gt;&lt;P&gt;  LOOP AT itab ASSIGNING &amp;lt;FS&amp;gt;. &lt;/P&gt;&lt;P&gt;    WRITE: / &amp;lt;FS&amp;gt;-carrid, &amp;lt;FS&amp;gt;-carrname. &lt;/P&gt;&lt;P&gt;  ENDLOOP. &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;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rama chary.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2008 05:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-select-fromdb/m-p/4367782#M1039324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-02T05:15:12Z</dc:date>
    </item>
  </channel>
</rss>

