Skip to Content
author's profile photo Former Member
Former Member

CL_GUI_ALV_GRID, PRINT_TOP_OF_PAGE How to print content of 1. row of page

I use CL_GUI_ALV_GRID with method set_table_for_first_display and implemented an event handler with handle_top_of_page.

Does anybody know how to write something dependend on the contend of the first row on each page as headline in the event PRINT_TOP_OF_PAGE?

For example: Page1 Row1 Matnr=5 I want to write: 'Five' as heading of page1. Page2 Row1 Matnr=21 I want to write 'twentyone'. The problem is, that I don't have access to the data, that will be printed in the first row on each page and I can't calculte somthing like a cursor position because there can be several rows of subtotals and units.

I'm a little bit desperate and start to beleave that there is no way to access the data of the first row.

If somebody has an working idea, this would be a breakthrough and help me a lot.

Hope to hear something from the experts.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on May 30, 2005 at 08:12 PM

    Hi Gunther

    What does your sceanrio say if the user makes a sorting or filtering on the list? It seems a bit problematic or you ought to put some more rules.


    *--Serdar">[ BC ]

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 31, 2005 at 03:47 AM


    Check this sample program.

    Also see

    Thanks & Regards,


    Message was edited by: Judith Jessie Selvi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.