11-25-2008 7:15 AM
Hi All
I am using class cl_salv_table to create the alv.
My need is to make check box.
i am using code
gr_column->set_cell_type( if_salv_c_cell_type=>checkbox ).
Checkbox is coming but it is in display mode.
can anyboy suggest how can i make it editable.
Thanks and Regards
Aditya
11-25-2008 7:18 AM
Hi,
Check the below command which enables to make the check box editable.
DATA: gd_repid LIKE sy-repid, "Exists
ref_grid TYPE REF TO cl_gui_alv_grid.
IF ref_grid IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref_grid.
ENDIF.
IF NOT ref_grid IS INITIAL.
CALL METHOD ref_grid->check_changed_data .
ENDIF.
Hope this helps,
Murthy.
11-25-2008 7:22 AM
Generally SALVs are used to display data only.. I don't know if there is way to make it editable.
Regards,
Mohaiyuddin
12-10-2008 6:24 AM
Hi
The solution is that we need to make filed in alv and Checkbox and hotspot both (6) and code to modify the row at runtime.
Regards
Aditya