<?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: SET_TABLE_FOR_FIRST_DISPLAY in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464821#M219033</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;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOU CAN USE TOP-OF-PAGE EVENT.&lt;/P&gt;&lt;P&gt;REPORT demo_list_page_heading NO STANDARD PAGE HEADING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE: sy-title, 40 'Page', sy-pagno.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;  WRITE: / 'SAP AG', 29 'Walldorf, ',sy-datum,&lt;/P&gt;&lt;P&gt;         / 'Neurottstr. 16', / '69190 Walldorf/Baden'.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DO 5 TIMES.&lt;/P&gt;&lt;P&gt;    WRITE / sy-index.&lt;/P&gt;&lt;P&gt;  ENDDO.&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;mrutyun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Aug 2006 03:39:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-11T03:39:16Z</dc:date>
    <item>
      <title>SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464818#M219030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to display some thing at top of page while displaying some data using SET_TABLE_FOR_FIRST_DISPLAY.&lt;/P&gt;&lt;P&gt;I see its getting display when I go to the LIST display. But the requirement is to show at the very first grid display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could some one pls help me? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2006 03:03:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464818#M219030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-11T03:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464819#M219031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a HTML Header to the top of the grid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2006 03:14:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464819#M219031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-11T03:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464820#M219032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can define top_of_page event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLASS-METHODS:&lt;/P&gt;&lt;P&gt;     m002_handle_top_of_page&lt;/P&gt;&lt;P&gt;       FOR EVENT print_top_of_page OF cl_gui_alv_grid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2006 03:33:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464820#M219032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-11T03:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464821#M219033</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;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOU CAN USE TOP-OF-PAGE EVENT.&lt;/P&gt;&lt;P&gt;REPORT demo_list_page_heading NO STANDARD PAGE HEADING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE: sy-title, 40 'Page', sy-pagno.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;  WRITE: / 'SAP AG', 29 'Walldorf, ',sy-datum,&lt;/P&gt;&lt;P&gt;         / 'Neurottstr. 16', / '69190 Walldorf/Baden'.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DO 5 TIMES.&lt;/P&gt;&lt;P&gt;    WRITE / sy-index.&lt;/P&gt;&lt;P&gt;  ENDDO.&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;mrutyun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2006 03:39:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464821#M219033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-11T03:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464822#M219034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Declare something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:   w_grid  TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;DATA:   w_custom_container&lt;/P&gt;&lt;P&gt;                 TYPE REF TO cl_gui_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_receiver DEFINITION.&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Top  of Page&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLASS-METHODS:&lt;/P&gt;&lt;P&gt;     handle_top_of_page&lt;/P&gt;&lt;P&gt;       FOR EVENT print_top_of_page OF cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_event_receiver IMPLEMENTATION.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Handle top of page&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  METHOD handle_top_of_page.&lt;/P&gt;&lt;P&gt;    write:/ 'Report Name:', sy-repid,&lt;/P&gt;&lt;P&gt;            'Date :', sy-datum,&lt;/P&gt;&lt;P&gt;            'Time:', sy-uzeit,&lt;/P&gt;&lt;P&gt;            'User:', sy-uname.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If you are using a custom container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CREATE OBJECT w_grid EXPORTING i_parent = &lt;/P&gt;&lt;P&gt;                                w_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create Event Receiver&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CREATE OBJECT event_receiver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Handle events&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SET HANDLER event_receiver-&amp;gt;handle_top_of_page&lt;/P&gt;&lt;P&gt;                       FOR w_grid.&lt;/P&gt;&lt;P&gt;                                     &lt;/P&gt;&lt;P&gt;Then use the&lt;/P&gt;&lt;P&gt;     CALL METHOD wcl_grid-&amp;gt;set_table_for_first_display&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;Subbu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2006 05:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464822#M219034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-11T05:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464823#M219035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am exactly doing the same thing and using the top of page event to write.&lt;/P&gt;&lt;P&gt;The concern is that it is not being displyed on the screen at top.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code I am using:&lt;/P&gt;&lt;P&gt;Def:&lt;/P&gt;&lt;P&gt;    HANDLE_END_OF_PAGE&lt;/P&gt;&lt;P&gt;        FOR EVENT PRINT_END_OF_PAGE OF CL_GUI_ALV_GRID,&lt;/P&gt;&lt;P&gt;Imp:&lt;/P&gt;&lt;P&gt;      METHOD HANDLE_TOP_OF_PAGE.&lt;/P&gt;&lt;P&gt;    WRITE: / 'Event: PRINT_TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the link with the grid:&lt;/P&gt;&lt;P&gt;    SET HANDLER EVENT_RECEIVER-&amp;gt;HANDLE_DOUBLE_CLICK FOR GRID1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grid1 is the ALV Gid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2006 06:21:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464823#M219035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-11T06:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464824#M219036</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 my Blog on Alv Top_of_page using Cl_gui_alv_grid class.&lt;/P&gt;&lt;P&gt;/people/vijaybabu.dudla/blog/2006/07/21/topofpage-in-alv-using-clguialvgrid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get back if you have any doubts.&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;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2006 06:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464824#M219036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-11T06:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464825#M219037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vijay....Thank you very much.&lt;/P&gt;&lt;P&gt;One question only....when ever u print from the GRID container....does the top of page is also printed on every page? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2006 06:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464825#M219037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-11T06:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: SET_TABLE_FOR_FIRST_DISPLAY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464826#M219038</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;it is only for Display purpose, it will not be printed . and in that case you have to use some other event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use PRINT_TOP_OF_PAGE event for that purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    METHODS:
    prit_top_of_page
        FOR EVENT print_top_of_page OF cl_gui_alv_grid,

 METHOD print_top_of_page.
    ADD 1 TO pagenum.

    WRITE: / 'Trans. Code     : ' , sy-tcode ,
           / 'Run Date        : ' , sy-datum ,
           / 'User Name       : ' , sy-uname ,
           / 'Page Number     : ' , pagenum  .
    ULINE .
  ENDMETHOD.                           "handle_top_of_page

 CREATE OBJECT event_receiver.
   SET HANDLER event_receiver-&amp;gt;print_top_of_page FOR g_grid.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the print_top_f_page will trigger only when print is done. you can use this for your purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vijay Babu Dudla&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2006 07:01:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display/m-p/1464826#M219038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-11T07:01:01Z</dc:date>
    </item>
  </channel>
</rss>

