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.

Guenter

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.

    Regards

    *--Serdar https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]

    Add a comment
    10|10000 characters needed characters exceeded

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

    Hi,

    Check this sample program.

    http://www.geocities.com/victorav15/sapr3/utilities/zvvooa_alv5.txt

    Also see http://help.sap.com/saphelp_nw04/helpdata/en/ee/c8e06ed52611d2b468006094192fe3/frameset.htm

    Thanks & Regards,

    Judith.

    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.