<?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: aggregate function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/aggregate-function/m-p/3711061#M893439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!!&lt;/P&gt;&lt;P&gt;Y are you trying to sum up in the select query itself.Better way will be use select query only for picking up the data in internal table.&lt;/P&gt;&lt;P&gt;Then loop at internal table.Divide each data by KURSF and then SUM them.&lt;/P&gt;&lt;P&gt;Hope this helps..if i understood ur query in write way.&lt;/P&gt;&lt;P&gt;Kindly reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deepika&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Deepika Singh on Apr 24, 2008 6:00 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2008 03:59:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-24T03:59:01Z</dc:date>
    <item>
      <title>aggregate function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/aggregate-function/m-p/3711058#M893436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I have a select statment from COPA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT&lt;/P&gt;&lt;P&gt;       frwae&lt;/P&gt;&lt;P&gt;       perio&lt;/P&gt;&lt;P&gt;       SUM( VV123 ) as VV123&lt;/P&gt;&lt;P&gt;    FROM CE1XXXX&lt;/P&gt;&lt;P&gt;    INTO corresponding fields of table t_CE1XXXX&lt;/P&gt;&lt;P&gt;    group by frwae perio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish the each line of VV123 divided by the each KURSF and output the SUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT&lt;/P&gt;&lt;P&gt;       frwae&lt;/P&gt;&lt;P&gt;       perio&lt;/P&gt;&lt;P&gt;       SUM( VV123 / &lt;STRONG&gt;KURSF&lt;/STRONG&gt;  ) as VV123&lt;/P&gt;&lt;P&gt;    FROM CE1XXXX&lt;/P&gt;&lt;P&gt;    INTO corresponding fields of table t_CE1XXXX&lt;/P&gt;&lt;P&gt;    group by frwae perio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but not work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks to all, points will be reward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 03:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/aggregate-function/m-p/3711058#M893436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T03:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: aggregate function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/aggregate-function/m-p/3711059#M893437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, the ABAP syntax will not allow it. Basically you are confusing the Run-time first by specifying &lt;STRONG&gt;SUM&lt;/STRONG&gt; but then calling a division function within it. First get the result by division then use SUM or first SUM then use division but you cannot use the aggregate function like that with ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sougata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 03:24:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/aggregate-function/m-p/3711059#M893437</guid>
      <dc:creator>Sougata</dc:creator>
      <dc:date>2008-04-24T03:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: aggregate function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/aggregate-function/m-p/3711060#M893438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, problem solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  I will &lt;/P&gt;&lt;P&gt;Select vv010, KURSF from CE1XXX into Itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  Then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Loop.&lt;/P&gt;&lt;P&gt;     Result = VV010 / KURSF.&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 03:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/aggregate-function/m-p/3711060#M893438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T03:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: aggregate function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/aggregate-function/m-p/3711061#M893439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!!&lt;/P&gt;&lt;P&gt;Y are you trying to sum up in the select query itself.Better way will be use select query only for picking up the data in internal table.&lt;/P&gt;&lt;P&gt;Then loop at internal table.Divide each data by KURSF and then SUM them.&lt;/P&gt;&lt;P&gt;Hope this helps..if i understood ur query in write way.&lt;/P&gt;&lt;P&gt;Kindly reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deepika&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Deepika Singh on Apr 24, 2008 6:00 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2008 03:59:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/aggregate-function/m-p/3711061#M893439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-24T03:59:01Z</dc:date>
    </item>
  </channel>
</rss>

