Skip to Content
0
Nov 30, 2011 at 05:21 PM

Hide Checkbox from alv cell..?

279 Views

Hi All,

I have a requirnment in which i need to show checkboxes at different cell of a avl column..

I have created a new column in alv in which i set the visibility of the checkboxes shown in a alv column and here is the way i am binding it in WDDOMODIFY..

IF ls_col-id CS 'BOX'.

SPLIT ls_col-id AT 'BOX_' INTO lv_head lv_tail.

CONCATENATE 'CHK_VISIBLE_' lv_tail INTO lv_temp.

CONDENSE lv_temp NO-GAPS.

lr_column = ls_col-r_column.

CREATE OBJECT lr_checkbox

EXPORTING

checked_fieldname = ls_col-id.

lr_checkbox->set_visible_fieldname( lv_temp ).

lr_column->set_cell_editor( lr_checkbox ).

ENDIF.

But for some reason the checkbox visibility is not getting set as i have strored in column..

Any Idea..??

Thanks in advance

Vishesh.