<?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 Aggregation functions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/aggregation-functions/m-p/1730352#M318043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to most efficient can I symulate Aggregation functions in ABAP?&lt;/P&gt;&lt;P&gt;I know that I can use max min, avg on single field in table, but I need to calculate in program, this values but not on a single field but on expression e.g:&lt;/P&gt;&lt;P&gt;max(kolumn1 - kolumn2 + kolumn3 / kolumn 4) and so one...&lt;/P&gt;&lt;P&gt;Or I miss something in documentation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Dec 2006 09:41:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-01T09:41:31Z</dc:date>
    <item>
      <title>Aggregation functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/aggregation-functions/m-p/1730352#M318043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to most efficient can I symulate Aggregation functions in ABAP?&lt;/P&gt;&lt;P&gt;I know that I can use max min, avg on single field in table, but I need to calculate in program, this values but not on a single field but on expression e.g:&lt;/P&gt;&lt;P&gt;max(kolumn1 - kolumn2 + kolumn3 / kolumn 4) and so one...&lt;/P&gt;&lt;P&gt;Or I miss something in documentation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 09:41:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/aggregation-functions/m-p/1730352#M318043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T09:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/aggregation-functions/m-p/1730353#M318044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; exceute the program RSHOWTIM to see more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 09:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/aggregation-functions/m-p/1730353#M318044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T09:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/aggregation-functions/m-p/1730354#M318045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk these programs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEMO_DATA_CALCULATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and checkout for DEMO* programs in SE38&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 09:53:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/aggregation-functions/m-p/1730354#M318045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T09:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/aggregation-functions/m-p/1730355#M318046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to add that I also need use functionality group by&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 09:54:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/aggregation-functions/m-p/1730355#M318046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T09:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/aggregation-functions/m-p/1730356#M318047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;max(kolumn1 - kolumn2 + kolumn3 / kolumn 4) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not possible to achieve the above result via just a SELECT statement you would need to capture the data into internal table and get the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT key sum(kolumn1) sum(kolumn2) sum(kolumn3) sum(kolumn4)&lt;/P&gt;&lt;P&gt;into table itab&lt;/P&gt;&lt;P&gt;from ztable&lt;/P&gt;&lt;P&gt;where key  in so_key&lt;/P&gt;&lt;P&gt;group by key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;    lval =  itab-kolumn3 / itab-kolumn 4.&lt;/P&gt;&lt;P&gt;    lval = kolumn1 - kolumn2 + lval.&lt;/P&gt;&lt;P&gt;    if lmax &amp;lt;= lval.&lt;/P&gt;&lt;P&gt;       lkey = itab-key.&lt;/P&gt;&lt;P&gt;       lmax = lval.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 11:55:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/aggregation-functions/m-p/1730356#M318047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-01T11:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation functions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/aggregation-functions/m-p/1730357#M318048</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;look here:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="84507"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2006 12:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/aggregation-functions/m-p/1730357#M318048</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-12-01T12:05:57Z</dc:date>
    </item>
  </channel>
</rss>

