cancel
Showing results for 
Search instead for 
Did you mean: 

IF_BSP_WD_HISTORY_STATE~STATE_STORE and IF_BSP_WD_HISTORY_STATE~STATE_RESTORE - Interface methods ? Sequence in which these will be executed ?

Former Member
0 Kudos

Hello Experts ,

  What is the use and sequence in which framework executes the following two interface methods :

IF_BSP_WD_HISTORY_STATE~STATE_STOREand   IF_BSP_WD_HISTORY_STATE~STATE_RESTORE 

Thanks and Regards,

Nikhil Kulkanri

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Nikhil,

Refer below thread,it may solve your query.

     http://scn.sap.com/thread/3241513

Regards

Rajarama U

former_member205429
Contributor
0 Kudos

Nikhil,

the purpose of State_Store and State_Restore is

in State STore : we have add_item method to Save the state of the entity.

in State Restore : we have get_item method to get the state of the saved entity.

these methods we use in the scenarios :

Suppose you have Opportunity Search and suppose you have extracted the results based on some search parameter in ascending/ descending .

or it can be like you have extracted the results based on some custom criteria.

and now you have navigated from this result screen to some other view.

now when you click on back button, you need to get back the state in which the previous screen is available( Result table with the Custom search in the order u wished ... )

Pls let me know in case of any issues !!

Former Member
0 Kudos

Hello Santhosh ,

This makes sense. So you mean that :

If i have two component : One search page component and another Head component where i am navigating on click of result.

Now my question is : Where to implement these methods ? In my  component1(Search page component) or Component2(Head component) .

Thanks and Regards,

nikhil Kulkarni

former_member205429
Contributor
0 Kudos

Yes Nikhil,

U need to implement in COmponent 1 only.