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 freeze Columns in Horizontal Scroll

Former Member
0 Kudos
2,528

Hi All,

I am using ALV object cl_gui_alv_grid-> set_table_for_first_display and want to freeze the first three columns when doing horizontal scroll.

I am passing it_fieldcatalog-fix_column = 'X' for the first three column fields but these columns are not being freozen when I do Horizontal Scroll.

Kindly let me know what else I need to pass or any alternative way to achieve this in ALV.

Thanks in advance.

Vijoy

1 ACCEPTED SOLUTION

Former Member
0 Kudos
424

Vijoy,

Making the FIX_COLUMN to X should have solved your problem. As a work around, make those columns as KEY columns in the fieldcatalog and see if it works that way.

I hope you don't have any other column in front of these columns which is NOT fixed. If yes, that it will not work.

Regards,

Ravi

Note : Please mark the helpful answers and close the thread if the question is answered

Message was edited by: Ravikumar Allampallam

6 REPLIES 6

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
424

I think that there is a field in the field catalog structure called "KEY" or something like that. Mark it as "X" and try.

Regards,

Rich Heilman

Former Member
0 Kudos
425

Vijoy,

Making the FIX_COLUMN to X should have solved your problem. As a work around, make those columns as KEY columns in the fieldcatalog and see if it works that way.

I hope you don't have any other column in front of these columns which is NOT fixed. If yes, that it will not work.

Regards,

Ravi

Note : Please mark the helpful answers and close the thread if the question is answered

Message was edited by: Ravikumar Allampallam

0 Kudos
424

Thanks Ravi.

Key = 'X' solved the problem

Vijoy

0 Kudos
424

Isn't that what I suggested?

Regards,

Rich Heilman

0 Kudos
424

Hi Rich,

Sorry about that. You also had given the correct answer. I should have marked your answer also as Solved the problem.

0 Kudos
424

Its alright man I'm just messing around.

Regards,

Rich Heilman