‎2007 Jun 12 6:38 AM
Can someone please tell me how to enable single row selection in
ALV grid? I'm using cl_salv_table to create the ALV grid.
‎2007 Jun 12 6:44 AM
Hi,
You can use this class(cl_salv_selections) to set the selection mode.
Different modes are as follows,
IF_SALV_C_SELECTION_MODE->SINGLE
IF_SALV_C_SELECTION_MODE->MULTIPLE
IF_SALV_C_SELECTION_MODE->CELL
IF_SALV_C_SELECTION_MODE->ROW_COLUMN
IF_SALV_C_SELECTION_MODE->NONE
Please refer to the code snippet,
DATA: lr_sel TYPE REF TO cl_salv_selections.
lr_sel = gr_table->get_selections( ).
lr_sel->set_selection_mode( if_salv_c_selection_mode=>cell ).
Regards,
Vinodh
‎2007 Jun 12 6:41 AM
hi,
<b>BCALV_EDIT_04</b> This report illustrates how to add and remove lines to a table using the ALV Grid Control and how to
implement the saving of the new data.
Rgds
Anversha
‎2007 Jun 12 6:44 AM
Hi,
You can use this class(cl_salv_selections) to set the selection mode.
Different modes are as follows,
IF_SALV_C_SELECTION_MODE->SINGLE
IF_SALV_C_SELECTION_MODE->MULTIPLE
IF_SALV_C_SELECTION_MODE->CELL
IF_SALV_C_SELECTION_MODE->ROW_COLUMN
IF_SALV_C_SELECTION_MODE->NONE
Please refer to the code snippet,
DATA: lr_sel TYPE REF TO cl_salv_selections.
lr_sel = gr_table->get_selections( ).
lr_sel->set_selection_mode( if_salv_c_selection_mode=>cell ).
Regards,
Vinodh