cancel
Showing results for 
Search instead for 
Did you mean: 

Restore ALV settings after navigation

Johnny_B_
Active Participant
0 Kudos

Hello SDN people,

Is it possible to "restore" or "remember" a user's WD ALV settings after he navigated away and then comes back to the same ALV table ?

This is the situation: We are using the standard application PPM which displays all project in an ALV table dashboard. The users do a lot of filtering and sorting there until they have a list of their currently important projects. Then they click on the first one, to see the details, Then they go back to the dashboard and all filters and sorting is lost, of course. So they have to filter again and click the next project etc...

Saving settings in views is known but not practical in this case.

Is there any way to save the settings temporarily and retrieve them when the user comes back to the ALV table ?

Help is much appreciated!

thank you,

Johannes

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Create a internal table in component controller attribute. When you are navigating away from that page, read the context node having all alv data and save it in your internal table. while coming back, bind the same data back to the context node.

Regards

Vishal Kapoor

Former Member
0 Kudos

Hi,

There is one way which I can think of

a) Store the values entered in ALV filter again in some assistance class or comp controller attributes and when user comes back to ALV set the ALV filter values again with store values and call ALV method to execute filter.

To see how values entered in Filter columns can be fetched, have a look at mentioned thread:

To execute filter back again with stored filter criteria, you can make use of method CREATE_FILTER_RULE of interface IF_SALV_WD_FILTER ( approach will be same as mentioned in above thread )

Same approach can be used for sorting rules applied to each field, store the sort rules applied to each field ( IF_SALV_WD_SORT~GET_SORT_RULE ) ( same coding as mentioned in above thread, only diff is instead of filter interface now you will refer to sort interface ).

Once the sort rules are stored, you can apply them back on coming again by using method create_sort_rule of IF_SALV_WD_SORT.

For more info on how to achieve, you can do a where used list of methods create_sort_rule or create_filter_rule.

Hope this helps.

Regards

Manas Dua