<?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 using aggregate function count in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregate-function-count/m-p/3387270#M813330</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;I want to select 2 fields from a table and put into structure (gw_konzs.) and with respect to that  i want to use aggregate function count(*) for knowing how many rows has been selected ? and i dont want to use select &amp;amp; endselect&lt;/P&gt;&lt;P&gt;please help regarding this ...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select konts ltext from ztab into corresponding fields of gw_konzs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select count(*) from kna1 into gw_konzs&lt;/P&gt;&lt;P&gt;where konzs = gw_konzs-konzs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append gw_konzs to gt_konzs&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2008 17:00:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-19T17:00:22Z</dc:date>
    <item>
      <title>using aggregate function count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregate-function-count/m-p/3387270#M813330</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;I want to select 2 fields from a table and put into structure (gw_konzs.) and with respect to that  i want to use aggregate function count(*) for knowing how many rows has been selected ? and i dont want to use select &amp;amp; endselect&lt;/P&gt;&lt;P&gt;please help regarding this ...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select konts ltext from ztab into corresponding fields of gw_konzs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select count(*) from kna1 into gw_konzs&lt;/P&gt;&lt;P&gt;where konzs = gw_konzs-konzs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append gw_konzs to gt_konzs&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 17:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregate-function-count/m-p/3387270#M813330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T17:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: using aggregate function count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregate-function-count/m-p/3387271#M813331</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;I want to select 2 fields from a table and put into structure    and i want to select based on the where condition i dont want to use select &amp;amp; endselect&lt;/P&gt;&lt;P&gt;please help regarding this ...........&lt;/P&gt;&lt;P&gt;rewarded if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;gw_detail &amp;amp; gw_konzs is structure&lt;/P&gt;&lt;P&gt;gt_detail &amp;amp; gt_konzsis internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kunnr name1 from kna1 into corresponding fields of gw_detail where konzs = gw_konzs-konzs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gw_detail-konzs = gw_konzs-konzs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append gw_detail-konzs to gt_detail-konzs &lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 17:07:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregate-function-count/m-p/3387271#M813331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T17:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: using aggregate function count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregate-function-count/m-p/3387272#M813332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code doesn't link together, but you need something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select konzs count(*)&lt;/P&gt;&lt;P&gt;into l_it_mytable&lt;/P&gt;&lt;P&gt;from kna1&lt;/P&gt;&lt;P&gt;group by konzs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 10:29:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregate-function-count/m-p/3387272#M813332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T10:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: using aggregate function count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregate-function-count/m-p/3387273#M813333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is not working fine............ and i dont want to use select.......endselect but when i check for syntax it is showing error for not using endselect.............what to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 11:09:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregate-function-count/m-p/3387273#M813333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T11:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: using aggregate function count</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregate-function-count/m-p/3387274#M813334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to select gruop key(konzs) field from ztable then i want to know how many customers are there with respect to gruop key(konzs) field  and how many vendors are for that group key ..iam using aggregate function count(*) but i dont want to use inside select..endselect  &lt;/P&gt;&lt;P&gt;sample output should be:&lt;/P&gt;&lt;P&gt;grp key   customer   vendor&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------------" /&gt;&lt;P&gt;abc          1               4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 13:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregate-function-count/m-p/3387274#M813334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T13:02:16Z</dc:date>
    </item>
  </channel>
</rss>

