<?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: Header In ALV with abap objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-in-alv-with-abap-objects/m-p/2082131#M432010</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;Using class if u are displaying ur ALV, then it is not possible to print or download the header.&lt;/P&gt;&lt;P&gt;only by using REUSE_ALV_GRID_DISPLAY, u can print the header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u using factory method using class for ALV diaplay,then u can print the header.&lt;/P&gt;&lt;P&gt;if u want the code snippet for factory method,let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****reward points if useful.&lt;/P&gt;&lt;P&gt;All the best&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2007 11:52:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-17T11:52:26Z</dc:date>
    <item>
      <title>Header In ALV with abap objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-in-alv-with-abap-objects/m-p/2082129#M432008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we print the header in abap Objects using class ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Prashant patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 10:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-in-alv-with-abap-objects/m-p/2082129#M432008</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-04-17T10:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Header In ALV with abap objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-in-alv-with-abap-objects/m-p/2082130#M432009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this - BCALV_DND_04&lt;/P&gt;&lt;P&gt;Or juat add another container at the top and display ur header contents there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 10:48:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-in-alv-with-abap-objects/m-p/2082130#M432009</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-04-17T10:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Header In ALV with abap objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-in-alv-with-abap-objects/m-p/2082131#M432010</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;Using class if u are displaying ur ALV, then it is not possible to print or download the header.&lt;/P&gt;&lt;P&gt;only by using REUSE_ALV_GRID_DISPLAY, u can print the header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u using factory method using class for ALV diaplay,then u can print the header.&lt;/P&gt;&lt;P&gt;if u want the code snippet for factory method,let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****reward points if useful.&lt;/P&gt;&lt;P&gt;All the best&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 11:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-in-alv-with-abap-objects/m-p/2082131#M432010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T11:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Header In ALV with abap objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-in-alv-with-abap-objects/m-p/2082132#M432011</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;yaa i need  the code for factory method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx,&lt;/P&gt;&lt;P&gt;prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 12:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-in-alv-with-abap-objects/m-p/2082132#M432011</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-04-17T12:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Header In ALV with abap objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/header-in-alv-with-abap-objects/m-p/2082133#M432012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a local class:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS lcl_event_receiver DEFINITION.

  PUBLIC SECTION.
    METHODS: handle_top_of_page FOR EVENT print_top_of_page
                               OF cl_gui_alv_grid.

  PRIVATE SECTION.

ENDCLASS.

*---------------------------------------------------------------------*
*       CLASS lcl_event_receiver IMPLEMENTATION
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
CLASS lcl_event_receiver IMPLEMENTATION.
  METHOD handle_top_of_page.

  WRITE: / 'Header info'.   
    

  ENDMETHOD.
ENDCLASS.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your main program before you &amp;lt;i&amp;gt;set_table_for_first_display&amp;lt;/i&amp;gt;, make sure you register your event handler:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:  grid                   TYPE REF TO  cl_gui_alv_grid,
         event_receiver    TYPE REF TO  lcl_event_receiver.


    CREATE OBJECT grid EXPORTING i_parent = container.

    CREATE OBJECT event_receiver.
    SET HANDLER event_receiver-&amp;gt;handle_top_of_page FOR grid.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 14:55:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/header-in-alv-with-abap-objects/m-p/2082133#M432012</guid>
      <dc:creator>aaron_morden2</dc:creator>
      <dc:date>2007-04-17T14:55:50Z</dc:date>
    </item>
  </channel>
</rss>

