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: 

How to refresh only selected rows in ALV?

nurullah_rstem2
Explorer
0 Kudos
637

Hi,

there is a button on ALV and it is changing the cells of selected rows editable or non editable.

refresh_table_display method is refreshing properly but the all rows of ALV are being refreshed.

so i want to refresh only selected rows in ALV because there are too much rows so waiting until finished the refreshing.

is there a way to refresh the only selected rows?

thanks in advance

3 REPLIES 3

Sandra_Rossi
Active Contributor
0 Kudos
476

I do that frequently and there's no issue, the refresh is done smoothly, no blinking, fast, etc.

What exact problem do you have?

NB: just in case, it depends on your exact logic, you change either the requested fields during the DATA_CHANGED* events, or anything in the internal table and you refresh.

amirbarzegar
Explorer
0 Kudos
476

hello

first define this method in definition part of your class --> data_changed FOR EVENT data_changed OF cl_gui_alv_grid IMPORTING er_data_changed.

and in the implementation part of your method add this code to get data changed in the alv

METHOD data_changed.

er_data_changed->mt_mod_cells .

* above line return rows you need to refresh

ENDMETHOD.

0 Kudos
476

If I understand well the question, I think that the OP program is changing directly the internal table, so it doesn't answer exactly the question asked, which is about selected lines, not about data changed manually in the grid by the user.