<?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: Function module: REUSE_ALV_COMMENTARY_WRITE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-commentary-write/m-p/6280766#M1388225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_EVENT-NAME = 'TOP_OF_LIST'.&lt;/P&gt;&lt;P&gt;WA_EVENT-FORM = 'TOP-OF-LIST'.&lt;/P&gt;&lt;P&gt;APPEND   WA_EVENT TO TB_EVENT.&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 TOP-OF-LIST.&lt;/P&gt;&lt;P&gt;REFRESH ITAB.&lt;/P&gt;&lt;P&gt;WA_ITAB-TYP = 'H'.&lt;/P&gt;&lt;P&gt;WA_ITAB-INFO = 'MY LIST'.&lt;/P&gt;&lt;P&gt;APPEND WA_ITAB TO ITAB.&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       = ITAB&lt;/P&gt;&lt;P&gt;   I_LOGO                    = 'MYTEC'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_END_OF_LIST_GRID       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_ALV_FORM               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Oct 2009 13:03:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-22T13:03:08Z</dc:date>
    <item>
      <title>Function module: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-commentary-write/m-p/6280761#M1388220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the importparameter IT_LIST_COMMENTARY is filled like that:&lt;/P&gt;&lt;P&gt;slis_listheader-type = 'S'&lt;/P&gt;&lt;P&gt;slis_listheader-key = space&lt;/P&gt;&lt;P&gt;slis_listheader-info = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With that coding we got a blank line in the header above of the list.&lt;/P&gt;&lt;P&gt;Now it doesn't work not any longer.&lt;/P&gt;&lt;P&gt;We fixed the problem with delivering an '.', at the field slis_listheader-info, but that is not the right intention, because we se points in the output-list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answers,&lt;/P&gt;&lt;P&gt;Melanie &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 12:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-commentary-write/m-p/6280761#M1388220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-22T12:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Function module: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-commentary-write/m-p/6280762#M1388221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;space works fine with me..&lt;/P&gt;&lt;P&gt;just now tested..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 12:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-commentary-write/m-p/6280762#M1388221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-22T12:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Function module: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-commentary-write/m-p/6280763#M1388222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works for me fine, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you deleted the corresponding &lt;STRONG&gt;append slis_lisheader to it_listheader&lt;/STRONG&gt; by accident?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 12:34:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-commentary-write/m-p/6280763#M1388222</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-10-22T12:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Function module: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-commentary-write/m-p/6280764#M1388223</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;Try this way.
&lt;PRE&gt;&lt;CODE&gt;
"&amp;amp;---------------------------------------------------------------------*
"&amp;amp;      Form  top_of_page
"&amp;amp;---------------------------------------------------------------------*
FORM top_of_page.
  DATA :li_header TYPE slis_t_listheader,
        w_header  LIKE LINE OF li_header,
        l_date TYPE char10.

  w_header-typ  = 'S'.
  w_header-info = space.
  APPEND w_header TO li_header.
  CLEAR w_header.

  WRITE sy-datum TO l_date.
  w_header-typ  = 'H'.
  CONCATENATE sy-repid ':' 'From Date' l_date INTO w_header-info SEPARATED BY space.
  APPEND w_header TO li_header.
  CLEAR w_header.

  w_header-typ  = 'S'.
  w_header-info = space.
  APPEND w_header TO li_header.
  CLEAR w_header.

  w_header-typ  = 'S'.
  w_header-info = sy-title.
  APPEND w_header TO li_header.
  CLEAR w_header.

  w_header-typ  = 'A'.
  w_header-info = sy-uname.
  APPEND w_header TO li_header.
  CLEAR w_header.

  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
      it_list_commentary = li_header.

ENDFORM.                    "top_of_page&lt;/CODE&gt;&lt;/PRE&gt;
Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 12:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-commentary-write/m-p/6280764#M1388223</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-10-22T12:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Function module: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-commentary-write/m-p/6280765#M1388224</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 doing like the Sample code mentioned below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

FORM TOP.

WA_HEADER-TYP = 'S'.
WA_HEADER-KEY = TEXT-001.
WA_HEADER-INFO = SY-REPID.
APPEND WA_HEADER TO IT_HEADER.
CLEAR WA_HEADER.

WA_HEADER-TYP = 'S'.
WA_HEADER-KEY = TEXT-002.
WA_HEADER-INFO = SY-UNAME.
APPEND WA_HEADER TO IT_HEADER.
CLEAR WA_HEADER.

WA_HEADER-TYP = 'S'.
WA_HEADER-KEY = TEXT-003.
WA_HEADER-INFO = SY-DATUM.
APPEND WA_HEADER TO IT_HEADER.
CLEAR WA_HEADER.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
  EXPORTING
    it_list_commentary       = IT_HEADER
*   I_LOGO                   =
*   I_END_OF_LIST_GRID       =
*   I_ALV_FORM               =
          .
ENDFORM.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&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;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 12:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-commentary-write/m-p/6280765#M1388224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-22T12:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Function module: REUSE_ALV_COMMENTARY_WRITE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-commentary-write/m-p/6280766#M1388225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_EVENT-NAME = 'TOP_OF_LIST'.&lt;/P&gt;&lt;P&gt;WA_EVENT-FORM = 'TOP-OF-LIST'.&lt;/P&gt;&lt;P&gt;APPEND   WA_EVENT TO TB_EVENT.&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 TOP-OF-LIST.&lt;/P&gt;&lt;P&gt;REFRESH ITAB.&lt;/P&gt;&lt;P&gt;WA_ITAB-TYP = 'H'.&lt;/P&gt;&lt;P&gt;WA_ITAB-INFO = 'MY LIST'.&lt;/P&gt;&lt;P&gt;APPEND WA_ITAB TO ITAB.&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       = ITAB&lt;/P&gt;&lt;P&gt;   I_LOGO                    = 'MYTEC'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_END_OF_LIST_GRID       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_ALV_FORM               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Oct 2009 13:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-reuse-alv-commentary-write/m-p/6280766#M1388225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-22T13:03:08Z</dc:date>
    </item>
  </channel>
</rss>

