<?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: using aggregation in ABAP code for internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregation-in-abap-code-for-internal-table/m-p/7622527#M1570416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_tab,&lt;/P&gt;&lt;P&gt;            date type dats,&lt;/P&gt;&lt;P&gt;            DEB_CRE_LC   type .....     " delare type &amp;amp; is the filed need to summerized&lt;/P&gt;&lt;P&gt;            end of ty_tab,&lt;/P&gt;&lt;P&gt;data: itab type standard table of ty_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT date &lt;/P&gt;&lt;P&gt;              SUM( DEB_CRE_LC )  as DEB_CRE_LC  FROM /BIC/AZFIAR_O500&lt;/P&gt;&lt;P&gt;              INTO corresponding fields of itab&lt;/P&gt;&lt;P&gt;              where CALMONTH GE LV_STARTMONTH AND CALMONTH LE LV_LASTCALMON&lt;/P&gt;&lt;P&gt;              group by date.   " date is the field available in your ODS/transparent table&lt;/P&gt;&lt;P&gt;              &lt;/P&gt;&lt;P&gt;simulate the above code in your program...&lt;/P&gt;&lt;P&gt;Hope this will work..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2011 11:30:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-07T11:30:10Z</dc:date>
    <item>
      <title>using aggregation in ABAP code for internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregation-in-abap-code-for-internal-table/m-p/7622524#M1570413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written following code to get cumulative amount on a date but i have to hit database for each record.&lt;/P&gt;&lt;P&gt;Can't I use some function similar to SUM for doing the same thing on internal table??It would increase my performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code is:&lt;/P&gt;&lt;P&gt;    SELECT SUM( DEB_CRE_LC ) FROM /BIC/AZFIAR_O500&lt;/P&gt;&lt;P&gt;     INTO LV_BALMONTH   WHERE   DEBITOR = LV_DEBITOR AND&lt;/P&gt;&lt;P&gt;    CALMONTH GE LV_STARTMONTH AND CALMONTH  LE LV_LASTCALMON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to put  ZFIAR data to internal table and read and do SUM thing..is it possible?? withotut usiong loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 05:23:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregation-in-abap-code-for-internal-table/m-p/7622524#M1570413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-07T05:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: using aggregation in ABAP code for internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregation-in-abap-code-for-internal-table/m-p/7622525#M1570414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use SUM statement at the time of selecting data to an internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not know if any keyword is there to do similar activity...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 10:56:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregation-in-abap-code-for-internal-table/m-p/7622525#M1570414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-07T10:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: using aggregation in ABAP code for internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregation-in-abap-code-for-internal-table/m-p/7622526#M1570415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have loop on your internal table, then use COLLECT or SUM ststement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 11:07:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregation-in-abap-code-for-internal-table/m-p/7622526#M1570415</guid>
      <dc:creator>prasoon_sahay</dc:creator>
      <dc:date>2011-03-07T11:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: using aggregation in ABAP code for internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregation-in-abap-code-for-internal-table/m-p/7622527#M1570416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types : begin of ty_tab,&lt;/P&gt;&lt;P&gt;            date type dats,&lt;/P&gt;&lt;P&gt;            DEB_CRE_LC   type .....     " delare type &amp;amp; is the filed need to summerized&lt;/P&gt;&lt;P&gt;            end of ty_tab,&lt;/P&gt;&lt;P&gt;data: itab type standard table of ty_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT date &lt;/P&gt;&lt;P&gt;              SUM( DEB_CRE_LC )  as DEB_CRE_LC  FROM /BIC/AZFIAR_O500&lt;/P&gt;&lt;P&gt;              INTO corresponding fields of itab&lt;/P&gt;&lt;P&gt;              where CALMONTH GE LV_STARTMONTH AND CALMONTH LE LV_LASTCALMON&lt;/P&gt;&lt;P&gt;              group by date.   " date is the field available in your ODS/transparent table&lt;/P&gt;&lt;P&gt;              &lt;/P&gt;&lt;P&gt;simulate the above code in your program...&lt;/P&gt;&lt;P&gt;Hope this will work..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 11:30:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-aggregation-in-abap-code-for-internal-table/m-p/7622527#M1570416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-07T11:30:10Z</dc:date>
    </item>
  </channel>
</rss>

