Application Development and Automation 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: 
Read only

Get CL_SALV_FILTER before refresh

Former Member
0 Likes
709

Hello,

I have a quite tricky problem and hope that it can easily be fixed if I get a little hint from you:

I like to get the filter conditions of a CL_SALV_TABLE instance and also know how to do this by using the GET_FILTERS( ) method. My problem:

If I set a filter in the UI using the filter button of the SALV_TABLE and refresh the dynpro, the filter conditions are gone. I like to save the conditions to remain them even if the dynpro is refreshed.

Unfortunately I cannot find a place where to get the active filters before they are cleared within the refresh.

Can anybody tell me how to access this filter objects before the refresh of the table is done? Would be great!


Best regards,

Markus

Hello,

I have a quite tricky problem and hope that it can easily be fixed if I get a little hint from you:

I like to get the filter conditions of a CL_SALV_TABLE instance and also know how to do this by using the GET_FILTERS( ) method. My problem:

If I set a filter in the UI using the filter button of the SALV_TABLE and refresh the dynpro, the filter conditions are gone. I like to save the conditions to remain them even if the dynpro is refreshed.

Unfortunately I cannot find a place where to get the active filters before they are cleared within the refresh.

Can anybody tell me how to access this filter objects before the refresh of the table is done? Would be great!


Best regards,

Markus

1 REPLY 1
Read only

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert
0 Likes
498

Hi Markus,

this should be possible with use of SALV events. You will probably use before_salv_function event...

Check standard "demo" program SALV_TEST_TABLE_REFRESH which have examples of using SALV events

-- Tomas --