<?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 - Group by in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-group-by/m-p/2451739#M549440</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;SInce BSEG is cluster table,you cannot use group by.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jun 2007 02:33:13 GMT</pubDate>
    <dc:creator>jayanthi_jayaraman</dc:creator>
    <dc:date>2007-06-22T02:33:13Z</dc:date>
    <item>
      <title>Select - Group by</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-group-by/m-p/2451738#M549439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ABAPers,&lt;/P&gt;&lt;P&gt;Im quite confuse in using the &amp;lt;b&amp;gt;group by&amp;lt;/b&amp;gt; syntax in Select.. Here is my code, kindly correct what is the problem with this with error msg "The group by addition is not valid for pool or cluster tables".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT  bukrs&lt;/P&gt;&lt;P&gt;           belnr&lt;/P&gt;&lt;P&gt;           gjahr&lt;/P&gt;&lt;P&gt;           augcp&lt;/P&gt;&lt;P&gt;           bschl&lt;/P&gt;&lt;P&gt;           wrbtr&lt;/P&gt;&lt;P&gt;           pswsl&lt;/P&gt;&lt;P&gt;           sgtxt&lt;/P&gt;&lt;P&gt;           hkont&lt;/P&gt;&lt;P&gt;           kunnr&lt;/P&gt;&lt;P&gt;   FROM bseg&lt;/P&gt;&lt;P&gt;   INTO TABLE it_bseg&lt;/P&gt;&lt;P&gt;   WHERE  bukrs EQ p_bukrs&lt;/P&gt;&lt;P&gt;   AND augcp EQ p_augcp&lt;/P&gt;&lt;P&gt;   GROUP BY hkont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help..Thanks in advance&lt;/P&gt;&lt;P&gt;aVaDuDz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 02:30:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-group-by/m-p/2451738#M549439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T02:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Select - Group by</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-group-by/m-p/2451739#M549440</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;SInce BSEG is cluster table,you cannot use group by.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 02:33:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-group-by/m-p/2451739#M549440</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-06-22T02:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select - Group by</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-group-by/m-p/2451740#M549441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Jayanthi,&lt;/P&gt;&lt;P&gt;Is there any other tables that  I can use to get the following fields?&lt;/P&gt;&lt;P&gt;bukrs  belnr  gjahr  augcp  bschl  wrbtr  pswsl  sgtxt  hkont   kunnr.&lt;/P&gt;&lt;P&gt;Do you have any suggestion how to group by a data in smartforms?&lt;/P&gt;&lt;P&gt;thats why i used groupby in select ...i just think its the solution.&lt;/P&gt;&lt;P&gt;Here is the sample output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currency : USD        Bank : HBO&lt;/P&gt;&lt;P&gt;Entry No  Document #    Customer&lt;/P&gt;&lt;P&gt;    1         11188000        Jack Dawson&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;aVaDuDz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 02:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-group-by/m-p/2451740#M549441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T02:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Select - Group by</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-group-by/m-p/2451741#M549442</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;check for secondary index tables of BSEG ie BSIS, BSAS, BSID ......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 02:48:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-group-by/m-p/2451741#M549442</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-06-22T02:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select - Group by</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-group-by/m-p/2451742#M549443</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;Use select statement without group by.After that inside loop try using at new hkont.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 02:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-group-by/m-p/2451742#M549443</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-06-22T02:50:20Z</dc:date>
    </item>
  </channel>
</rss>

