<?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: package size in select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/package-size-in-select-statement/m-p/3956896#M945540</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;select f1 f2 .... from dbtable&lt;/P&gt;&lt;P&gt;  appending corresponding fields of table internal table&lt;/P&gt;&lt;P&gt;  package size 10000&lt;/P&gt;&lt;P&gt;  where ......&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;select f1 f2 .... from dbtable&lt;/P&gt;&lt;P&gt;  into corresponding fields of table internal table&lt;/P&gt;&lt;P&gt;  package size 10000&lt;/P&gt;&lt;P&gt;  where ......&lt;/P&gt;&lt;P&gt;append lines of internal table to final internal table&lt;/P&gt;&lt;P&gt;free internal.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which method is best one.&lt;/P&gt;&lt;P&gt;please tell me quickly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tharangini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2008 10:29:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-29T10:29:55Z</dc:date>
    <item>
      <title>package size in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/package-size-in-select-statement/m-p/3956890#M945534</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;In my program i have 4 select statements.&lt;/P&gt;&lt;P&gt;in first select i am getting 6 lacks records.&lt;/P&gt;&lt;P&gt;2nd select i am getting 5 lacks records.in this statement i am using for all entries in above table. &lt;/P&gt;&lt;P&gt;3 rd select i am getting 99 lacks records in this statement i am using for all enries in 2 nd internal table&lt;/P&gt;&lt;P&gt;4th select i am getting 5 lacks records in this statement i am using for all entries in 3rd internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select f1 f2 f3 from database table into internal table &lt;/P&gt;&lt;P&gt;         package sige 10000&lt;/P&gt;&lt;P&gt;        for all.......&lt;/P&gt;&lt;P&gt;        where ..........&lt;/P&gt;&lt;P&gt;append lines of internal table  to final internal table.&lt;/P&gt;&lt;P&gt;refresh internal table.&lt;/P&gt;&lt;P&gt;Endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am following this way..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i follow like this it will improve my program performence.&lt;/P&gt;&lt;P&gt;or is there any other way to improve my program performence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please any body answer my question its very urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;Tharangini.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 07:58:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/package-size-in-select-statement/m-p/3956890#M945534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T07:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: package size in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/package-size-in-select-statement/m-p/3956891#M945535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use one join.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 08:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/package-size-in-select-statement/m-p/3956891#M945535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T08:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: package size in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/package-size-in-select-statement/m-p/3956892#M945536</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;using package size will restrcit the data entries during the fetch. it will pullout the data in chunks. it will help improving the performance. why dont u avoid select-end select. instead append the data into final internal table once the data selection is over!! and since you are retrieving large data, keep your memory usage in optimal level. free the internal table once process (using that int. table) is over. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 08:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/package-size-in-select-statement/m-p/3956892#M945536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T08:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: package size in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/package-size-in-select-statement/m-p/3956893#M945537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not very clear what you are saying can you please alobarate that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Tharangini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 08:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/package-size-in-select-statement/m-p/3956893#M945537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T08:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: package size in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/package-size-in-select-statement/m-p/3956894#M945538</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;Go you have select-endselet to populate your inetrnal table? if so avoid it. you can populate the data in different internal tables into the final one using append lines of ..statement. &lt;/P&gt;&lt;P&gt;I'm just cautioning you, if you have so many internal tables involved with lots of records in it, then it the program will consume lotsof memory. In order to avoid that, release the memory of the internal table, which you'll not use later in that program.&lt;/P&gt;&lt;P&gt;ie. say of you are using ITAB to populate data into ITAB_FINAL.&lt;/P&gt;&lt;P&gt;ie append lines of itab into itab_final.&lt;/P&gt;&lt;P&gt;now if you are not going to use itab any further in your program use: FREE ITAB. to release the memory space used by ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 09:11:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/package-size-in-select-statement/m-p/3956894#M945538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T09:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: package size in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/package-size-in-select-statement/m-p/3956895#M945539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to avoid the select and endselect.&lt;/P&gt;&lt;P&gt;if we use package size then we have to use select and endselect na.&lt;/P&gt;&lt;P&gt;Please clear my doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tharangini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 10:12:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/package-size-in-select-statement/m-p/3956895#M945539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T10:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: package size in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/package-size-in-select-statement/m-p/3956896#M945540</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;select f1 f2 .... from dbtable&lt;/P&gt;&lt;P&gt;  appending corresponding fields of table internal table&lt;/P&gt;&lt;P&gt;  package size 10000&lt;/P&gt;&lt;P&gt;  where ......&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;select f1 f2 .... from dbtable&lt;/P&gt;&lt;P&gt;  into corresponding fields of table internal table&lt;/P&gt;&lt;P&gt;  package size 10000&lt;/P&gt;&lt;P&gt;  where ......&lt;/P&gt;&lt;P&gt;append lines of internal table to final internal table&lt;/P&gt;&lt;P&gt;free internal.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which method is best one.&lt;/P&gt;&lt;P&gt;please tell me quickly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tharangini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 10:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/package-size-in-select-statement/m-p/3956896#M945540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T10:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: package size in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/package-size-in-select-statement/m-p/3956897#M945541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;again why don't you use a join!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think that the for all entries will work with the package size. The FAE read duplicates internediately but takes care that there are no duplicates at the end. This can not work with a package size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your selects are very large, the FAE works only small blocks so it will be anyway slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can program it with a join the solution can be faster by several orders, i.e factor 100 or 1000!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A FAE is only in exceptional cases better than a join, that are the cases where the optimizer is confused and chooses the wrong index for one or more tables of the join. In most cases it should work. To decide it, the details are necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read my blogs and you will see, that I know what I am talking about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 11:30:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/package-size-in-select-statement/m-p/3956897#M945541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T11:30:37Z</dc:date>
    </item>
  </channel>
</rss>

