0

I have task to refresh only modified rows in ALV grid. I know that the grid is refreshed via method

 CALL METHOD l_grid->refresh_table_display
  EXPORTING
    is_stable      = ls_stbl
  EXCEPTIONS
    finished       = 1
    OTHERS         = 2.

But it refreshes the whole grid only.

Is there any method which allows to refresh certain grid lines?

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
Skalozub
  • 539
  • 7
  • 26
  • Please add a bit more context. Are you in editing or display mode? – vwegert Sep 08 '17 at 17:19
  • It's a display mode only. I do some data operations/changes with selected lines when user clicks buttons on the toolbar. I must show the date changes in the ALV grid. The customer asks to refresh the selected lines only, becuase the grid can contain too much lines. – Skalozub Sep 08 '17 at 18:29

2 Answers2

1

Outside of the DATA_CHANGED event in edit mode, that is not supported.

vwegert
  • 18,371
  • 3
  • 37
  • 55
  • Thank you for the answer. Switching to edit mode combined with using change_data_from_inside method seem to be able to make change of certain grid lines. – Skalozub Sep 09 '17 at 10:56
0

I have same problem but in my scenario, i was using function module REUSE_ALV_GRID_DISPLAY. If i pass refresh command on FM it refresh whole grid display. So i solved it using user command "@REFRESH". after making changes in internal table i called @refresh. This help me solve issue of refreshing whole grid. it refresh with only row which made changes.