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 TREE- How to adjust the TOP-OF-LIST size

Former Member
0 Kudos
495

Hi,

I have created an ALV Tree type report using CL_GUI_ALV_TREE by calling SET_TABLE_FOR FIRST_DISPLAY and exporting it_list_commentary which contains about 15 lines

1) I do NOT want to display all 15 lines. Is there a way to re-size the top_of_page information so that only 5 or so lines are displayed? or maybe change the the contents of the listheader after the 1st page??

2) I have also tried adding a page number to the header (top_of_page) with no success.

I created an event handler and registered it. I use sy-pagno and/or a variable where a I add to it..... The page number is always displayed as the iniitial value. Any suggestions???

3 REPLIES 3

Former Member
0 Kudos
211

This message was moderated.

Former Member
0 Kudos
211

Hi,

what is need to display only 5/15 records where all 15 records related to one input process.

Did you grouped the data in hierarchy throw add_node method.

You question is not clear to me.

Can you give some more details regarding this.

Regards,

Anand Babu R

0 Kudos
211

Hi,

My program uses the cl_salv_events_tree class.

I am creating a hierarchy tree using Add nodes. This is not my issue.

The problem is the header(top of page). I use the SET_TOP_OF_LIST method to add about 20 rows.

This makes the header quite large. I don't want to see it all on the screen. I just want to see the top 5 lines.

I only want to see the 20 lines when the report is printed.

Any help would be appreciated.

Thanks