Skip to Content
author's profile photo
Former Member

2 ALVs with scroll bars


I have two ALV controls in my program that are side by side.









Only problem is that there are two scroll bars in each control. The top of line in each control must be syncrhonised. IE when I scroll down 5 lines in one control, the other must do the same automatically.

How can this be achieved? Are there system events that I can catch?

Can I turn off the scroll bars in both controls and implement my own using the scrollbar object? How can this be done?

Please provide examples.


Michael Pang

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Aug 20, 2004 at 08:00 PM

    Hi Michael

    It seems to me that it will be more suitable for you to use the class "CL_GUI_COLUMN_TREE", won't it?

    As far as I know, scrolling happens just at the presentation layer. That is, it cannot be handled via ALV events although it has "AFTER_USER_COMMAND" event. But there are some methods of "CL_GUI_ALV_GRID" about scrolling. Check these out, I generally use top two ones.







    Add comment
    10|10000 characters needed characters exceeded

  • Aug 23, 2004 at 06:31 AM

    You can do this using only one ALV... just use an internal table to put your data in a single structure and use your ALV to manage this new table.

    You will need to scratch more code, but the look will be more clear (IMO).

    Good luck,


    Add comment
    10|10000 characters needed characters exceeded