Skip to Content
0
Former Member
Mar 26, 2009 at 11:15 AM

controlling visibility of ALV columns at runtime

26 Views

Hi

I have an ALV column which is of type DropdownByKey. I can control the visibility of the dropdown by setting it based on another context node attribute (for e.g., 'CAT_VALUE_I_VISIBLE') which I modify at runtime. But then I want to hide the column itself based on the other context node attribute which I am not able to. Is it possible ?

I have something like this to hide the dropdown

lo_drdn_by_key->set_visible_fieldname( 'CAT_VALUE_I_VISIBLE' ).

But on the column level there is only a method like :

DATA lo_column type ref to cl_salv_wd_column.

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

Is there a possibility to control the visibility of an ALV column at runtime ?

Thanks and regards

Sukanya