<?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: sum function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sum-function/m-p/6268148#M1386171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Writing a code Fucntionality In ALV is not seems to be possible .&lt;/P&gt;&lt;P&gt;Use this formula at the Final loop there might be any loop existing in the system where u can apply your formula .&lt;/P&gt;&lt;P&gt;And add one field and dislpay .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds aryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Nov 2009 11:07:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-09T11:07:29Z</dc:date>
    <item>
      <title>sum function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sum-function/m-p/6268147#M1386170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All Expert's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to use SUM (Total Qty) for other calculation. i am do sum with foll code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wa_fieldcat-row_pos = 1.
  wa_fieldcat-col_pos = 5.
  wa_fieldcat-tabname = 'ITAB'.
  wa_fieldcat-fieldname = 'ORDER_QTY'.
  wa_fieldcat-seltext_m = 'ORDER QTY'.
  wa_fieldcat-outputlen = '9'.
  wa_fieldcat-do_sum = 'X'.
  APPEND wa_fieldcat TO i_fieldcat.
  CLEAR wa_fieldcat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(same Calculation for Delv qty, Order Qty, Total.)&lt;/P&gt;&lt;P&gt;Then i disp SUM when u run report. i wnt to use this total qty in other function like calculation of percentage.&lt;/P&gt;&lt;P&gt;My criiterica is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOTAL ORDER QTY / TOTAL Delivery qty * 100. ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hw to put this code in ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bhavesh panchal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 10:02:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sum-function/m-p/6268147#M1386170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-09T10:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: sum function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sum-function/m-p/6268148#M1386171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Writing a code Fucntionality In ALV is not seems to be possible .&lt;/P&gt;&lt;P&gt;Use this formula at the Final loop there might be any loop existing in the system where u can apply your formula .&lt;/P&gt;&lt;P&gt;And add one field and dislpay .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds aryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 11:07:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sum-function/m-p/6268148#M1386171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-09T11:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: sum function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sum-function/m-p/6268149#M1386172</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;Capturing the SUM field and using that in another calculation is not possible. Why dont you have another field with the name SUM. When you loop thru the internal table just keep on assing the values to the SUM field and later use this field for your calculation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Nov 2009 11:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sum-function/m-p/6268149#M1386172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-09T11:25:33Z</dc:date>
    </item>
  </channel>
</rss>

