Skip to Content
Apr 04, 2013 at 01:28 PM

ALV Grid: Display variant reverts to default although columns are set to no_output


Hi Colleagues,

I have an application with an ALV grid. When testing the application I have defined a default layout(display variant). When I open the application the default layout is shown. Then I change the layout and hide two columns. Then I click on a user-defined button and the layout reverts to default back.

I have used the method get_frontend_fieldcatalog and pass the current fieldcatalog to the method set_table_for_first_display. And when debugging I saw that the columns have the attribut no_output = X. But they will be displayed... And this will only happen when I defined a default layout. If I haven't defined any default layout and I change the layout, the change will stay. Is it a bug in ALV framework or have I done something wrong?

I really appreciate if someone can help me.

thank you and best regards,