<?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: select single in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653593#M1095012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sushant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdb.org/7.4/htmhelp/40/1311fd2fa511d3a98100a0c9449261/content.htm" target="test_blank"&gt;http://www.sapdb.org/7.4/htmhelp/40/1311fd2fa511d3a98100a0c9449261/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through above link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i htink that will help u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sindhu .G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Oct 2008 09:42:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-13T09:42:04Z</dc:date>
    <item>
      <title>select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653586#M1095005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys can u tell me what should be the correct syntax for using a select single statement&lt;/P&gt;&lt;P&gt;i rthink we need to  specify the primary key&lt;/P&gt;&lt;P&gt;in my table form which i  am selecting there is only 2 fileds mandt and ztimestamp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am selecting timestamp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 09:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653586#M1095005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T09:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653587#M1095006</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;Here is the syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select single ztimestamp from ZTABLE into &amp;lt;a_variable&amp;gt; where &amp;lt;condition&amp;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;Pramod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 09:28:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653587#M1095006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T09:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653588#M1095007</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;Yes to get correct and accurate results you need to mention the primary key, As your table contains only 2 fields, you can omnit the where condition. It will fetch you the sing record in random.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select single &amp;lt;fieldname&amp;gt;&lt;/P&gt;&lt;P&gt;into variable&lt;/P&gt;&lt;P&gt;from &amp;lt;tablename&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Navneeth K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 09:28:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653588#M1095007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T09:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653589#M1095008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; i rthink we need to  specify the primary key&lt;/P&gt;&lt;P&gt;&amp;gt; i am selecting timestamp.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answer is in your question itself.&lt;/P&gt;&lt;P&gt;you are doing right .&lt;/P&gt;&lt;P&gt;proceed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 09:29:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653589#M1095008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T09:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653590#M1095009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there in such a case directly write select single timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually it is not mandatory that to mention the complete key in the where clause, but it is always advisable to have that thing.. because select single means it will select only first record which satisfies the where clause,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it has complete key in the where clause then obviously it will fetch only one record thats why they will ask ti have complete key in the where clause...&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;Sunil Kumar Mutyala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 09:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653590#M1095009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T09:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653591#M1095010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;select single always return single record which is topmost even if your where clause satisfies many records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 09:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653591#M1095010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T09:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653592#M1095011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If SINGLE is specified, the resulting set has a single line. If the remaining additions to the SELECT command select more than one line from the database, the first line that is found is entered into the resulting set. The data objects specified after INTO may not be internal tables, and the APPENDING addition may not be used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An exclusive lock can be set for this line using the FOR UPDATE addition when a single line is being read with SINGLE. The SELECT command is used in this case only if all primary key fields in logical expressions linked by AND are checked to make sure they are the same in the WHERE condition. Otherwise, the resulting set is empty and sy-subrc is set to 8. If the lock causes a deadlock, an exception occurs. If the FOR UPDATE addition is used, the SELECT command circumvents SAP buffering. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When SINGLE is being specified, the lines to be read should be clearly specified in the WHERE condition, for the sake of efficiency. When the data is read from a database table, the system does this by specifying comparison values for the primary key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul Sinha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 09:31:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653592#M1095011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T09:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653593#M1095012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sushant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdb.org/7.4/htmhelp/40/1311fd2fa511d3a98100a0c9449261/content.htm" target="test_blank"&gt;http://www.sapdb.org/7.4/htmhelp/40/1311fd2fa511d3a98100a0c9449261/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through above link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i htink that will help u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sindhu .G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 09:42:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653593#M1095012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T09:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: select single</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653594#M1095013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 05:55:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-single/m-p/4653594#M1095013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T05:55:22Z</dc:date>
    </item>
  </channel>
</rss>

