<?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: SubTotal - ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-alv/m-p/8385116#M1643251</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;Please find the sample code below. You can calculate the desired value and update the ALV total for the column with the calculated value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data : go_grid_mark  TYPE REF TO cl_gui_alv_grid,
          lv_totals TYPE REF TO data.
 
CALL METHOD go_grid_mark-&amp;gt;get_subtotals
      IMPORTING
        ep_collect00 = lv_totals.
 
ASSIGN lv_totals-&amp;gt;* TO &amp;lt;ft_totals&amp;gt;.
 
   LOOP AT &amp;lt;ft_totals&amp;gt; ASSIGNING &amp;lt;fs_total&amp;gt;.
      ASSIGN COMPONENT 'SOME_FIELD' OF STRUCTURE &amp;lt;fs_total&amp;gt; TO &amp;lt;fv_total&amp;gt;.
&amp;lt;fv_total&amp;gt; = "SOME VALUE".
modify &amp;lt;ft_totals&amp;gt; from &amp;lt;fs_total&amp;gt;
    ENDLOOP.
 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Nov 2011 19:45:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-21T19:45:36Z</dc:date>
    <item>
      <title>SubTotal - ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-alv/m-p/8385113#M1643248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Need to know if it is possible to manipulate the calculation in an ALV-line totalizer.&lt;/P&gt;&lt;P&gt;I mounted my ALV highlighting the column Sub total (do_sum) but in my report that I have colulas are percentages (where the column% occupancy is calculated on two columns) in this column should show the percentage of totalizing column totals and not the sum % of the above.&lt;/P&gt;&lt;P&gt;I really have no idea if that's possible, I would like to confirm a position before moving to the user.&lt;/P&gt;&lt;P&gt;Thank you for your attention.&lt;/P&gt;&lt;P&gt;Michely&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 19:00:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-alv/m-p/8385113#M1643248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-21T19:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: SubTotal - ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-alv/m-p/8385114#M1643249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try getting the data of the Subtotal, using GET_SUBTOTALS method and modify them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this would help: [Classical ALV: Change Subtotal|http://help-abap.zevolving.com/2008/09/classical-alv-change-subtotal/]&lt;/P&gt;&lt;P&gt;You should also make sure they print correctly, [Classical ALV: Change Subtotal u2013 II for Print|http://help-abap.zevolving.com/2009/03/classical-alv-change-subtotal-ii-for-print/]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 19:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-alv/m-p/8385114#M1643249</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2011-11-21T19:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: SubTotal - ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-alv/m-p/8385115#M1643250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 19:35:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-alv/m-p/8385115#M1643250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-21T19:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: SubTotal - ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-alv/m-p/8385116#M1643251</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;Please find the sample code below. You can calculate the desired value and update the ALV total for the column with the calculated value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data : go_grid_mark  TYPE REF TO cl_gui_alv_grid,
          lv_totals TYPE REF TO data.
 
CALL METHOD go_grid_mark-&amp;gt;get_subtotals
      IMPORTING
        ep_collect00 = lv_totals.
 
ASSIGN lv_totals-&amp;gt;* TO &amp;lt;ft_totals&amp;gt;.
 
   LOOP AT &amp;lt;ft_totals&amp;gt; ASSIGNING &amp;lt;fs_total&amp;gt;.
      ASSIGN COMPONENT 'SOME_FIELD' OF STRUCTURE &amp;lt;fs_total&amp;gt; TO &amp;lt;fv_total&amp;gt;.
&amp;lt;fv_total&amp;gt; = "SOME VALUE".
modify &amp;lt;ft_totals&amp;gt; from &amp;lt;fs_total&amp;gt;
    ENDLOOP.
 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 19:45:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-alv/m-p/8385116#M1643251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-21T19:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: SubTotal - ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-alv/m-p/8385117#M1643252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And how do I handle the general totalisation has the GET_TOTALS method but is not implemented, any tips? The SubTotal gave just right!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 19:46:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-alv/m-p/8385117#M1643252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-22T19:46:33Z</dc:date>
    </item>
  </channel>
</rss>

