on 10-30-2009 8:35 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.