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 - How to tell which columns the user has hidden

Former Member
0 Kudos

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!

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

former_member282823
Active Participant
0 Kudos

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.

0 Kudos

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

former_member194669
Active Contributor
0 Kudos

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.