04-04-2013 2:28 PM
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
04-04-2013 5:26 PM
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.