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 Grid: Display variant reverts to default although columns are set to no_output

0 Kudos

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,

Wenwen

1 REPLY 1

Former Member
0 Kudos

Hello Wenwen,

Please use below function modules to work with ALV layout. Check whether you are missing something are not.

1.REUSE_ALV_VARIANT_F4

2.REUSE_ALV_VARIANT_EXISTENCE

3.REUSE_ALV_VARIANT_DEFAULT_GET

For more details, check Tcode MB51 (Material Document List). This functionality is used here.

If you need further help,please let me know.

Regards,

Sudhir Kothavale.