<?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: Data Retrieval in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval/m-p/1955708#M393368</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 Single: it should be used only if it's possible to use all key fields in WHERE condition, because it's used the primary index;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Select upto 1 row: it should be used if it's necessary to get only one record but it can't use all key fields in WHERE condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Client Specified: it's to be used if it need to get some records stored in an another client of the same server; if the client is not specified, the system gets the data from the current client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- By Passing Buffer: it means it want get the data from database and not from memory (buffer).&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Mar 2007 09:16:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-02T09:16:54Z</dc:date>
    <item>
      <title>Data Retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval/m-p/1955707#M393367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could ne 1 explain me the concepts of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Select Single&lt;/P&gt;&lt;P&gt;2. Select upto 1 rows&lt;/P&gt;&lt;P&gt;3. By Passing Buffer&lt;/P&gt;&lt;P&gt;4. Client Specified&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with respect to the retrieval of the records from the database...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nandu..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vivekananda Varma Dandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 09:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval/m-p/1955707#M393367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-02T09:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Data Retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval/m-p/1955708#M393368</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 Single: it should be used only if it's possible to use all key fields in WHERE condition, because it's used the primary index;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Select upto 1 row: it should be used if it's necessary to get only one record but it can't use all key fields in WHERE condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Client Specified: it's to be used if it need to get some records stored in an another client of the same server; if the client is not specified, the system gets the data from the current client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- By Passing Buffer: it means it want get the data from database and not from memory (buffer).&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 09:16:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval/m-p/1955708#M393368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-02T09:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Data Retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval/m-p/1955709#M393369</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 Single will fetch one record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select upto 1row will only fetch the first recor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;adding &amp;#147;BYPASSING BUFFER&amp;#148; as a comment within a SELECT statement to assure that the request will not be handled by the buffer but by the database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Client Specified is used when we need to get some records stored in an another client of the same server;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2007 09:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval/m-p/1955709#M393369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-02T09:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Data Retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval/m-p/1955710#M393370</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 single,fetches single record.&lt;/P&gt;&lt;P&gt;selecr upto 1 rows, will fetches first record.&lt;/P&gt;&lt;P&gt;by passing buffer : ignores the buffer and retrieves the data directly from the database.&lt;/P&gt;&lt;P&gt;client specified : if want to write a program that reads data from a client other than the client your currently logged on to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nidhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2007 05:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval/m-p/1955710#M393370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-03T05:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data Retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval/m-p/1955711#M393371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai vivek............!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Select Single:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;	To read a single entry from the database, we use the select single statement.&lt;/P&gt;&lt;P&gt;Ex: SELECT SINGLE * ... WHERE ... &lt;/P&gt;&lt;P&gt;	Here the first record that satisfies the where condition will be retrieved from the database.&lt;/P&gt;&lt;P&gt;	Select sinle will not work like a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but select up 1 row is a normal select statement where we are restricting the number of rows to be selected.&lt;/P&gt;&lt;P&gt;the SELECT statement opens a loop, which which must be closed using ENDSELECT.&lt;/P&gt;&lt;P&gt;A database cursor is opened implicitly to process a SELECT-loop, and is closed again when the loop is ended.&lt;/P&gt;&lt;P&gt;but with select single no database cursor is opened implicitly .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both select single and select upto 1 row have the similar performance.&lt;/P&gt;&lt;P&gt;but comparitively select is performance effective.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Bypassing buffer:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;when we create a table in ABAP Dictionary we need to specify the type of buffering allowed for that table in the technical attributes tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are three buffering types: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident buffering (100%) The first time the table is accessed, its entire contents are loaded in the table buffer. &lt;/P&gt;&lt;P&gt;Generic buffering In this case, you need to specify a generic key (some of the key fields) in the technical settings of the table in the ABAP Dictionary. The table contents are then divided into generic areas. When you access data with one of the generic keys, the whole generic area is loaded into the table buffer. Client-specific tables are often buffered generically by client. &lt;/P&gt;&lt;P&gt;Partial buffering (single entry) Only single entries are read from the database and stored in the table buffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you read from buffered tables, the following happens: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. An ABAP program requests data from a buffered table. &lt;/P&gt;&lt;P&gt;2. The ABAP processor interprets the Open SQL statement. If the table is defined as a buffered table in the ABAP Dictionary, the ABAP processor checks in the local buffer on the application server to see if the table (or part of it) has already been buffered. &lt;/P&gt;&lt;P&gt;3. If the table has not yet been buffered, the request is passed on to the database. If the data exists in the buffer, it is sent to the program. &lt;/P&gt;&lt;P&gt;4. The database server passes the data to the application server, which places it in the table buffer. &lt;/P&gt;&lt;P&gt;5. The data is passed to the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if u use the bypassing buffer adition in the select statemrnt the program will not check in the buffer but it will get the data directly from the database .&lt;/P&gt;&lt;P&gt;This addition guarantees that the data you read is the most up to date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Client Specified:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default, Open SQL statements use automatic client handling. Statements that access client-dependent application tables only use the data from the current client. &lt;/P&gt;&lt;P&gt;This addition disables the automatic client handling and you can use the field MANDT both in the WHERE clause and in a table work area.&lt;/P&gt;&lt;P&gt;using this adition we can access the data of other clients (if we are authorizer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 10:34:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval/m-p/1955711#M393371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T10:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data Retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval/m-p/1955712#M393372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im grateful to everyone who helped in understanding these concepts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 05:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrieval/m-p/1955712#M393372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T05:22:55Z</dc:date>
    </item>
  </channel>
</rss>

