Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Header and Footer

Former Member
0 Kudos

How do I insert a header and footer in an ALV report. I am using OO concepts to develop the ALV report.

6 REPLIES 6

Former Member
0 Kudos

Hi,

You can use the events TOP_OF_PAGE and END_OF_PAGE / LIST

events.

Regards,

Shashank

jayanthi_jayaraman
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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 .

Former Member
0 Kudos

Hi,

If you need more help, i will forward you a document of ALV.

...Regards,

Tanveer.

Please rewards points if found helpful.

0 Kudos

hi Tanveer,

forward those docs to me also

my id:pra1978oni@yahoo.com

0 Kudos