12-11-2008 1:45 PM
Good morning! Is there a way to tell what columns the user has hidden in an ALV Grid? I am currently working on a report that displays a summary of certain information. I have been asked that if a user hides one of the columns for the program to resummarize without using the field that was being displayed in the hidden column. Thanks for your help!
12-11-2008 2:59 PM
May be u can try this way
data g_grid1 type ref to cl_gui_alv_grid.
call method g_grid1->get_frontend_fieldcatalog
importing
et_fieldcatalog = gt_popup_fieldctlg[].
read table gt_popup_fieldctlg with key no_out = 'X' into gs_fcat.
a®
12-11-2008 1:49 PM
Hi Rod,
Im not sure if I understood your question right, but any hidden columns should be displayed under the 'Change Layout' button in 'Column Set'.
Again, not sure if this is what you are looking for but please let us know.
Vijay
12-11-2008 1:50 PM
Hi,
After execution of the prog, you will find the layout at the top of the screen. click on that and you will find the list of columns that are displayed on the left and the list of columns on the right that are hide.
hope it will solve the issue.
Regards,
Ramesh.
12-11-2008 1:54 PM
Hi,
While filling the fieldcatalog, check if the <fieldcatalog>-NO_OUT = X.
NO_OUT is set ot X then that column is hidden
Regards
Shiva
12-11-2008 2:59 PM
May be u can try this way
data g_grid1 type ref to cl_gui_alv_grid.
call method g_grid1->get_frontend_fieldcatalog
importing
et_fieldcatalog = gt_popup_fieldctlg[].
read table gt_popup_fieldctlg with key no_out = 'X' into gs_fcat.
a®