cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Column Visibiltiy

Former Member
0 Kudos

Hi Guru's,

I am using ALV for displaying data's.

Based on condition i hided column using the code

ls_columns-r_column->set_visible( if_wdl_core=>visibility_none ).

Same like i need to make it visible for other condition .

Regards,

Meenachi.R

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Friends,

Sorry for delay.. Thank you so much for your replies..

i used this code. its working fine.

ls_columns-r_column->set_visible('02').

Thanks & Regards,

Meena.R

Former Member
0 Kudos

Hi,

Try this,

For making column visible :

ls_columns-r_column->set_visible( cl_wd_uielement=>e_visible-none ).

For making column invisible :

ls_columns-r_column->set_visible( cl_wd_uielement=>e_visible-visible ).

Hope this will be useful...

Former Member
0 Kudos

Hi,

Set the visibility based on the condition. Pass the parameter to the method as Visibility_visible

when you want the column to be visible.

ls_columns-r_column->set_visible( if_wdl_core=>VISIBILITY_VISIBLE ).

Best Regards,

Arun Krishnamoorthy