Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to make checkbox editable

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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.

Former Member
0 Kudos

Generally SALVs are used to display data only.. I don't know if there is way to make it editable.

Regards,

Mohaiyuddin

Former Member
0 Kudos

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