<?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 text form routine not getting executed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541207#M1562417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use END_OF_LIST event for this.&lt;/P&gt;&lt;P&gt;FORM get_events.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_EVENTS_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_list_type = 0&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      et_events   = it_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE it_events WITH KEY name = slis_ev_end_of_list INTO wa_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE 'SUBTOTAL_TEXT' TO wa_events-form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MODIFY it_events FROM wa_events INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In form SUBTOTAL_TEXT...ENDFORm display the text you want by write statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sequence should be :-&lt;/P&gt;&lt;P&gt;1) call field cat&lt;/P&gt;&lt;P&gt;2) Call perform say get_events which will contain code as shown above.&lt;/P&gt;&lt;P&gt;3) call ALV LIST display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rupali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rupali Punekar on Dec 29, 2010 8:00 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Dec 2010 06:55:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-29T06:55:56Z</dc:date>
    <item>
      <title>ALV Subtotal text form routine not getting executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541204#M1562414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using REUSE_ALV_LIST_DISPLAY for displaying my output internal table. I have filled field catalogue with the required fields, and IT sort table with the field for which i want to do subtotal. I am getting the expected output( subtotal row).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sort .&lt;/P&gt;&lt;P&gt;*For sorting and subtotal&lt;/P&gt;&lt;P&gt;  wa_sort-spos = 1.&lt;/P&gt;&lt;P&gt;  wa_sort-fieldname = 'ZUONR'.&lt;/P&gt;&lt;P&gt;  wa_sort-tabname = 'IT_OUTPUT'.&lt;/P&gt;&lt;P&gt;  wa_sort-subtot = 'X'.&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;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have filled events with 'TOP_OF_PAGE' and 'SUBTOTAL_TEXT' with corresponding form routines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my SUBTOTAL_TEXT subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM subtotal_text CHANGING&lt;/P&gt;&lt;P&gt;               p_total TYPE any&lt;/P&gt;&lt;P&gt;               p_subtot_text TYPE slis_subtot_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Assignment level sub total&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF p_subtot_text-criteria = 'ZUONR'.&lt;/P&gt;&lt;P&gt;    p_subtot_text-display_text_for_subtotal&lt;/P&gt;&lt;P&gt;    = 'Publication  level subtotal'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i execute my report, Top of page events get executed and header gets populated in the output correctly, but subtotal texts do not gets populated. I have debugged the program and kept break-points in the subtotal texts subroutine, but it is not called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone plz guide me??? Correct me If I am wrong anywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Swathi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: swathi Chandra on Dec 28, 2010 6:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Dec 2010 12:33:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541204#M1562414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-28T12:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Subtotal text form routine not getting executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541205#M1562415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find below link to sample code for auto calculating the sub total in ALV , and you can pass the text for subtotal as per requirement :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://wiki.sdn.sap.com/wiki/display/ABAP/ALV&lt;EM&gt;Standard&lt;/EM&gt;Sum&lt;EM&gt;Total&lt;/EM&gt;Or+Subtotal]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rupali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 04:18:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541205#M1562415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-29T04:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Subtotal text form routine not getting executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541206#M1562416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rupali,&lt;/P&gt;&lt;P&gt;Thanks for your quick responde.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code posted in the link doesnt solve my problem. I could able to get the total and subtotal. &lt;/P&gt;&lt;P&gt;I am facing problem in case of Subtotal text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: Output display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assignment	City            Industry key             Customer      Debit    Credit            Balance        Remarks ---Column header&lt;/P&gt;&lt;P&gt;     TH            CHENNAI   A001-ACCREDITED  500000022   0.00     32,000.00      32,000.00 --- Output internal table entry&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   TH            CHENNAI   A001-ACCREDITED  500000022   0.00     32,000.00      32,000.00 --- Subtotal of Customer&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  TH            CHENNAI  A001-ACCREDITED                       0.00      32,000.00      32,000.00 --- Subtotal of Industry key&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt; TH            CHENNAI                                                        0.00      32,000.00      32,000.00 --- Subtotal of City&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I require output like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assignment	City            Industry key             Customer      Debit    Credit            Balance        Remarks&lt;/P&gt;&lt;P&gt;     TH            CHENNAI   A001-ACCREDITED  500000022   0.00     32,000.00      32,000.00 --- Output internal table entry&lt;/P&gt;&lt;P&gt;Subtotal of   Customer                                                         0.00     32,000.00      32,000.00 --- Subtotal of Customer&lt;/P&gt;&lt;P&gt;Subtotal of   Industry                                                           0.00      32,000.00      32,000.00 --- Subtotal of Industry key&lt;/P&gt;&lt;P&gt;Subtotal of   City                                                                  0.00      32,000.00      32,000.00 --- Subtotal of City&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pease provide me solution or rectify my code if it is wrong.&lt;/P&gt;&lt;P&gt;It will be much helpful to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swathi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: swathi Chandra on Dec 29, 2010 10:31 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: swathi Chandra on Dec 29, 2010 10:37 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 04:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541206#M1562416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-29T04:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Subtotal text form routine not getting executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541207#M1562417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use END_OF_LIST event for this.&lt;/P&gt;&lt;P&gt;FORM get_events.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_EVENTS_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_list_type = 0&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      et_events   = it_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE it_events WITH KEY name = slis_ev_end_of_list INTO wa_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE 'SUBTOTAL_TEXT' TO wa_events-form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MODIFY it_events FROM wa_events INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In form SUBTOTAL_TEXT...ENDFORm display the text you want by write statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sequence should be :-&lt;/P&gt;&lt;P&gt;1) call field cat&lt;/P&gt;&lt;P&gt;2) Call perform say get_events which will contain code as shown above.&lt;/P&gt;&lt;P&gt;3) call ALV LIST display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rupali&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rupali Punekar on Dec 29, 2010 8:00 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 06:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541207#M1562417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-29T06:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Subtotal text form routine not getting executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541208#M1562418</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;My code sequence is same as u mentioned,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fill field catalogue&lt;/P&gt;&lt;P&gt;Fill IT_SORT table for subtotal&lt;/P&gt;&lt;P&gt;Fill events table with top of page and subtotal text subroutines&lt;/P&gt;&lt;P&gt;Call ALV list for display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ps:- I have implemented Subroutines for TOP_OF_PAGE and SUBTOTAL_TEXT events.&lt;/P&gt;&lt;P&gt;But subtotal event is not getting triggered even if i fill EVENTS parameter in ALV fm with appropriate subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Use END_OF_LIST event for this." &lt;/P&gt;&lt;P&gt;I could not get this. can u explain in detail??&lt;/P&gt;&lt;P&gt;Why should i use END_OF_LIST event??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swathi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 11:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541208#M1562418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-29T11:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Subtotal text form routine not getting executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541209#M1562419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did the debugger control enter the subroutine ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 11:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541209#M1562419</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-12-29T11:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Subtotal text form routine not getting executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541210#M1562420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written sample code using END_OF_LIST and it is working as per the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  {wa_sort-fieldname =  'QAUN1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_sort-up = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_sort-subtot = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND wa_sort TO it_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR wa_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_EVENTS_GET'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_list_type = 0&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      et_events   = it_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE it_events WITH KEY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  name = slis_ev_end_of_list INTO wa_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE 'SUBTOTAL_TEXT' TO wa_events-form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MODIFY it_events FROM wa_events INDEX sy-tabix.&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;&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               = sy-repid&lt;/P&gt;&lt;P&gt;      i_callback_user_command   = c_f_user_command&lt;/P&gt;&lt;P&gt;      is_layout                               = it_layout&lt;/P&gt;&lt;P&gt;      it_fieldcat                              = t_fieldcat&lt;/P&gt;&lt;P&gt;      it_events                              = it_events&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab                                 = t_detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&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;&lt;/P&gt;&lt;P&gt;form SUBTOTAL_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  write :'This is my total'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endform .}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks,&lt;/P&gt;&lt;P&gt;Rupali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 11:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541210#M1562420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-29T11:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Subtotal text form routine not getting executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541211#M1562421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 12:18:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541211#M1562421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-29T12:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Subtotal text form routine not getting executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541212#M1562422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi keshav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, debugger is not entering the subroutine. I Could not track the reason why it is not entering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi prabhakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my initial post i have posted my subtotal_text subroutine code.&lt;/P&gt;&lt;P&gt;I have cross-checked with your code. It is simlar only. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do guide me,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all,&lt;/P&gt;&lt;P&gt;Swathi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 12:23:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541212#M1562422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-29T12:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Subtotal text form routine not getting executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541213#M1562423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you calling events ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls try FM 'REUSE_ALV_EVENTS_GET' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rupali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 13:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541213#M1562423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-29T13:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Subtotal text form routine not getting executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541214#M1562424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check whether its working in program BCALV_TEST_GRID_EVENTS. mark the checkbox and check it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 14:07:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541214#M1562424</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-12-29T14:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Subtotal text form routine not getting executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541215#M1562425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ITOUTPUT is a ctructure with fields ZUONR, ORT01, BRSCH, KUNNR, DEBIT amount and CREDIT amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  PERFORM fill_catalogue.&lt;/P&gt;&lt;P&gt;  PERFORM sort.&lt;/P&gt;&lt;P&gt;  PERFORM prepare_event_table.&lt;/P&gt;&lt;P&gt;  PERFORM call_alv.&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM fill_catalogue .&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;do_sum is set for debit and credit fields.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;ENDFORM.                    " FILL_CATALOGUE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sort .&lt;/P&gt;&lt;P&gt;*For sorting and subtotal&lt;/P&gt;&lt;P&gt;  wa_sort-spos = 1.&lt;/P&gt;&lt;P&gt;  wa_sort-fieldname = 'ZUONR'.&lt;/P&gt;&lt;P&gt;  wa_sort-tabname = 'IT_OUTPUT'.&lt;/P&gt;&lt;P&gt;  wa_sort-subtot = 'X'.&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;  wa_sort-spos = 2.&lt;/P&gt;&lt;P&gt;  wa_sort-fieldname = 'ORT01'.&lt;/P&gt;&lt;P&gt;  wa_sort-tabname = 'IT_OUTPUT'.&lt;/P&gt;&lt;P&gt;  wa_sort-subtot = 'X'.&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;ENDFORM. " SORT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM prepare_event_table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      et_events = it_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE it_event INTO wa_event&lt;/P&gt;&lt;P&gt;       WITH KEY name = slis_ev_top_of_page .&lt;/P&gt;&lt;P&gt;  wa_event-form = slis_ev_top_of_page .&lt;/P&gt;&lt;P&gt;  MODIFY it_event FROM wa_event INDEX sy-tabix .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE it_event INTO wa_event&lt;/P&gt;&lt;P&gt;       WITH KEY name = slis_ev_end_of_list   .&lt;/P&gt;&lt;P&gt;  wa_event-form = slis_ev_end_of_list  .&lt;/P&gt;&lt;P&gt;  MODIFY it_event FROM wa_event INDEX sy-tabix .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE it_event INTO wa_event&lt;/P&gt;&lt;P&gt;       WITH KEY name = slis_ev_subtotal_text  .&lt;/P&gt;&lt;P&gt;  wa_event-form = slis_ev_subtotal_text .&lt;/P&gt;&lt;P&gt;  MODIFY it_event FROM wa_event INDEX sy-tabix .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "prepare_event_table&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM call_alv .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Function Module call to generate ALV&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'                                 "GRID&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_callback_program = sy-repid&lt;/P&gt;&lt;P&gt;      it_fieldcat        = it_fieldcat[]&lt;/P&gt;&lt;P&gt;      is_layout          = ls_layout&lt;/P&gt;&lt;P&gt;      it_sort            = it_sort[]&lt;/P&gt;&lt;P&gt;      it_events          = it_event[]&lt;/P&gt;&lt;P&gt;      i_save             = 'A'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab           = it_output.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.                                         "#EC *&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " CALL_ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are my event subroutines&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM subtotal_text CHANGING&lt;/P&gt;&lt;P&gt;             p_total TYPE any&lt;/P&gt;&lt;P&gt;             p_subtot_text TYPE slis_subtot_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  BREAK-POINT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Material level sub total&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF p_subtot_text-criteria = 'ZUONR'.&lt;/P&gt;&lt;P&gt;    p_subtot_text-display_text_for_subtotal&lt;/P&gt;&lt;P&gt;    = 'Publication  level subtotal'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM .                  "subtotal_text&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM end_of_list.&lt;/P&gt;&lt;P&gt;  CLEAR g_page_cnt.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "END_OF_LIST&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM top_of_page.&lt;/P&gt;&lt;P&gt;  DATA: l_line_size  TYPE sylinsz.           " Line size&lt;/P&gt;&lt;P&gt;  DATA: st_list_top_of_page TYPE slis_t_listheader.&lt;/P&gt;&lt;P&gt;  DATA: text TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'Date: '(021) sy-datum&lt;EM&gt;6(2) '.' sy-datum&lt;/EM&gt;4(2) '.' sy-datum+0(4) INTO text.&lt;/P&gt;&lt;P&gt;  l_line_size = 140.&lt;/P&gt;&lt;P&gt;  WRITE  AT l_line_size text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  NEW-LINE.&lt;/P&gt;&lt;P&gt;  g_page_cnt = g_page_cnt + 1.&lt;/P&gt;&lt;P&gt;  l_line_size = 140.&lt;/P&gt;&lt;P&gt;  WRITE AT l_line_size 'Page no:'(022).&lt;/P&gt;&lt;P&gt;  l_line_size = l_line_size + 8.&lt;/P&gt;&lt;P&gt;  WRITE AT l_line_size g_page_cnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display list header&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_logo             = space&lt;/P&gt;&lt;P&gt;      it_list_commentary = st_list_top_of_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " top_of_page&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swathi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 07:06:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541215#M1562425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-30T07:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Subtotal text form routine not getting executed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541216#M1562426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could able to resolve the issue by myself. I have debugged the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The change i had done is, For the field you want sub total, Add the same entry in LT_FIELDCAT with same data and set the field NO_OUT as 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_fieldcat-fieldname  = 'ZUONR'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-tabname    = 'IT_OUTPUT'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-col_pos    = '1'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-seltext_l  = 'Publication'(002).&lt;/P&gt;&lt;P&gt;  ls_fieldcat-emphasize = 'C111'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-no_out = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND ls_fieldcat TO it_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR ls_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_fieldcat-fieldname  = 'ZUONR'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-tabname    = 'IT_OUTPUT'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-col_pos    = '1'.&lt;/P&gt;&lt;P&gt;  ls_fieldcat-seltext_l  = 'Publication'(002).&lt;/P&gt;&lt;P&gt;  ls_fieldcat-emphasize = 'C111'.&lt;/P&gt;&lt;P&gt;  APPEND ls_fieldcat TO it_fieldcat.&lt;/P&gt;&lt;P&gt;  CLEAR ls_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the first entry is added in field catalogue, that makes the subtotal tex visible (NO_OUT = 'X'). but column will not be visible in the output list. So, add second entry no_out as space to get output list with this column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all,&lt;/P&gt;&lt;P&gt;I am closing the thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Dec 2010 05:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-subtotal-text-form-routine-not-getting-executed/m-p/7541216#M1562426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-31T05:25:43Z</dc:date>
    </item>
  </channel>
</rss>

