<?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 GRID Header in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-header/m-p/5830015#M1316440</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;Is the Fm reuse_alv_commentary_write only option to display the header in alv grid reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actual in an grid based report I have to disply the header exactly wwith uname,date etc being displayed at various positions(diferent rows  with required gaps).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could anyone let me know how to trace out this positions. Also, could anyone  let me know how to paste a small piece of screen shot while posting the issues. So that I can show it clearly.&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;Natasha SS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Jun 2009 00:24:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-27T00:24:45Z</dc:date>
    <item>
      <title>ALV GRID Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-header/m-p/5830015#M1316440</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;Is the Fm reuse_alv_commentary_write only option to display the header in alv grid reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actual in an grid based report I have to disply the header exactly wwith uname,date etc being displayed at various positions(diferent rows  with required gaps).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could anyone let me know how to trace out this positions. Also, could anyone  let me know how to paste a small piece of screen shot while posting the issues. So that I can show it clearly.&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;Natasha SS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2009 00:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-header/m-p/5830015#M1316440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-27T00:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-header/m-p/5830016#M1316441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Natasha,
&amp;lt;li&amp;gt;&amp;lt;font color='red'&amp;gt;could anyone let me know how to paste a small piece of screen shot while posting the issues. So that I can show it clearly.&amp;lt;/font&amp;gt;
1. First upload your screen shot to any forum or blog and paste the link here.
&amp;lt;li&amp;gt;Regarding header as you requested, we should not use REUSE_ALV_COMMENTORY_WRITE function module. You have to follow the code to get as u requested. Instead using TOP_OF_PAGE event, you have to use HTML_TOP_OF_PAGE event. 
&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  top_of_page
*&amp;amp;---------------------------------------------------------------------*
FORM top_of_page USING document TYPE REF TO cl_dd_document.
  DATA:
        l_text TYPE sdydo_text_element.

  l_text = 'xyz'.
  CALL METHOD document-&amp;gt;add_text
    EXPORTING
      text         = l_text
      sap_emphasis = cl_dd_document=&amp;gt;strong
      sap_style    = cl_dd_document=&amp;gt;key.

  CALL METHOD document-&amp;gt;new_line.
  l_text = 'lmn'.
  CALL METHOD document-&amp;gt;add_text
    EXPORTING
      text         = l_text
      sap_fontsize = cl_dd_document=&amp;gt;medium
      sap_color    = cl_dd_document=&amp;gt;list_positive
      sap_style    = cl_dd_document=&amp;gt;key.

  CALL METHOD document-&amp;gt;underline.
  CALL METHOD document-&amp;gt;add_gap
    EXPORTING
      width = '25'.
  CALL METHOD document-&amp;gt;add_text
    EXPORTING
      text         = l_text
      sap_fontsize = cl_dd_document=&amp;gt;medium
      sap_color    = cl_dd_document=&amp;gt;list_positive
      sap_style    = cl_dd_document=&amp;gt;key.

ENDFORM.                    "top_of_page&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;Then pass this subroutine through function module.
&lt;PRE&gt;&lt;CODE&gt;
 DATA :l_program TYPE sy-repid.
  l_program = sy-repid.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program          = l_program
      i_callback_html_top_of_page = 'TOP_OF_PAGE'
      is_layout                   = w_layout
      it_events                   = i_events
      it_fieldcat                 = i_fieldcat
    TABLES
      t_outtab                    = i_pa0001.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;

I hope that it helps you.
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2009 03:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-header/m-p/5830016#M1316441</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-06-27T03:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID Header</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-header/m-p/5830017#M1316442</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;You can use the Write statement in the TOP_OF_PAGE to write the contents in the Top of Page instead of using FM reuse_alv_commentary_write .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2009 09:57:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-header/m-p/5830017#M1316442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-27T09:57:02Z</dc:date>
    </item>
  </channel>
</rss>

