Skip to Content
0
Former Member
Jun 26, 2009 at 02:45 PM

Enable/disable check box based on Condition.

798 Views

Hi,

I want enable/disable checkbox in same column based on a condition in internal table

I have created checkbox by defining char1 under context node

I am using following code for checkbox creation.

lr_column = l_value->if_salv_wd_column_settings~get_column( 'PCRTD' ).

  CREATE OBJECT lr_checkbox
    EXPORTING
      checked_fieldname = 'PCRTD'.
  lr_checkbox->set_enabled( 'X' ).
  lr_column->set_cell_editor( lr_checkbox ).

how do we achive this?

Rgds

Vara