cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP CRM Table Assignment Block Get Refresh(Filter/Sort) When Navigate to SO and Come Back

AB069
Active Participant
0 Likes
951

Hi Experts,

I have custom Table Assignment block at Account Over view page. It use to hold more than 500 records therfore Customer use to filter or sort the record using Assignment block Column header. Now each record has SO which is hyper link. When User click on hyper link it navigate to SO and on press Back. It navigate back to AB. Issue is When Screen Navigate back. The AB get refresh i.e. filter criteria got clear hence all bulk of record again display.

I need to maintain this AB filter criteria so that user see specific record each time. Please suggest.

Accepted Solutions (0)

Answers (2)

Answers (2)

AB069
Active Participant
0 Likes

Hi Habil,

Your solution might not work. It will only takecare of Sorting but not for Filter value.

Issue : I have AB at Overview page when filter apply at AB column and when naviagte to Other page and come back the state is not restore back.

For this SAP given STATE_STORE option but it is not triggering at View Level, But only it trigger at OV but again facing issue i.e. State is not returning.

Is there any other place where we can maintain the AB config i.e filter/sort and when come back we push it

Please advice.

habilaltin
Explorer
0 Likes

Hey,

you can do it with sort method of collection wrapper. Sth. like that:

data: comp_controller type ref to /pwc/zl_bspwdcompone0_impl.
data: lr_col_wrapper_order type ref to cl_bsp_wd_collection_wrapper.

comp_controller ?= me->comp_controller.
lr_col_wrapper_order = comp_controller->typed_context->orders->get_collection_wrapper( ).
lr_col_wrapper_order->sort( iv_attr_name = 'ZATTR' iv_sort_order = 'D' iv_stable = abap_true ).

kind regards