<?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: packet size syntax in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size-syntax/m-p/6266723#M1385885</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;&lt;/P&gt;&lt;P&gt;If you have a very large result set an internal table might dump with exhausting memory  .&lt;/P&gt;&lt;P&gt;You divide the access in packages to produce a constant flow of records into table memory&lt;/P&gt;&lt;P&gt;and automatic clearing the table memory before the next fetch. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example  lets say the SELECT would return 100000 rows: we retrieve them in  packages of 5000 rows &lt;/P&gt;&lt;P&gt;until all are fetched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;general syntax is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select field1 field2 field3 from table into int_tab PACKAGE SIZE 5000 .

* process the rows in packages of 5000
* ...
* ...
*  i.e.  spool the records to a file on your client pc


endselect.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SELECT is always enclosed with ENDSELECT because you have a kind of "looping" until all rows are fetched.&lt;/P&gt;&lt;P&gt;The fetches are done as array operations (retieves in one call PACKAGE SIZE rows).&lt;/P&gt;&lt;P&gt;A FOR ALL ENTRIES is applied AFTER the rows are fetched .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Oct 2009 08:38:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-20T08:38:10Z</dc:date>
    <item>
      <title>packet size syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size-syntax/m-p/6266721#M1385883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have seen in SDN one of the masters have said that for LARGE DATA we can use the SYNTAX "  PACKET SIZE " &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not seen this syntax what is syntax all about and how can we use this inorder to cater the large amount of data in an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the reason why am asking is i get a short dump in production and the short dump description says: there is no storage space available for the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so how can the above syntax can be used? thank in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HERE IS HIS SAYING : for large data we can use PACKET SIZE syntax when we get the data into internal table . Might be they will help .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;PASALA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 08:19:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size-syntax/m-p/6266721#M1385883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T08:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: packet size syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size-syntax/m-p/6266722#M1385884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is &lt;STRONG&gt;Package size&lt;/STRONG&gt;  not packet size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press F1 on package size in SE38 .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 08:27:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size-syntax/m-p/6266722#M1385884</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-10-20T08:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: packet size syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size-syntax/m-p/6266723#M1385885</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;&lt;/P&gt;&lt;P&gt;If you have a very large result set an internal table might dump with exhausting memory  .&lt;/P&gt;&lt;P&gt;You divide the access in packages to produce a constant flow of records into table memory&lt;/P&gt;&lt;P&gt;and automatic clearing the table memory before the next fetch. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example  lets say the SELECT would return 100000 rows: we retrieve them in  packages of 5000 rows &lt;/P&gt;&lt;P&gt;until all are fetched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;general syntax is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select field1 field2 field3 from table into int_tab PACKAGE SIZE 5000 .

* process the rows in packages of 5000
* ...
* ...
*  i.e.  spool the records to a file on your client pc


endselect.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SELECT is always enclosed with ENDSELECT because you have a kind of "looping" until all rows are fetched.&lt;/P&gt;&lt;P&gt;The fetches are done as array operations (retieves in one call PACKAGE SIZE rows).&lt;/P&gt;&lt;P&gt;A FOR ALL ENTRIES is applied AFTER the rows are fetched .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 08:38:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size-syntax/m-p/6266723#M1385885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T08:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: packet size syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size-syntax/m-p/6266724#M1385886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi yukonkid,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you so much for the response. &lt;/P&gt;&lt;P&gt;after your explanation i have set my select statement like this... is this correct way of using the package syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT bukrs&lt;/P&gt;&lt;P&gt;         belnr&lt;/P&gt;&lt;P&gt;         buzei&lt;/P&gt;&lt;P&gt;         gjahr&lt;/P&gt;&lt;P&gt;         bschl&lt;/P&gt;&lt;P&gt;         lifnr&lt;/P&gt;&lt;P&gt;         kunnr FROM bseg&lt;/P&gt;&lt;P&gt;               INTO CORRESPONDING FIELDS OF TABLE lt_bseg PACKAGE SIZE 5000&lt;/P&gt;&lt;P&gt;               FOR ALL ENTRIES IN lt_covp&lt;/P&gt;&lt;P&gt;               WHERE bukrs EQ lt_covp-refbk&lt;/P&gt;&lt;P&gt;               AND   belnr EQ lt_covp-refbn&lt;/P&gt;&lt;P&gt;               AND    buzei eq lt_covp-buzei&lt;/P&gt;&lt;P&gt;               AND   gjahr EQ lt_covp-refgj.&lt;/P&gt;&lt;P&gt;    ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;looking forward to your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;pasala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 09:02:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size-syntax/m-p/6266724#M1385886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T09:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: packet size syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size-syntax/m-p/6266725#M1385887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An appropriate way of thanking people here is to assign p o i n t s to helpful answers, have a look to the left of each of the replies to your questions. I'm mentioning this since you seem to never have done this in any of your previous threads.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 09:35:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size-syntax/m-p/6266725#M1385887</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-10-20T09:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: packet size syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size-syntax/m-p/6266726#M1385888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i was not known about it i thought of giving at the end but anyhow sorry for that bru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 09:44:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size-syntax/m-p/6266726#M1385888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T09:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: packet size syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size-syntax/m-p/6266727#M1385889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pasalabasker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's ok - but you will have some kind of processing, with the rows in the package, won't you?&lt;/P&gt;&lt;P&gt;Until now you are fetching and...then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT bukrs
          belnr
          buzei
          gjahr
          bschl
          lifnr
          kunnr FROM bseg
                INTO CORRESPONDING FIELDS OF TABLE lt_bseg PACKAGE SIZE 5000
                FOR ALL ENTRIES IN lt_covp
                WHERE bukrs EQ lt_covp-refbk
                AND   belnr EQ lt_covp-refbn
                AND    buzei eq lt_covp-buzei
                AND   gjahr EQ lt_covp-refgj.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===&amp;gt;  here you have to add your processing . Your construct fetches rows in the int. table and clears them after the fetch.&lt;/P&gt;&lt;P&gt;At least you get the DB something to do &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ENDSELECT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2009 09:25:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packet-size-syntax/m-p/6266727#M1385889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-29T09:25:40Z</dc:date>
    </item>
  </channel>
</rss>

