Skip to Content
0
Former Member
Jan 05, 2007 at 02:21 PM

How to set variant for ALV grid from ABAP

1185 Views

Hello,

I have a program which displays some data with ALV grid. Then after some operation I would like to set different layout for the grid, but not by choosing it manually but by the program. I thought that it would be enough to use the method SET_VARIANT, so I'm setting DISVARIANT structure properly, using SET_VARIANT method and after that I'm calling REFRESH_TABLE_DISPLAY but layout is not changed. What else should I do? Is that possible?

Best regards,

Marcin