<?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: REUSE_ALV_COMMENTARY_WRITE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741072#M321943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a TOP of PAGE event, where you are calling this function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Dec 2006 04:45:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-08T04:45:43Z</dc:date>
    <item>
      <title>REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741071#M321942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The function 'REUSE_ALV_COMMENTARY_WRITE' is not getting executed in my program and i dont know whats the problem so anyone kindly suggest another method which can substitute 'REUSE_ALV_COMMENTARY_WRITE' and which takes the same parameters as 'REUSE_ALV_COMMENTARY_WRITE' which can display logo and header info.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 04:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741071#M321942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T04:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741072#M321943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a TOP of PAGE event, where you are calling this function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 04:45:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741072#M321943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T04:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741073#M321944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;*&amp;amp;      Form  sub_event_call&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_V_EVENTS_REPL  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_event_call USING    p_v_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             = p_v_events&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LIST_TYPE_WRONG       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&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;ENDFORM.                    " sub_event_call&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  POPULATE_EVENT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;FORM populate_event.&lt;/P&gt;&lt;P&gt;  CLEAR wa_event.&lt;/P&gt;&lt;P&gt;  IF rb_crt = 'X'.&lt;/P&gt;&lt;P&gt;    READ TABLE v_events INTO wa_event WITH KEY name = 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      wa_event-form = 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;      MODIFY v_events FROM wa_event TRANSPORTING form&lt;/P&gt;&lt;P&gt;      WHERE name = wa_event-form.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDFORM.                    " POPULATE_EVENT&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;*&amp;amp;      Form  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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&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;&lt;/P&gt;&lt;P&gt;  DATA: t_header TYPE slis_t_listheader,&lt;/P&gt;&lt;P&gt;      wa_header TYPE slis_listheader,&lt;/P&gt;&lt;P&gt;      l_date LIKE sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_date = sy-datum - 1.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Title&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  wa_header-typ  = 'S'.&lt;/P&gt;&lt;P&gt;  wa_header-key = ' Report : '.&lt;/P&gt;&lt;P&gt;    wa_header-info = 'Summary'.   "todays date&lt;/P&gt;&lt;P&gt;  APPEND wa_header TO t_header.&lt;/P&gt;&lt;P&gt;  CLEAR: wa_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_header-typ  = 'S'.&lt;/P&gt;&lt;P&gt;  wa_header-key = 'Date  : '.&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&lt;/P&gt;&lt;P&gt;            it_list_commentary = t_header.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           i_logo             = 'Z_LOGO'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "TOP_OF_PAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the v_events  table to it_events of  REUSE_ALV_GRID_DISPLAY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 04:49:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741073#M321944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T04:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741074#M321945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are using reuse_alv_list_display to display your data then you cant display graphics on the top of a list.&lt;/P&gt;&lt;P&gt;you have to use reuse_alv_grid_display Fm and in that you have to pass form name 'Top_of_page'  but before that you have to capture the event top_of_page using FM reuse_alv_events_get.&lt;/P&gt;&lt;P&gt;then you have to define form top_of_page --endform in which you have to populate the parameters and call FM REUSE_ALV_COMMENTARY_WRITE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: reward points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 04:58:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741074#M321945</guid>
      <dc:creator>former_member508729</dc:creator>
      <dc:date>2006-12-08T04:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741075#M321946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeh ravi i do have top of page event and even then the mthod is not getting executed suggest some solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 05:11:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741075#M321946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T05:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741076#M321947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have debugged the code the pointer is moving upto call method reuse_alv_commentary_write in the form top_of_page .... endform but the methd is not getting executed , the pointer is skipping the lines after the call method reuse_alv_commentary_write and i am not able to print the logo and header info.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 05:18:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741076#M321947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T05:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741077#M321948</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;Check this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_events   TYPE slis_t_event.&lt;/P&gt;&lt;P&gt;DATA: i_header   TYPE slis_t_listheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM f3000_build_header CHANGING i_header.&lt;/P&gt;&lt;P&gt;PERFORM f4000_events_init CHANGING i_events.&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                = report_id&lt;/P&gt;&lt;P&gt;   is_layout                         = i_layout&lt;/P&gt;&lt;P&gt;   it_fieldcat                       = i_fieldcat&lt;/P&gt;&lt;P&gt;   i_save                            = 'A'&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;   it_events                         = i_events&amp;lt;/b&amp;gt;  &lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;    t_outtab                          = i_data&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;IF sy-subrc &amp;lt;&amp;gt; 0.&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;&lt;/P&gt;&lt;P&gt;FORM f3000_build_header USING i_header TYPE slis_t_listheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: gs_line TYPE slis_listheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR gs_line.&lt;/P&gt;&lt;P&gt;  gs_line-typ  = 'H'.&lt;/P&gt;&lt;P&gt;  gs_line-info = 'This is line of type HEADER'.&lt;/P&gt;&lt;P&gt;  APPEND gs_line TO i_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR gs_line.&lt;/P&gt;&lt;P&gt;  gs_line-typ  = 'S'.&lt;/P&gt;&lt;P&gt;  gs_line-key  = 'STATUS 1'.&lt;/P&gt;&lt;P&gt;  gs_line-info = 'This is line of type STATUS'.&lt;/P&gt;&lt;P&gt;  APPEND gs_line TO i_header.&lt;/P&gt;&lt;P&gt;  gs_line-key  = 'STATUS 2'.&lt;/P&gt;&lt;P&gt;  gs_line-info = 'This is also line of type STATUS'.&lt;/P&gt;&lt;P&gt;  APPEND gs_line TO i_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR gs_line.&lt;/P&gt;&lt;P&gt;  gs_line-typ  = 'A'.&lt;/P&gt;&lt;P&gt;  gs_line-info = 'This is line of type ACTION'.&lt;/P&gt;&lt;P&gt;  APPEND gs_line TO i_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " f3000_build_header&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;*&amp;amp;      Form  f4000_events_init&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 f4000_events_init CHANGING i_events TYPE slis_t_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;DATA: line_event TYPE slis_alv_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR line_event.&lt;/P&gt;&lt;P&gt;  line_event-name = 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;  line_event-form = 'F4100_TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;  APPEND line_event TO i_events.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " f3000_events_init&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      FORM F4100_TOP_OF_PAGE                                        *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&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;FORM f4100_top_of_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            it_list_commentary = i_header.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 05:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741077#M321948</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-12-08T05:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741078#M321949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Use a Similar code Snippet. It works!&lt;/P&gt;&lt;P&gt;&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             = I_EVENTS&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     LIST_TYPE_WRONG       = 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;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*--Calling the User Defined sub-routines for ALV Events&lt;/P&gt;&lt;P&gt;  IF NOT I_EVENTS[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    READ TABLE I_EVENTS INTO WA_EVENT WITH KEY NAME = 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;    WA_EVENT-FORM = 'HEADER'.&lt;/P&gt;&lt;P&gt;    MODIFY I_EVENTS FROM WA_EVENT INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " GET_EVENTS&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;*&amp;amp;      Form  HEADER&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Displaying Header-Text and Logo on Grid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM HEADER.&lt;/P&gt;&lt;P&gt;  CLEAR I_COMMENT[].&lt;/P&gt;&lt;P&gt;  WA_COMMENT-TYP = 'H'.&lt;/P&gt;&lt;P&gt;  WA_COMMENT-INFO = 'Some Header Text'.&lt;/P&gt;&lt;P&gt;  APPEND WA_COMMENT TO I_COMMENT.&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&lt;/P&gt;&lt;P&gt;      IT_LIST_COMMENTARY = I_COMMENT&lt;/P&gt;&lt;P&gt;      I_LOGO             = 'LOGO NAME'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    I_END_OF_LIST_GRID       = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;&lt;/P&gt;&lt;P&gt;The PERFORM GET_EVENTS has to be called in the program (maybe in END-OF-SELECTION).&lt;/P&gt;&lt;P&gt;Also I_EVENTS has to be passed to REUSE_ALV_GRID_DISPLAY func.module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        kiret B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 06:12:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741078#M321949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T06:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741079#M321950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it be ok if you post your code here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 06:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741079#M321950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T06:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741080#M321951</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;Plz try a code similar to the one give below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools : slis .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;NO END-OF-SELECTION HERE AS WE DON'T USE WRITE STATMNTS IN ALV&lt;/STRONG&gt;***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : mara , mard , makt .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0 ,&lt;/P&gt;&lt;P&gt;        f1 type  &amp;lt;specify type&amp;gt; ,&lt;/P&gt;&lt;P&gt;        f2  type  &amp;lt;specify type&amp;gt; ,&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       fn type  &amp;lt;specify type&amp;gt;,&lt;/P&gt;&lt;P&gt;       end of itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************&lt;STRONG&gt;fieldcatalog&lt;/STRONG&gt;*********************&lt;/P&gt;&lt;P&gt;data:anytab type slis_t_fieldcat_alv with header line.&lt;/P&gt;&lt;P&gt;**************&lt;STRONG&gt;pgm name&lt;/STRONG&gt;**********************&lt;/P&gt;&lt;P&gt;data:anypgnm type sy-repid.&lt;/P&gt;&lt;P&gt;**************&lt;STRONG&gt;events&lt;/STRONG&gt;*************************&lt;/P&gt;&lt;P&gt;data : events type slis_t_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************start of selection ***************&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform build_itab.                "Populate itab with data&lt;/P&gt;&lt;P&gt;  perform build_fieldcat.          " Build fieldcatalog&lt;/P&gt;&lt;P&gt;  perform display.                  " call reuse_alv_grid_display FM&lt;/P&gt;&lt;P&gt;  perform my_events.            " call events FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;top-of-page.&lt;/P&gt;&lt;P&gt;  perform top_page.                 " for displaying header data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;Subroutines&lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;form top_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : t_header type slis_t_listheader,&lt;/P&gt;&lt;P&gt;       wa_header type slis_listheader,&lt;/P&gt;&lt;P&gt;       t_line like wa_header-info,&lt;/P&gt;&lt;P&gt;       ld_lines type i,&lt;/P&gt;&lt;P&gt;       ld_linesc(10) type c.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;wa_header-typ  = 'H'.                       " H is 4 big heading.&lt;/P&gt;&lt;P&gt;  wa_header-info = '&amp;lt;header info to b displayed&amp;gt;'.&lt;/P&gt;&lt;P&gt;  append wa_header to t_header.&lt;/P&gt;&lt;P&gt;  clear wa_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Date&lt;/P&gt;&lt;P&gt;  wa_header-typ  = 'S'.             "S is 4 small stmnts.&lt;/P&gt;&lt;P&gt;  wa_header-key = 'Date: '.&lt;/P&gt;&lt;P&gt;  concatenate  sy-datum+6(2) '.'&lt;/P&gt;&lt;P&gt;               sy-datum+4(2) '.'&lt;/P&gt;&lt;P&gt;   sy-datum(4) into wa_header-info.  "todayz date.&lt;/P&gt;&lt;P&gt;  append wa_header to t_header.&lt;/P&gt;&lt;P&gt;  clear: wa_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_header-typ  = 'S'.&lt;/P&gt;&lt;P&gt;  wa_header-key = ' Field: '.&lt;/P&gt;&lt;P&gt;  wa_header-info =  &amp;lt;pass name of field  f1&amp;gt;.&lt;/P&gt;&lt;P&gt;  append wa_header to t_header.&lt;/P&gt;&lt;P&gt;  clear wa_header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  wa_header-typ  = 'S'.&lt;/P&gt;&lt;P&gt;  wa_header-key = 'Field2: '.&lt;/P&gt;&lt;P&gt;  wa_header-info = &amp;lt;Pass name of field f2&amp;gt; .&lt;/P&gt;&lt;P&gt;  append wa_header to t_header.&lt;/P&gt;&lt;P&gt;  clear wa_header.&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&lt;/P&gt;&lt;P&gt;    it_list_commentary       = t_header .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_LOGO                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_END_OF_LIST_GRID       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " TOP_PAGE&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form my_events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ls_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           = 0&lt;/P&gt;&lt;P&gt;  importing&lt;/P&gt;&lt;P&gt;    et_events             = events[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   LIST_TYPE_WRONG       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   OTHERS                = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         .&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;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz try it ....or work on similar lines&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 07:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741080#M321951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T07:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741081#M321952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry cris i cannot post my code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 07:51:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741081#M321952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T07:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741082#M321953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;resolved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 04:54:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741082#M321953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T04:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741083#M321954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i m also facing same problem. i m unable to find the program mistake. it was worked my previous program manullay populated the field catlog. but present program used  ALV_Field_catalog_merge. i really unable to small mistake. if you could provide the solution. that will be gr8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arayn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 06:53:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-commentary-write/m-p/1741083#M321954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T06:53:32Z</dc:date>
    </item>
  </channel>
</rss>

