03-02-2011 4:16 PM
Hi colleagues,
I need to disable line selections on CL_SALV_TABLE grid and allow only cell selection - only cell is highlighted when user click on that, without line highlighting.
I need exactly the same behavior like with CL_SALV_SELECTIONS->set_selection_mode( if_salv_c_selection_mode~cell ), but without selection line buttons on the left side.
Any ideas?
Thanks
Martin
03-02-2011 5:16 PM
Hi Martin,
Please check the following link:
[Selecting Cells, Rows and Columns |http://help.sap.com/saphelp_nw04/helpdata/en/f1/e4eb40c4f8712ae10000000a155106/frameset.htm]
The OO ALV is documented pretty well by SAP.
Kind regards,
Robert
PS. Follow ALV Object Model -> Basic ALV Functions -> Selecting Cells, Rows and Columns
PPS. I am sorry but I believe I did not read your question correctly as it seems that you already set the correct selection type. Maybe did you try to set it to NONE and use the on click event or on focus to highlight the cell? Check the documentation for this, Handling Single and Double Clicks.
Edited by: RJ. Schamhart on Mar 2, 2011 9:21 AM
03-02-2011 5:31 PM
Hello,
I think you should set the selection mode to 'MULTIPLE'.
LO_ALV_SELECTIONS->SET_SELECTION_MODE( CL_SALV_SELECTIONS=>MULTIPLE ).
BR,
Suhas
PS: Read the documentation of the SET_SELECTION_MODE for further details