on 03-03-2011 12:51 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.