Hi ,
I am using the same ALV reference on multiple screens. A variant is selected on First screen then while navigating to next view, the ALV is displayed with the same Variant but not with default [Standard View]. How to make ALV start with the variant.
I tried using the below code
** ALV Variants DATA:lo_api_controller TYPE REF TO if_wd_controller, lo_pers TYPE REF TO if_wd_personalization, lr_comp_factory TYPE REF TO if_salv_wd_comp_factory, lt_var TYPE wdr_pers_variants, lv_configkey TYPE wdy_config_key. FIELD-SYMBOLS:<fs_var> TYPE wdr_pers_variant. lo_api_controller = im_alv->wd_get_api( ). lo_pers = lo_api_controller->get_personalization_manager( ). lt_var = lo_pers->get_variants( ). READ lt_var ASSIGNING <fs_var> index 1. if sy-subrc EQ 0 lo_pers->load_config_by_key( EXPORTING config_key = lw_key ). endif.
in LW_KEY I used the same config id but it dumps. How to proceed.
I tried using the ALV Refresh method also, but still it did not help