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: 

How To use TOP OF PAGE event in OOPS ALV?

Former Member
0 Kudos

Dear All,

Can u please tell me,how to use TOP OF PAGE event to print a logo in OOPS ALV using a Single Custom Container?

Thanks And Regards,

Feros Khan.

4 REPLIES 4

Former Member
0 Kudos

The OO ALV does not invoke the TOP-OF-PAGE event. Do you want a picture above your ALV Grid? If so you can use a splitter container and put a picture control at the top and your ALV grid on the bottom.

This posting has an example of using a splitter container:

This posting has a discussion about using TOP-OF-PAGE:

This posting has an example of using picture control:

This posting has an example of putting a picture on top of an ALV grid:

Message was edited by: Charles Folwell

ssimsekler
Active Contributor
0 Kudos

Hi Feros

There is an event 'TOP_OF_PAGE' of the ALV Grid control which gets a DD reference as the input. However, as Charles said, the event does not seem to be triggered. So, you can implement Charles' solution.

*--Serdar

0 Kudos

to my knowledge top of page is triggered only when the output is printed and in the preview mode.

Christian

0 Kudos

Feros,

As pointed out by Christian and others Top-Of-Page is only tiggered while u display GRID output as a list or u r printing the report.

In OOPS world u have to use Event handler for class "cl_gui_alv_grid" and event name is "print_top_of_page".

Jeet