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: 

Selected rows cellvalues

Former Member
0 Kudos

Hi Abapers,

I wanto get the value of the selected rows from alv_grid. The solutuin must be just frontend.

I found a good looking method, but its just a protected mehtod:(

It is very important to handle more than 1 row.

The cl_alv_changed_data_protocol don't good for me, because to this event didn't make any changes.

Thank for the help.

3 REPLIES 3

Former Member
0 Kudos

Hi

For getting the selected rows of an aliv grid

Use the method of cl_alv_gui_grid that is get_selected_rows which will given the row id and row number and it provides mulitple rows .

You want cell wise value you can use get_selected_cell .

This will surely help .

Please reward if useful.

0 Kudos

Hi, thx for the help, but it doesn't work.

If i wanto set a row selection the get_selected_cell give me back no row values.

I don't need the row_id just the row value.

thx

Former Member
0 Kudos

Tr this....

CALL METHOD grid->get_selected_rows

IMPORTING

et_row_no = lt_rows_no.

check the where-used-list of the above method...

also chk BCALV_EDIT_05