cancel
Showing results for 
Search instead for 
Did you mean: 

Reset Webdynpro ABAP ALV Sort & Filters

Former Member
0 Kudos
521

Hello All,

I have created 2 views, one view will have selection screen, search button and second view will have alv table, back button.

I can able to Sort/Filter on the ALV table using standard ALV actions. But I am not able to reset the sort/filter when I go back to Selection-Screen view from ALV Screen view.

Can anyone please let me know how to reset the Sort/Filters when there is some action to go back to Selection Screen view?

Points will be rewarded.

Thank You.

Shyam

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

 

use below code in which method you are configuring ALV

IF lr_alv_usage->has_active_component( ) IS NOT INITIAL.
lr_alv_usage->delete_component( ).
ENDIF

lr_alv_usage->create_component( ). 

if hel;pful reward point

Former Member
0 Kudos

Hi All,

Thanks for your inputs.

I have tried using your inputs, but when i go back from selction screen view to ALV view 2nd time, I can not see "Filter" link on the ALV table.

Thank You.

Shyam

former_member226225
Contributor
0 Kudos

Hi ,

       Just Try for it....

  

     In the back button just write the following code

   In Class CL_SALV_WD_CONFIG_TABLE we have one method     SET_FILTER_COMPLEX_ALLOWED  and set that flag to abap_false.

Thanks,

Raghunadh.k

Former Member
0 Kudos

Hi Shyam,

  While navigating from ALV to slelect option view you Write code to invalidate the Select option node / to clear attribute in  HANDLEIN method.

You dont need to create new method.. I hope already it will display in your methods

It will clear the values.

I hope it will help you..

Regards,

Meenachi.R