<?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: buffer usage on select statments. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffer-usage-on-select-statments/m-p/5686650#M1292371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for crores of records u will ofcoz get dump without giving key elements in where statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try package size and giving primary keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only if the table is a buffered table that will reduce hitting database all the time. chk what is the type of the table in technical settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2009 10:37:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-28T10:37:29Z</dc:date>
    <item>
      <title>buffer usage on select statments.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffer-usage-on-select-statments/m-p/5686648#M1292369</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;There are many standard SAP tables where total row count is in crores.  So for these table, if we give abap statement as "select * from tablename" then I want to ask if there will be any buffer issues.  I have tried to limit rows by giving statement "select * from tablename where rowid" but unfortunately there is no rowid option available with select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I would like to ask if there is any other way to avoid any possible ABAP dumps due to buffer related issues when we give "select * from" command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 10:20:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffer-usage-on-select-statments/m-p/5686648#M1292369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T10:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: buffer usage on select statments.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffer-usage-on-select-statments/m-p/5686649#M1292370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends , how many records you wnat to fetch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can avoid the buffer isues by using OPEN CURSOR technique or didvide the select based on package size .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 10:34:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffer-usage-on-select-statments/m-p/5686649#M1292370</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2009-05-28T10:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: buffer usage on select statments.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffer-usage-on-select-statments/m-p/5686650#M1292371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for crores of records u will ofcoz get dump without giving key elements in where statement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try package size and giving primary keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only if the table is a buffered table that will reduce hitting database all the time. chk what is the type of the table in technical settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 10:37:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffer-usage-on-select-statments/m-p/5686650#M1292371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T10:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: buffer usage on select statments.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffer-usage-on-select-statments/m-p/5686651#M1292372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;As a good programing standard, we try to avoid the *'SELECT * FROM &amp;lt;table_name&amp;gt;'* statement. Insted we specify only the fields which are required in the application.&lt;/P&gt;&lt;P&gt;Secondly, the condition specified in the &lt;STRONG&gt;WHERE&lt;/STRONG&gt; clause should be such that the number of records retrived is not very large.&lt;/P&gt;&lt;P&gt;We can also make use of &lt;STRONG&gt;DISTINCT&lt;/STRONG&gt; addition in SELECT so as to select only the non repeated records.&lt;/P&gt;&lt;P&gt;And ARRAY FETCH is should always be prefered over SELECT SINGLE in a situation wherein more then one recors are to be fetched from same table but used at different locations in the same application.&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gaurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 10:42:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffer-usage-on-select-statments/m-p/5686651#M1292372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T10:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: buffer usage on select statments.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/buffer-usage-on-select-statments/m-p/5686652#M1292373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Case of retrival of data from Database , it is always good to go in with a predetermination as the scope of the requirement might be . &lt;/P&gt;&lt;P&gt;Generally the data retrival is based on certain specific criteria based on certain fields of a table , by this only the required fields are selected , secondly the where condition can be used as an additional line of filtering of the required records . If after the 2 successive filtering still the data required is increasingly large then 2 internal table's can be used with 2 select queries for retrival with a retrival criterion  change . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg . Select Statement 1 From Comp Code  1  where cond  --1 lk entries &lt;/P&gt;&lt;P&gt;       Select Statement 1 From Comp Code  2  where cond  --1 lk entries . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By this means even though there will be a double fetch but the retrival at any particular instant would not exceed an optimum so as to cause a buffer problem . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 12:22:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/buffer-usage-on-select-statments/m-p/5686652#M1292373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T12:22:02Z</dc:date>
    </item>
  </channel>
</rss>

