HI Santosh,
Create an attribute called 'Check' of type wdy_boolean in the context node. Create an Event Handler method of checkbox in view.Event is link_click . Whenever user clicks on checkbox, event handler method gets called.
You can see the Event from class CL_SALV_EVENTS_TABLE.
*...Get all the Columns
DATA: lt_columns TYPE REF TO cl_salv_columns.
lt_columns = lr_alv->get_columns( ),
lr_checkbox type ref to cl_salv_wd_uie_checkbox.
* set check box for column id check and register for event
loop at lt_columns into ls_columns.
case ls_columns-id.
when 'CHECK.
" create checkbox
CREATE OBJECT lr_checkbox
ls_columns-r_column->set_cell_editor( lr_checkbox ).
ls_columns->set_cell_type( if_salv_c_cell_type=>checkbox_hotspot ).
endcase.
endloop.
Event Handler Method
1. When user clicks on check box, this method gets called,and in this method get the selected index check box from event parameters and then loop the table records columns and set all the other records checkbox READ_ONLY property to abap_false. (code you implement according to it)
Hope this will help you .
Regards,
Ravikiran.K