<?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 Heading using it_events in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-heading-using-it-events/m-p/5562015#M1269052</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;I'm using 'top-of-page' for heading to display in output.&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     = v_repid&lt;/P&gt;&lt;P&gt;      it_fieldcat            = i_fcat&lt;/P&gt;&lt;P&gt;      i_callback_top_of_page = 'TOP-OF-PAGE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, i want to display the headings in the output using IT_EVENTS...Can anyone tell me how to proceed...&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;BAlu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - 
Total Posts:  281  
Total Questions:  243 (170 unresolved)   

If you assign po(i)nts and close your old posts, that will encourage people to respond to your new questions.
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on May 19, 2009 4:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 May 2009 18:51:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-19T18:51:26Z</dc:date>
    <item>
      <title>ALV Heading using it_events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-heading-using-it-events/m-p/5562015#M1269052</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;I'm using 'top-of-page' for heading to display in output.&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     = v_repid&lt;/P&gt;&lt;P&gt;      it_fieldcat            = i_fcat&lt;/P&gt;&lt;P&gt;      i_callback_top_of_page = 'TOP-OF-PAGE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, i want to display the headings in the output using IT_EVENTS...Can anyone tell me how to proceed...&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;BAlu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - 
Total Posts:  281  
Total Questions:  243 (170 unresolved)   

If you assign po(i)nts and close your old posts, that will encourage people to respond to your new questions.
&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on May 19, 2009 4:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 18:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-heading-using-it-events/m-p/5562015#M1269052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T18:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Heading using it_events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-heading-using-it-events/m-p/5562016#M1269053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPE-POOLS: SLIS.

DATA: ft_alv_events TYPE slis_t_event.
DATA: ls_event TYPE slis_alv_event.

  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
      i_list_type = 0
    IMPORTING
      et_events   = ft_alv_events.

  READ TABLE ft_alv_events WITH KEY name = slis_ev_top_of_page   "TOP-OF-PAGE event
                       INTO ls_event.
  IF sy-subrc = 0.
    MOVE slis_ev_top_of_page TO ls_event-form.  "slis_ev_top_of_page holds name of procedure which will be called when TOP-OF-PAGE event raised
    APPEND ls_event TO ft_alv_events.
  ENDIF.

  "similary for other events...
  READ TABLE ft_alv_events WITH KEY name = slis_ev_subtotal_text
                       INTO ls_event.
  IF sy-subrc = 0.
    MOVE slis_ev_subtotal_text TO ls_event-form.
    APPEND ls_event TO ft_alv_events.
  ENDIF.

  READ TABLE ft_alv_events WITH KEY name = slis_ev_user_command
                       INTO ls_event.
  IF sy-subrc = 0.
    MOVE slis_ev_user_command  TO ls_event-form.
    APPEND ls_event TO ft_alv_events.
  ENDIF.

  READ TABLE ft_alv_events WITH KEY name = slis_ev_pf_status_set
                       INTO ls_event.
  IF sy-subrc = 0.
    MOVE slis_ev_pf_status_set  TO ls_event-form.
    APPEND ls_event TO ft_alv_events.
  ENDIF.


  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
     ....
     it_events                         = ft_alv_events[]
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 20:25:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-heading-using-it-events/m-p/5562016#M1269053</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-05-19T20:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Heading using it_events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-heading-using-it-events/m-p/5562017#M1269054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;  Call the Fm REUSE_ALV_EVENTS_GET to populate the IT_EVENTS itab. Now, read the top of page record from the it events itab and fill the desired form name(subroutine in your program) and modify the itab. When u call the FM 'REUSE_ALV_GRID_DISPLAY', pass the IT_EVENTS itab to the FM. So, when top of page event triggers, the subroutine u mentioned would be called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Neo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 20:58:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-heading-using-it-events/m-p/5562017#M1269054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T20:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Heading using it_events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-heading-using-it-events/m-p/5562018#M1269055</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;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:lwa_events TYPE slis_alv_event. &lt;/P&gt;&lt;P&gt;CLEAR lwa_events.&lt;/P&gt;&lt;P&gt; lwa_events-name = 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt; lwa_events-form = 'FORM_TOP_OF_PAGE'. &lt;/P&gt;&lt;P&gt;APPEND lwa_events TO i_events. &lt;/P&gt;&lt;P&gt;CLEAR lwa_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lwa_header TYPE slis_listheader, &lt;/P&gt;&lt;P&gt;l_lines(10) TYPE c, &lt;/P&gt;&lt;P&gt;line TYPE i. &lt;/P&gt;&lt;P&gt;CONSTANTS : c_header_type TYPE c VALUE 'H', &lt;/P&gt;&lt;P&gt;c_header_types TYPE c VALUE 'S'. &lt;/P&gt;&lt;P&gt;CLEAR v_header. &lt;/P&gt;&lt;P&gt;FREE v_header. &lt;/P&gt;&lt;P&gt;lwa_header-typ = c_header_types.&lt;/P&gt;&lt;P&gt; IF NOT s_matnr-low IS INITIAL AND NOT s_matnr-high IS INITIAL. &lt;/P&gt;&lt;P&gt;CONCATENATE text-028 text-030 s_matnr-low text-031 s_matnr-high INTO lwa_header-info SEPARATED BY space. &lt;/P&gt;&lt;P&gt;APPEND lwa_header TO v_header. &lt;/P&gt;&lt;P&gt;ELSEIF NOT s_matnr-low IS INITIAL AND line GT '1'. &lt;/P&gt;&lt;P&gt;CONCATENATE text-028 text-030 s_matnr-low text-033 INTO lwa_header-info SEPARATED BY space. APPEND lwa_header TO v_header. &lt;/P&gt;&lt;P&gt;ELSEIF NOT s_matnr-low IS INITIAL . &lt;/P&gt;&lt;P&gt;CONCATENATE text-028 text-030 s_matnr-low INTO lwa_header-info SEPARATED BY space. APPEND lwa_header TO v_header. &lt;/P&gt;&lt;P&gt;ELSEIF s_matnr-low IS INITIAL AND s_matnr-high IS INITIAL. &lt;/P&gt;&lt;P&gt;CONCATENATE text-028 text-030 text-029 INTO lwa_header-info SEPARATED BY space. &lt;/P&gt;&lt;P&gt;APPEND lwa_header TO v_header. ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' &lt;/P&gt;&lt;P&gt;EXPORTING it_list_commentary = v_header.&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;Krishna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Krishna Gowrneni on May 20, 2009 2:31 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 21:00:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-heading-using-it-events/m-p/5562018#M1269055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T21:00:42Z</dc:date>
    </item>
  </channel>
</rss>

