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: 

SALV: Disable line selection

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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

SuhaSaha
Advisor
Advisor
0 Kudos

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