<?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 display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/8557735#M1658803</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;have sorted your table on BUKRS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer &lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/Display" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/Display&lt;/A&gt;&lt;EM&gt;subtotal&lt;/EM&gt;text&lt;EM&gt;in&lt;/EM&gt;ALV+grid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2012 20:53:18 GMT</pubDate>
    <dc:creator>former_member189779</dc:creator>
    <dc:date>2012-02-22T20:53:18Z</dc:date>
    <item>
      <title>ALV Grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/8557734#M1658802</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;&lt;/P&gt;&lt;P&gt;How do I include a text for sub total field on ALV. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got different columns on ALV which shows count. Want to put a text at the left end of Report for field BUKRS like "State level total"  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried creating SUBTOTAL_TEXT with events and passed it on REUSE_ALV_GRID_DISPLAY for IT_EVENTS. It doesn't works. Not sure what am I missing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field catalog I created:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lw_fieldcat-tabname = 't_out_val'.&lt;/P&gt;&lt;P&gt;  lw_fieldcat-fieldname = 'BUKRS1'.&lt;/P&gt;&lt;P&gt;  lw_fieldcat-seltext_l = 'Company Code'.&lt;/P&gt;&lt;P&gt;  lw_fieldcat-col_Pos = lv_col_pos.&lt;/P&gt;&lt;P&gt;  lw_fieldcat-outputlen = 15.&lt;/P&gt;&lt;P&gt;  APPEND lw_fieldcat TO pi_fieldcat.&lt;/P&gt;&lt;P&gt;  lv_col_pos = +1.&lt;/P&gt;&lt;P&gt;  CLEAR lw_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Event for Subtotal_text:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM SUB_GET_EVENT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS: c_formname_subtotal_text TYPE slis_formname VALUE 'SUBTOTAL_TEXT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: l_s_event TYPE slis_alv_event.&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           = 4&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     ET_EVENTS             = i_event&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     LIST_TYPE_WRONG       = 0&lt;/P&gt;&lt;P&gt;     OTHERS                = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    READ TABLE i_event INTO l_s_event WITH KEY name = slis_ev_subtotal_text.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    MOVE c_formname_subtotal_text TO l_s_event-form.&lt;/P&gt;&lt;P&gt;    MODIFY i_event FROM l_s_event INDEX sy-tabix.&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;Text for subtotal:&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;  IF p_subtot_text-criteria = 'BUKRS1'.&lt;/P&gt;&lt;P&gt;    p_subtot_text-display_text_for_subtotal = 'State level total'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "subtotal_text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Francis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 20:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/8557734#M1658802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-22T20:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/8557735#M1658803</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;have sorted your table on BUKRS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer &lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/Display" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/Display&lt;/A&gt;&lt;EM&gt;subtotal&lt;/EM&gt;text&lt;EM&gt;in&lt;/EM&gt;ALV+grid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 20:53:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/8557735#M1658803</guid>
      <dc:creator>former_member189779</dc:creator>
      <dc:date>2012-02-22T20:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/8557736#M1658804</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;Change your Field catalog a bit and Check with this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lw_fieldcat-fieldname = 'BUKRS'.&lt;/P&gt;&lt;P&gt;lw_fieldcat-seltext_l = 'Company Code'.&lt;/P&gt;&lt;P&gt;lw_fieldcat-no_out= 'X'.&lt;/P&gt;&lt;P&gt;lw_fieldcat-TECH= ' '.&lt;/P&gt;&lt;P&gt;APPEND lw_fieldcat TO pi_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;PraVeen..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 13:43:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display/m-p/8557736#M1658804</guid>
      <dc:creator>praveen_reddy2</dc:creator>
      <dc:date>2012-02-24T13:43:31Z</dc:date>
    </item>
  </channel>
</rss>

