<?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: regarding select single statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-single-statement/m-p/4891696#M1142823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Rajat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clarify your doubt by this link &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/bb/db00cb4a3011d189490000e8323c4f/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/bb/db00cb4a3011d189490000e8323c4f/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Flavya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Dec 2008 10:54:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-12T10:54:52Z</dc:date>
    <item>
      <title>regarding select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-single-statement/m-p/4891692#M1142819</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;&lt;/P&gt;&lt;P&gt;select single  MIN( punchdate )  from  pa9777 into (r_punchdate)&lt;/P&gt;&lt;P&gt;                                                                          where pernr = peras-pernr and&lt;/P&gt;&lt;P&gt;                                                                           punchdate gt P_WA_TEVEN_LDATE&lt;/P&gt;&lt;P&gt;                                                                           group by punchdate.             &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m using this select single statement in my report ,i want to know that will it give me right result,means here i m using select single n MIN function together.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 10:42:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-single-statement/m-p/4891692#M1142819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T10:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-single-statement/m-p/4891693#M1142820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you can consider adding the ORDER BY punchdate as well.&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;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 10:46:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-single-statement/m-p/4891693#M1142820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T10:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-single-statement/m-p/4891694#M1142821</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;according to my knowledge,adding MIN wont affect select statement,but ORDER BY cannot be used with select single.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Arjun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 10:51:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-single-statement/m-p/4891694#M1142821</guid>
      <dc:creator>arjun_subhash</dc:creator>
      <dc:date>2008-12-12T10:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-single-statement/m-p/4891695#M1142822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajat!!&lt;/P&gt;&lt;P&gt;I think it wont work.&lt;/P&gt;&lt;P&gt;Select single fetches only one record at a time.SO how will MIN function work.&lt;/P&gt;&lt;P&gt;So :&lt;/P&gt;&lt;P&gt;select  MIN( punchdate ) from pa9777 into (r_punchdate)&lt;/P&gt;&lt;P&gt;where pernr = peras-pernr and&lt;/P&gt;&lt;P&gt;punchdate gt P_WA_TEVEN_LDATE&lt;/P&gt;&lt;P&gt;group by punchdate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 10:54:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-single-statement/m-p/4891695#M1142822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T10:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-single-statement/m-p/4891696#M1142823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Rajat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clarify your doubt by this link &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/bb/db00cb4a3011d189490000e8323c4f/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/bb/db00cb4a3011d189490000e8323c4f/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Flavya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 10:54:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-single-statement/m-p/4891696#M1142823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T10:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-single-statement/m-p/4891697#M1142824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it is not logically correct to use both MIN and SINGLE. Selecting &lt;STRONG&gt;single&lt;/STRONG&gt; means getting a first hit where the condition is true (and only one). As this will result only in one hit you cannot tell the system to get MIN value of this(these). To do this there has to be at least two hits, which you would get by using &lt;STRONG&gt;select&lt;/STRONG&gt; but without &lt;STRONG&gt;single&lt;/STRONG&gt; addtion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 10:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-single-statement/m-p/4891697#M1142824</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2008-12-12T10:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-single-statement/m-p/4891698#M1142825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi....&lt;/P&gt;&lt;P&gt;Please check this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_blanz TYPE blanz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE MIN( blanz )&lt;/P&gt;&lt;P&gt;  FROM mara&lt;/P&gt;&lt;P&gt;  INTO l_blanz&lt;/P&gt;&lt;P&gt;WHERE ersda LE sy-datum&lt;/P&gt;&lt;P&gt;GROUP BY ersda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working successfully. No problem using select single min and group by together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Subhankar Garani on Dec 12, 2008 12:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 10:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-single-statement/m-p/4891698#M1142825</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2008-12-12T10:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select single statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-single-statement/m-p/4891699#M1142826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from ur answer what i came to know that if we use   punchdate = P_WA_TEVEN_LDATE group by punchdate ,then the select single and MIN function  will work but if we use  punchdate gt P_WA_TEVEN_LDATE  group by punchdate then it wont work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;correct me if i m wrong,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 11:10:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-single-statement/m-p/4891699#M1142826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T11:10:43Z</dc:date>
    </item>
  </channel>
</rss>

