2014 Jun 17 10:50 AM
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
2014 Jun 17 11:34 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |