<?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 GRID REPORT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-report/m-p/5359510#M1233744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, my problem is solved, but a new problem is created. While displaying the same output in print preview the calculated figures are not shown, it is showing the total of that column which is wrong as i am calulating per ton . Do you have any solution for this.&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;Sachin Raut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Mar 2009 04:43:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-30T04:43:19Z</dc:date>
    <item>
      <title>ALV GRID REPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-report/m-p/5359508#M1233742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to calculate a formula in subtotal line of ALV GRID DISPLAY.&lt;/P&gt;&lt;P&gt;For eq I have 4 columns - GSBER, Sale Qty, Sale Value, Sale Per Ton.&lt;/P&gt;&lt;P&gt;When I'll take subtotal on GSBER, total of QTY and sale value will be calulated automatically , but I want to calculate Sales Per ton based on Total Sale Value and Total Sales Qty. Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin Raut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:23:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-report/m-p/5359508#M1233742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T06:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID REPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-report/m-p/5359509#M1233743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes it is possible....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program     = l_repid
*      i_callback_top_of_page = 'TOP_OF_PAGE'
      is_layout              = l_layout
      is_print               = l_print
      it_sort                = it_sort
      it_filter              = it_filter
      it_fieldcat            = t_fieldcat[]
      it_events              = t_event
      it_event_exit          = it_event_exit
    TABLES
      t_outtab               = &amp;lt;tab&amp;gt;
    EXCEPTIONS
      program_error          = 1
      OTHERS                 = 2.
  IF sy-subrc = 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  TOP_OF_PAGE
*&amp;amp;---------------------------------------------------------------------*
FORM top_of_page.

  DATA: lo_grid TYPE REF TO cl_gui_alv_grid.

* get the global reference
  CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
      e_grid = lo_grid.

* get the subtotal
  DATA: it_01 TYPE REF TO data.

  CALL METHOD lo_grid-&amp;gt;get_subtotals
    IMPORTING
      ep_collect01 = it_01.

* change the data
  FIELD-SYMBOLS: &amp;lt;ft_tab&amp;gt; TYPE ANY TABLE,
                 &amp;lt;fs_tab&amp;gt; TYPE ANY,
                 &amp;lt;fs_value1&amp;gt; TYPE ANY,
                 &amp;lt;fs_value2&amp;gt; TYPE ANY,
                 &amp;lt;ff_field&amp;gt; TYPE ANY.
  ASSIGN it_01-&amp;gt;* TO &amp;lt;ft_tab&amp;gt;.


  LOOP AT &amp;lt;ft_tab&amp;gt; ASSIGNING &amp;lt;fs_tab&amp;gt;.
    ASSIGN COMPONENT 'NETPR' OF STRUCTURE &amp;lt;fs_tab&amp;gt; TO &amp;lt;ff_field&amp;gt;.
    ASSIGN COMPONENT 'KWMENG' OF STRUCTURE &amp;lt;fs_tab&amp;gt; TO &amp;lt;fs_value1&amp;gt;.
    ASSIGN COMPONENT 'NETWR' OF STRUCTURE &amp;lt;fs_tab&amp;gt; TO &amp;lt;fs_value2&amp;gt;.
    &amp;lt;ff_field&amp;gt; = &amp;lt;fs_value2&amp;gt; / &amp;lt;fs_value1&amp;gt; .
  ENDLOOP.

* Refresh the table display
  CALL METHOD lo_grid-&amp;gt;refresh_table_display
    EXPORTING
      i_soft_refresh = 'X'.


ENDFORM.                    " top_of_page
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2009 06:25:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-report/m-p/5359509#M1233743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-26T06:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID REPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-report/m-p/5359510#M1233744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, my problem is solved, but a new problem is created. While displaying the same output in print preview the calculated figures are not shown, it is showing the total of that column which is wrong as i am calulating per ton . Do you have any solution for this.&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;Sachin Raut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Mar 2009 04:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-report/m-p/5359510#M1233744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-30T04:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID REPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-report/m-p/5359511#M1233745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;guys am having a problem with my program when I run it in Backround for this. The ASSIGN it_01-&amp;gt;* TO &amp;lt;ft_tab&amp;gt;.&amp;nbsp; does not work in backround it only works in foreground. How can I solve this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 10:17:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-report/m-p/5359511#M1233745</guid>
      <dc:creator>duma_msongelwa</dc:creator>
      <dc:date>2013-06-14T10:17:42Z</dc:date>
    </item>
  </channel>
</rss>

