<?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: alv subtotal calculation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-calculation/m-p/3696049#M889943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnks for ur replies now problm is solved&lt;/P&gt;&lt;P&gt;awarded points to suitable answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Apr 2008 07:38:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-23T07:38:57Z</dc:date>
    <item>
      <title>alv subtotal calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-calculation/m-p/3696045#M889939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my query is : &lt;/P&gt;&lt;P&gt;i have to calculate rate per min , p3 =  p1/p2 in subtotal column.but in the scenario given below it is just adding all the rpm and giving the total = 0.56 , &lt;/P&gt;&lt;P&gt;but -3612/13940 = 0.26 is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;  amt(P1)     minutes (p2)   rpm(rate per min)(p3)&lt;/P&gt;&lt;P&gt;9,500.00-       5233             1.82-&lt;/P&gt;&lt;P&gt;1,500.00        3235              0.46&lt;/P&gt;&lt;P&gt;4,388.00        5472              0.80&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------" /&gt;&lt;P&gt;3,612.00-      13940              0.56-   -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; subtotal of above rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i want the subtotal value of p3 as p1/p2  and not just sum &lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 21, 2008 5:47 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 12:26:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-calculation/m-p/3696045#M889939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T12:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: alv subtotal calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-calculation/m-p/3696046#M889940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This you can do using the Subtotal_text event of alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the sample code below..&lt;/P&gt;&lt;P&gt;in the event you will have the SUB TOTAL ROW INFORMATION, now divide the P1/P2  and get the P3 value.&lt;/P&gt;&lt;P&gt;modify the P3 value with value calculated , this will show the Changed value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For information:- &lt;/P&gt;&lt;P&gt;you can find 2 programs one using class, one using Grid Function.&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="3796286"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 12:44:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-calculation/m-p/3696046#M889940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T12:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: alv subtotal calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-calculation/m-p/3696047#M889941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Hi Srikar,

ALV does not calculate the way u r expecting, but what u can do is that calculate manually the way u r calculating for column p3(p1/p2) and make it color for that row as subtotal color. 

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 03:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-calculation/m-p/3696047#M889941</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-04-22T03:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: alv subtotal calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-calculation/m-p/3696048#M889942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HELLO YASH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UR REPLY HELPED ME.&lt;/P&gt;&lt;P&gt;BUT A SMALL PROBLEM, &lt;/P&gt;&lt;P&gt;I AM GETTING THE &lt;STRONG&gt;SUBTOTAL&lt;/STRONG&gt; THE WAY I WANT LIKE    :  P3 = ( P1 / P2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT THE &lt;STRONG&gt;SUM&lt;/STRONG&gt; AT THE END IS SUMMING UP ALL THE &lt;/P&gt;&lt;P&gt;SUBTOTALS AND DISPLAYING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IS THERE A WAY WHERE I CAN GET THE SUM ALSO THE SAME WAY LIKE P3 = P1 / P2 FOR THE FIELD P3 ???&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;REPLY , POINTS WILL BE AWARDED..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 08:35:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-calculation/m-p/3696048#M889942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T08:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: alv subtotal calculation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-calculation/m-p/3696049#M889943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnks for ur replies now problm is solved&lt;/P&gt;&lt;P&gt;awarded points to suitable answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 07:38:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-calculation/m-p/3696049#M889943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T07:38:57Z</dc:date>
    </item>
  </channel>
</rss>

