Application Development and Automation 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: 
Read only

regarding ALV grid hide column

Former Member
0 Likes
765

Hey guys,

i have two questions on ALV grid. I am working on ERP2004.

1.How to make multiple selection in Alv grid.

i tried doing TW_LAYOUT-EDIT_MODE = 'A'.

and TW_LAYOUT-EDIT = 'X'.

but i could not find changes in screen.

Even i look for TW_LAYOUT-SEL_MODE = 'A'.

it says SEL_MODE is not available..

2.How to hide the field/Column in ALV grid.

Can we hide the field or column in alvgrid using

default Filter button in ALVgrid. or How to do this inside

the program. Please. explain.

Thanks.

ambichan,

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
628

First, If you are using the class CL_GUI_ALV_GRID, I believe that multiple section, you need to set to "D".

  layout-sel_mode = 'D'.

Also if you want to hide columns, when building your field catalog you must set NO_OUT.

wa_fieldcat-no_out = 'X'.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
628

Filter is to filter the rows specific to a condition and not the columns.

For columns, like Rich has given, you will have to use NO_OUT = 'X'. However, you need to be aware of the fact that when the user tries to change the layout, he can see all the fields including those you have hidden. For this the work around could be remove the authorization to change the layout, which can be done using the parameter I_SAVE.

For the layout issue, I guess Rich has already given the answer.

Regards,

Ravi

Read only

0 Likes
628

when building your field catalog you must set NO_OUT.

<b>

wa_fieldcat-no_out = 'X'.</b>