cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to hide fixed columns using ALV Settings

Former Member
0 Kudos

Hi All,

I have a requirement to have a few set of fixed columns in ALV.

These columns are dynamically generated and there is a possibility to have more number of fixed columns. Hence, i need to provide an option to hide some of these fixed columns in order to be able to view the scrollable fields.

Is there a possibility to hide fixed columns using ALV Settings option? If no, is there any other alternative to do the same?

Regards,

Rekha

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

have you tested it Using the SETTINGS option which you get from right clikc on mouse...

Do you want to provide any button for hiding or what

Regards,

Lekha.

Edited by: Lekha on Oct 30, 2009 2:16 PM

Former Member
0 Kudos

Hi Leka,

Yes, settings option in ALV toolbar or the one you get on right click is the option i was talking about. Once a columns is made as a fixed column, it doesn't allow me to hide it.

Can we hide a fixed column using some other alternative approach in ALV?

Maybe through a button is also fine.

Regards,

Rekha

Former Member
0 Kudos

Hi,

Please test it out...create a button and in that handler..get the column references of that ALV and try to hide the columns..

I havenot tried it out..

Regards,

Lekha.

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

In the handler of the button created u can hide the column.

data : lo_column_setting type ref to if_salv_wd_column_settings,

LO_COLUMN TYPE REF TO CL_SALV_WD_COLUMN,

lo_column_setting ?= lo_value.

lo_column = lo_column_setting->get_column( 'SEL_CAND' ).

check SET_VISIBLE method of the class CL_SALV_WD_COLUMN "Hides or Displays the Column

lo_column->SET_VISIBLE

exporting

VALUE = ..... "Pass the value here

Regards,

Priya