04-22-2006 4:39 AM
How do I insert a header and footer in an ALV report. I am using OO concepts to develop the ALV report.
04-22-2006 4:59 AM
Hi,
You can use the events TOP_OF_PAGE and END_OF_PAGE / LIST
events.
Regards,
Shashank
04-22-2006 7:09 AM
Hi,
Check this Standard program.It will help you.
BCALV_GRID_VERIFY
Kindly reward points by clicking the star on the left of reply,if it helps.
Message was edited by: Jayanthi Jayaraman
04-22-2006 7:14 AM
Hi WTM,
You can handle the Event
print_top_of_page to define output text to be printed at the beginning of each page
and
print_end_of_page to define output text to be printed at the end of each page.
Example:
First add a handler method in your handler class definition as: e.g.
METHOD handle_print_top_of_list FOR EVENT print_top_of_list OF cl_gui_alv_grid .
Then implement the method in the implementation part of your local class. e.g.
METHOD handle_print_top_of_list .
WRITE:/ 'Flights Made on ', sy-datum .
ENDMETHOD .
And register this method as the handler. e.g.
SET HANDLER gr_event_handler->handle_print_top_of_list FOR gr_alvgrid .
04-22-2006 7:15 AM
Hi,
If you need more help, i will forward you a document of ALV.
...Regards,
Tanveer.
Please rewards points if found helpful.
04-22-2006 6:04 PM
hi Tanveer,
forward those docs to me also
my id:pra1978oni@yahoo.com
04-22-2006 6:25 PM
Hi,
just check for
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf
and/or
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CAGTFLV/CAGTFLV.pdf
BTW: Although it is still (an may remain) 4.6C, the PDF Index for the printfiles on http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm
is quite usefull.
Regards,
Clemens