cancel
Showing results for 
Search instead for 
Did you mean: 

Get selected cell in SAP List Viewer

Former Member
0 Kudos

Hi,

i've the following problem.

I need the selected cell in a List Viewer and I don't know how this works. To get the selected row is no problem via the get_selected_elements() method.

Has anyone an idea?

Thanks,

Julian

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Julian,

I think you need to get the details of any particulaar cell in ALV.

Try using the ON_CELL_ACTION event of the alv.

To get a details of a cell you need to know the column and row no of that.

In that event handler you will get a parameter called R_PARAM.

From this you can get the column and the index of row. By which you can get the details of the cell.

Check:-

[ON_CELL_ACTION|http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/45/12093591152464e10000000a1553f7/content.htm]

To use this event implement in wddoinit or in wddomodifyview :-

if_salv_wd_table_settings~set_cell_action_event_enabled( abap_true ).

After that in your method create the event handler for that where you can get the details of R_PARAM.

[how to use on_cell_action|http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtotriggertheeventON_CELL_ACTIONin+ALV]

Hope this will help you.

Regards,

Monishankar C

Former Member
0 Kudos

Hi Julian,

Try with on_lead_select and get_lead_selection_index.

check this... http://forums.sdn.sap.com/click.jspa?searchID=70576455&messageID=4666280

It might helps you...

Cheers,

Kris.