<?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 Distinct Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-error/m-p/1855986#M361900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as bseg is a cluster table so only you can use distinct * or count( * ) aggregate fn in select 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;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2007 03:34:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-01T03:34:58Z</dc:date>
    <item>
      <title>Select Distinct Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-error/m-p/1855985#M361899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to retrieve a list of non-duplicate record from table BSEG so i code as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF it_bseg OCCURS 0,&lt;/P&gt;&lt;P&gt;        belnr LIKE BSEG-BELNR,&lt;/P&gt;&lt;P&gt;        vbund LIKE BSEG-VBUND,&lt;/P&gt;&lt;P&gt;      END OF it_bseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT DISTINCT BELNR VBUND&lt;/P&gt;&lt;P&gt;  APPENDING CORRESPONDING FIELDS OF TABLE it_bseg&lt;/P&gt;&lt;P&gt;  FROM BSEG&lt;/P&gt;&lt;P&gt;  WHERE KUNNR &amp;lt;&amp;gt; '' OR KUNNR IS NOT NULL&lt;/P&gt;&lt;P&gt;  ORDER BY BELNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i Check the code, it give me an error as below:&lt;/P&gt;&lt;P&gt;" Aggregate functions and the addition DISTINCT are not supported in field lists for pooled and clustered table. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i change the code to SELECT DISTINCT * then there is no error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why this error happen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 03:21:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-error/m-p/1855985#M361899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T03:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select Distinct Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-error/m-p/1855986#M361900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as bseg is a cluster table so only you can use distinct * or count( * ) aggregate fn in select 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;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 03:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-error/m-p/1855986#M361900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T03:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select Distinct Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-error/m-p/1855987#M361901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aaron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  First i would like to know why did you used &lt;/P&gt;&lt;P&gt;APPENDING  statement here when there is no ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT BELNR VBUND&lt;/P&gt;&lt;P&gt;into CORESPONDING FIELDS OF TABLE it_bseg&lt;/P&gt;&lt;P&gt;FROM BSEG&lt;/P&gt;&lt;P&gt;WHERE KUNNR &amp;lt;&amp;gt; '' OR KUNNR IS NOT NULL&lt;/P&gt;&lt;P&gt;ORDER BY BELNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it will work&lt;/P&gt;&lt;P&gt;Pls reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 03:35:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-error/m-p/1855987#M361901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T03:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select Distinct Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-error/m-p/1855988#M361902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi muralikrishna kaipha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried on your code but it still give me the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I check that whether a table is pooled/clustered table or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 01:20:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-error/m-p/1855988#M361902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-02T01:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select Distinct Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-error/m-p/1855989#M361903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in se11 give the name of the table go to display mode it will show you whether it is transp table/cluster/pool table just check before the table name display text will be there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 03:19:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-distinct-error/m-p/1855989#M361903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-02T03:19:17Z</dc:date>
    </item>
  </channel>
</rss>

