<?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 ALV SUBTOTAL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal/m-p/4124600#M986178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to get subtotal in ALV Based on conditions&lt;/P&gt;&lt;P&gt;Ex:in the below i want subtotal for only 101 type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE 	Delivered&lt;/P&gt;&lt;P&gt;101	5&lt;/P&gt;&lt;P&gt;101	5&lt;/P&gt;&lt;P&gt;101	5&lt;/P&gt;&lt;P&gt;102	-8&lt;/P&gt;&lt;P&gt;301	-11&lt;/P&gt;&lt;P&gt;______________&lt;/P&gt;&lt;P&gt;101	15   &amp;lt;----ALV subtotal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jul 2008 03:40:18 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2008-07-11T03:40:18Z</dc:date>
    <item>
      <title>ALV SUBTOTAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal/m-p/4124600#M986178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to get subtotal in ALV Based on conditions&lt;/P&gt;&lt;P&gt;Ex:in the below i want subtotal for only 101 type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE 	Delivered&lt;/P&gt;&lt;P&gt;101	5&lt;/P&gt;&lt;P&gt;101	5&lt;/P&gt;&lt;P&gt;101	5&lt;/P&gt;&lt;P&gt;102	-8&lt;/P&gt;&lt;P&gt;301	-11&lt;/P&gt;&lt;P&gt;______________&lt;/P&gt;&lt;P&gt;101	15   &amp;lt;----ALV subtotal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 03:40:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal/m-p/4124600#M986178</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-07-11T03:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: ALV SUBTOTAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal/m-p/4124601#M986179</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;Do it this way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM fieldcat_init USING alv_fieldcat.&lt;/P&gt;&lt;P&gt;  PERFORM sort_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  alv_layout-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_callback_program = 'ZTEST' "Your report name&lt;/P&gt;&lt;P&gt;      is_layout          = alv_layout&lt;/P&gt;&lt;P&gt;      it_fieldcat        = alv_fieldcat&lt;/P&gt;&lt;P&gt;      it_sort            = it_sort[]&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab           = wt_outtab&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      program_error      = 1&lt;/P&gt;&lt;P&gt;      OTHERS             = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Fieldcat perform&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM fieldcat_init  USING    p_alv_fieldcat&lt;/P&gt;&lt;P&gt;                          TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;  DATA : ls_fieldcol TYPE slis_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR ls_fieldcol.&lt;/P&gt;&lt;P&gt;  ls_fieldcol-reptext_ddic = text-001.&lt;/P&gt;&lt;P&gt;  ls_fieldcol-fieldname = 'TYPE'.&lt;/P&gt;&lt;P&gt;  ls_fieldcol-tabname = 'WT_OUTTAB'.&lt;/P&gt;&lt;P&gt;  ls_fieldcol-col_pos = 1.&lt;/P&gt;&lt;P&gt;  APPEND ls_fieldcol TO p_alv_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR ls_fieldcol.&lt;/P&gt;&lt;P&gt;  ls_fieldcol-reptext_ddic = text-002.&lt;/P&gt;&lt;P&gt;  ls_fieldcol-fieldname = 'DELIVERED'.&lt;/P&gt;&lt;P&gt;  ls_fieldcol-tabname = 'WT_OUTTAB'.&lt;/P&gt;&lt;P&gt;  ls_fieldcol-do_sum = 'X'.&lt;/P&gt;&lt;P&gt;  ls_fieldcol-datatype = 'NUMC'.&lt;/P&gt;&lt;P&gt;  ls_fieldcol-col_pos = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your sort perform write the below code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_sort-fieldname = 'TYPE'.&lt;/P&gt;&lt;P&gt;  wa_sort-tabname = 'WT_OUTPUT'.&lt;/P&gt;&lt;P&gt;  wa_sort-spos = '1'.&lt;/P&gt;&lt;P&gt;  wa_sort-up = 'X'.&lt;/P&gt;&lt;P&gt;  wa_sort-subtot = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND wa_sort TO it_sort.&lt;/P&gt;&lt;P&gt;  CLEAR wa_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_sort-fieldname = 'DELIVERED'.&lt;/P&gt;&lt;P&gt;  wa_sort-tabname = 'WT_OUTPUT'.&lt;/P&gt;&lt;P&gt;  wa_sort-spos = '2'.&lt;/P&gt;&lt;P&gt;  wa_sort-up = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND wa_sort TO it_sort.&lt;/P&gt;&lt;P&gt;  CLEAR wa_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should give you the required results.&lt;/P&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;Lalit Kabra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 03:47:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal/m-p/4124601#M986179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T03:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: ALV SUBTOTAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal/m-p/4124602#M986180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya i was aware of this...but i donot want the sub total of other types rather tha 101...i need only 101..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is ths possible???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any body there&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 04:00:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal/m-p/4124602#M986180</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-07-11T04:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: ALV SUBTOTAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal/m-p/4124603#M986181</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;as per ur requirement, after all the rows u need to display the subtotal of 101 type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for that u need to manually calculate the total of the mov type and manually append a row into the final itab before ALV display. U can give color option also for highlighting it.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply back...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Rgds,&lt;/P&gt;&lt;P&gt;S.Bharani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 04:03:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal/m-p/4124603#M986181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T04:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: ALV SUBTOTAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal/m-p/4124604#M986182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;classical report you can do some manipulation easily...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can manipulate in ALV using ALV's event AFTER_LINE_OUTPUT here you can find some solution to do..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the parameter P_RS_LINEINFO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tutorials/ALV/Subtotals/Define.htm" target="test_blank"&gt;http://www.saptechnical.com/Tutorials/ALV/Subtotals/Define.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 04:04:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal/m-p/4124604#M986182</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-07-11T04:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALV SUBTOTAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal/m-p/4124605#M986183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Keshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ALV its not possible....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 04:05:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal/m-p/4124605#M986183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T04:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: ALV SUBTOTAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal/m-p/4124606#M986184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can achieve it in ALV list. Try these steps:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 1&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Define an internal table of type SLIS_T_EVENT, and a work area of type SLIS_ALV_EVENT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:	T_EVENT TYPE SLIS_T_EVENT,&lt;/P&gt;&lt;P&gt;	W_EVENT TYPE SLIS_ALV_EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Append  AFTER-LINE-OUTPUT event to the internal table T_EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR W_EVENT.&lt;/P&gt;&lt;P&gt;W_EVENT-FORM = SLIS_EV_AFTER_LINE_OUTPUT. &lt;/P&gt;&lt;P&gt;W_EVENT-NAME = SLIS_EV_AFTER_LINE_OUTPUT.u201CAFTER_LINE_OUTPUT event&lt;/P&gt;&lt;P&gt;APPEND W_EVENT TO T_EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The subtotals are calculated and displayed in the list from the subroutine AFTER_LINE_OUTPUT, which corresponds to the event AFTER_LINE_OUTPUT. This subroutine uses the parameter P_RS_LINEINFO, which contains settings for each line displayed in the list. The actual subtotalu2019s output is created using the WRITE and FORMAT statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM AFTER_LINE_OUTPUT&lt;/P&gt;&lt;P&gt;  USING P_RS_LINEINFO TYPE SLIS_LINEINFO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declaration of local variables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: L_SUCCESS TYPE WRBTR,     "Total For Successful Entries&lt;/P&gt;&lt;P&gt;        L_ERROR   TYPE WRBTR,     "Total For Unsuccessful Entries&lt;/P&gt;&lt;P&gt;        L_COUNT   TYPE I.         "No. Of lines in table T_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Getting No. of Lines in the table T_OUTPUT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DESCRIBE TABLE T_OUTPUT LINES L_COUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Displaying the totals after the last record of the internal&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;table T_OUTPUT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF P_RS_LINEINFO-TABINDEX = L_COUNT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  Loop At the internal table T_OUTPUT*      &lt;STRONG&gt;&amp;lt;&amp;lt; Replace it with ur own logic&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    &lt;STRONG&gt;LOOP AT T_OUTPUT INTO W_OUTPUT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;IF W_OUTPUT-SFLAG = C_CHECKED.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                             &lt;STRONG&gt;"Flag: Indicates error record&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;      Calculate total for unsuccessful entries*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;        &lt;STRONG&gt;L_ERROR = L_ERROR + W_OUTPUT-WRBTR.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;ELSE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;      Calculate total for successful entries*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;        &lt;STRONG&gt;L_SUCCESS = L_SUCCESS + W_OUTPUT-WRBTR.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;    Clear workarea W_OUTPUT*&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;      &lt;STRONG&gt;CLEAR W_OUTPUT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;ENDLOOP.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Set format for the total line display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ULINE AT (P_RS_LINEINFO-LINSZ).        "Dynamic Line Size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    FORMAT INTENSIFIED COLOR COL_TOTAL ON. "Setting the color&lt;/P&gt;&lt;P&gt;                                           "For the total row&lt;/P&gt;&lt;P&gt;                                           "As Yellow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE : /    SY-VLINE,                 "Vertical Line&lt;/P&gt;&lt;P&gt;                 TEXT-017,                 "Caption For Total&lt;/P&gt;&lt;P&gt;"Sum of Successful            &lt;/P&gt;&lt;P&gt;"Entries		&lt;/P&gt;&lt;P&gt;              33 L_SUCCESS,                "Total Of Successful&lt;/P&gt;&lt;P&gt;                                           "Entries&lt;/P&gt;&lt;P&gt;                 C_USD.                    "Currency Type USD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    POSITION     P_RS_LINEINFO-LINSZ.      "Dynamic Line Size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE :      SY-VLINE.                 "Vertical Line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ULINE AT     (P_RS_LINEINFO-LINSZ).    "Dynamic Line Size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE : /    SY-VLINE ,                "Vertical Line&lt;/P&gt;&lt;P&gt;                 TEXT-018,                 "Caption For Total&lt;/P&gt;&lt;P&gt;"Sum of Successful            &lt;/P&gt;&lt;P&gt;"Entries&lt;/P&gt;&lt;P&gt;              33 L_ERROR,                  "Total Of Unsuccessful&lt;/P&gt;&lt;P&gt;                                           "Entries&lt;/P&gt;&lt;P&gt;                 C_USD.                    "Currency Type USD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    POSITION     P_RS_LINEINFO-LINSZ.      "Dynamic Line Size&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE :      SY-VLINE.                 "Vertical Line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    FORMAT COLOR OFF.                      "Color Setting Off&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                                   "AFTER_LINE_OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The table T_EVENT is passed to the function 'REUSE_ALV_LIST_DISPLAY' while displaying the ALV Report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;      I_CALLBACK_PROGRAM = L_REPID    "Program Name&lt;/P&gt;&lt;P&gt;      IS_LAYOUT          = W_LAYOUT   "Layout of the Report&lt;/P&gt;&lt;P&gt;      IT_FIELDCAT        = T_FIELDCAT "Field Catalog for Report&lt;/P&gt;&lt;P&gt;      IT_EVENTS          = T_EVENT    "For setting the events&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;      T_OUTTAB           = T_OUTPUT   "Report data Internal Table &lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;      PROGRAM_ERROR      = 1&lt;/P&gt;&lt;P&gt;      OTHERS             = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 04:11:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal/m-p/4124606#M986184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T04:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: ALV SUBTOTAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal/m-p/4124607#M986185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnx   Jay and ghosh..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the concept...i guess it will only work in list display..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kesav....:-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 05:03:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal/m-p/4124607#M986185</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-07-11T05:03:56Z</dc:date>
    </item>
  </channel>
</rss>

