<?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 count problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count-problem/m-p/1878324#M369100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) remove as Orgeh &lt;/P&gt;&lt;P&gt;2) use group by at end of ur where condition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jan 2007 09:02:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-10T09:02:31Z</dc:date>
    <item>
      <title>select count problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count-problem/m-p/1878321#M369097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallow I doing a select statement for count but its not write I have a error what I doing wrong in this select &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT orgeh COUNT( * ) AS orgeh&lt;/P&gt;&lt;P&gt;FROM pa0001&lt;/P&gt;&lt;P&gt;INTO TABLE count_itab&lt;/P&gt;&lt;P&gt;GROUP BY orgeh&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;WHERE ( persg EQ '6' OR persg EQ '7' OR persg EQ '8' )&lt;/P&gt;&lt;P&gt;  AND stell = 'A'&lt;/P&gt;&lt;P&gt;  AND orgeh NE '00009999'&lt;/P&gt;&lt;P&gt;  AND orgeh = 'Z'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 08:54:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count-problem/m-p/1878321#M369097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T08:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: select count problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count-problem/m-p/1878322#M369098</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;Try this code and kindly reward points by clicking the star on the left of reply,if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of count_itab,&lt;/P&gt;&lt;P&gt;          orgeh type pa0001-orgeh,&lt;/P&gt;&lt;P&gt;         count type i,&lt;/P&gt;&lt;P&gt;         end of count_itab.&lt;/P&gt;&lt;P&gt;SELECT orgeh COUNT( * ) &lt;/P&gt;&lt;P&gt;FROM pa0001&lt;/P&gt;&lt;P&gt;INTO TABLE count_itab&lt;/P&gt;&lt;P&gt;WHERE ( persg EQ '6' OR persg EQ '7' OR persg EQ '8' )&lt;/P&gt;&lt;P&gt;AND stell = 'A'&lt;/P&gt;&lt;P&gt;AND orgeh NE '00009999'&lt;/P&gt;&lt;P&gt;AND orgeh = 'Z'&lt;/P&gt;&lt;P&gt;GROUP BY orgeh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 08:58:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count-problem/m-p/1878322#M369098</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-01-10T08:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: select count problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count-problem/m-p/1878323#M369099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT orgeh COUNT( * ) 
FROM pa0001
INTO TABLE count_itab
WHERE  persg IN ( '6' , '7' , '8'  )
AND stell = 'A'
AND orgeh NE '00009999'
AND orgeh = 'Z'
GROUP BY orgeh.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Y u have specified two conditions for a single field?&lt;/P&gt;&lt;P&gt;AND orgeh NE '00009999'&lt;/P&gt;&lt;P&gt;AND orgeh = 'Z'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 09:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count-problem/m-p/1878323#M369099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T09:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: select count problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-count-problem/m-p/1878324#M369100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) remove as Orgeh &lt;/P&gt;&lt;P&gt;2) use group by at end of ur where condition&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2007 09:02:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-count-problem/m-p/1878324#M369100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-10T09:02:31Z</dc:date>
    </item>
  </channel>
</rss>

