cancel
Showing results for 
Search instead for 
Did you mean: 

Double Click functionality

0 Kudos

Hello,

does the SALV Component supports the double click functionality?

(After a double click into a cell of the ALV, a self programmed action shall start)

If there is no support for double click, how can I get the index of the selected / clicked cell?

I need the row number and the name of the column (because, depending on the column different additional data shall be displayed in another part of the View)!

Thanks for your help!

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hello Abhi,

thanks for your answer.

I implemented it, but it seems not to work and I found the following:

ON_CLICK and ON_CELL_ACTION are only triggered when the cell editor is a link or a button but not when clicking on an input_field.

My ALV is not editable and I have only Text view fields.

Do you have another advice?

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Use

CALL METHOD LR_ALV_CONFIG->IF_SALV_WD_TABLE_SETTINGS~SET_CELL_ACTION_EVENT_ENABLED

EXPORTING

VALUE = ABAP_true.

to enable the cell action event and subscribe to the event ON_CELL_ACTION of the ALV

here you have, this event has R_PARAM as parameter of type IF_SALV_WD_TABLE_CELL_ACTION

column and index

Abhi