<?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: check select syntax in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-select-syntax/m-p/2150892#M454110</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;If you have FOR ALL ENTRIES.. you cannot have aggregate functions..other than COUNT(*)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Apr 2007 04:29:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-14T04:29:25Z</dc:date>
    <item>
      <title>check select syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-select-syntax/m-p/2150890#M454108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;may i know if the syntax is correct.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;      select a&lt;SUB&gt;vbeln a&lt;/SUB&gt;posnr a&lt;SUB&gt;matnr sum( a&lt;/SUB&gt;kwmeng ) sum( b~rfmng ) &lt;/P&gt;&lt;P&gt;           into corresponding fields of table it_qty&lt;/P&gt;&lt;P&gt;           from vbap as a inner join vbfa as b&lt;/P&gt;&lt;P&gt;           on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbelv and&lt;/P&gt;&lt;P&gt;              a&lt;SUB&gt;posnr = b&lt;/SUB&gt;posnv and&lt;/P&gt;&lt;P&gt;              b~vbtyp_n = 'J'&lt;/P&gt;&lt;P&gt;           for all entries in it_delivery&lt;/P&gt;&lt;P&gt;           where a~vbeln = it_delivery-vgbel&lt;/P&gt;&lt;P&gt;           group by a&lt;SUB&gt;vbeln a&lt;/SUB&gt;posnr a~matnr&lt;/P&gt;&lt;P&gt;           order by a&lt;SUB&gt;vbeln a&lt;/SUB&gt;posnr a~matnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 04:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-select-syntax/m-p/2150890#M454108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-14T04:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: check select syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-select-syntax/m-p/2150891#M454109</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 is no problem in your syntax!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is your problem with that ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 04:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-select-syntax/m-p/2150891#M454109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-14T04:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: check select syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-select-syntax/m-p/2150892#M454110</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;If you have FOR ALL ENTRIES.. you cannot have aggregate functions..other than COUNT(*)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 04:29:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-select-syntax/m-p/2150892#M454110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-14T04:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: check select syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-select-syntax/m-p/2150893#M454111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I cant find any prob with  that select stmt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 04:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-select-syntax/m-p/2150893#M454111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-14T04:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: check select syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-select-syntax/m-p/2150894#M454112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi naren,&lt;/P&gt;&lt;P&gt;both for all entries and aggregate cannot be together?&lt;/P&gt;&lt;P&gt;can have example?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;points already given&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 04:51:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-select-syntax/m-p/2150894#M454112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-14T04:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: check select syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-select-syntax/m-p/2150895#M454113</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;here the problem is with aggregate functions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the list in the SELECT clause (excepting aggregate expressions) contains one or more field names, the field names must also be listed in the GROUP BY clause. The aggregate functions do not then apply to all of the selected lines, but to the individual groups of lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the&amp;lt;b&amp;gt; ORDER BY&amp;lt;/b&amp;gt; Clause in the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also see the following link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/f1/0a564ce09411d2acb90000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/f1/0a564ce09411d2acb90000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful...&lt;/P&gt;&lt;P&gt;Suresh......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 05:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-select-syntax/m-p/2150895#M454113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-14T05:12:40Z</dc:date>
    </item>
  </channel>
</rss>

