Skip to Content
1
May 03, 2013 at 06:05 AM

cl_salv_table refresh and filters / sorts

1420 Views

Hi!

I'm using an cl_salv_table object for creating an alv grid and displaying values in it. The user can use Standard ALV functions like filters or sorting and he can refresh the alv grid. When doing a refresh, values are loaded again from database and given to the cl_salv_table object via set_data and refresh method.

But when he does it, the filters and sorts get partial lost. For example the user has set a filter on a column with two selopts in it. After doing the refresh just one selopt is there. The other one gets lost.

What will be a good way, to refresh the ALV Grid and not to destroy filters and sorts?

Thank you very much in advance!

Best regards

Daniel