<?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 ALV - LIST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-alv-list/m-p/3972311#M948824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How Can I throw a TOP OF LIST???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2008 18:06:32 GMT</pubDate>
    <dc:creator>michael_teran</dc:creator>
    <dc:date>2008-06-12T18:06:32Z</dc:date>
    <item>
      <title>FUNCTION ALV - LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-alv-list/m-p/3972308#M948821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everbody ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the event "BEFORE LINE OUTPUT" WITH "NEW-PAGE" I trigger the event "TOP OF PAGE".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do the same but trigger the event "TOP OF LIST" how can I do that? it can be done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 17:35:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-alv-list/m-p/3972308#M948821</guid>
      <dc:creator>michael_teran</dc:creator>
      <dc:date>2008-06-12T17:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION ALV - LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-alv-list/m-p/3972309#M948822</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;PRE&gt;&lt;CODE&gt;DATA : g_t_events TYPE slis_t_event.
DATA : g_r_events TYPE slis_alv_event.

    * Top of Page event for standard header

g_r_events-name = 'TOP_OF_PAGE'.
g_r_events-form = 'TOP_OF_PAGE'.
APPEND g_r_events TO g_t_events.

NOW u call the REUSE_ALV_LIST_DISPLAY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some thing like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = IT_VARIANT-REPORT
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE' IT_FIELDCAT = IT_FIELDCAT
I_SAVE = 'A'
IS_VARIANT = IT_VARIANT
TABLES
T_OUTTAB = G_T_OUTTAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.

IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

&amp;amp;---------------------------------------------------------------------
*&amp;amp; Form TOP-OF-PAGE
&amp;amp;---------------------------------------------------------------------

    * For Top of page

----------------------------------------------------------------------
FORM TOP_OF_PAGE. "#EC CALLED

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_COMMENTARY.

ENDFORM. "top_of_page&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Jun 12, 2008 1:45 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 17:44:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-alv-list/m-p/3972309#M948822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T17:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION ALV - LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-alv-list/m-p/3972310#M948823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is it you want to achieve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP_OF_LIST is triggered automatically and once per FM call before the first line of output is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way to trigger TOP_OF_LIST is to create any output. Even if the display table is empty, it will trigger TOP_OF_LIST .&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 18:01:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-alv-list/m-p/3972310#M948823</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2008-06-12T18:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION ALV - LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-alv-list/m-p/3972311#M948824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How Can I throw a TOP OF LIST???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 18:06:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-alv-list/m-p/3972311#M948824</guid>
      <dc:creator>michael_teran</dc:creator>
      <dc:date>2008-06-12T18:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION ALV - LIST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-alv-list/m-p/3972312#M948825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as I tried to explain: Just call FUNCTION 'REUSE_ALV_GRID_DISPLAY' and TOP_OF_LIST is raised (thrown).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again: What do you want to do?&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 09:08:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-alv-list/m-p/3972312#M948825</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2008-06-13T09:08:35Z</dc:date>
    </item>
  </channel>
</rss>

