on 12-21-2012 4:25 PM
Hi Santosh,
lets change between V1 and V2 by clicking buttons "Load V1" or "Load V2" as given in your picture.
Put following code into the ONACTION*-methods of the buttons (E.G. to load V1):
DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
lo_INTERFACECONTROLLER = wd_this->wd_cpifc_alv_usage( ).
data lr_api type REF TO IF_WD_CONTROLLER.
lr_api = lo_interfacecontroller->wd_get_api( ).
data lr_pers_manager type ref to if_wd_personalization.
lr_pers_manager = lr_api->GET_PERSONALIZATION_MANAGER( ).
data lt_vars type WDR_PERS_VARIANTS.
data ls_var type WDR_PERS_VARIANT.
lt_vars = lr_pers_manager->get_variants( ).
READ TABLE lt_vars with key description = 'V1' into ls_var.
data lr_alv_cfg_data_in type IF_SALV_WD_TABLE=>S_TYPE_PARAM_CONFIG_IN.
data lr_alv_cfg_data type IF_SALV_WD_TABLE=>S_TYPE_PARAM_CONFIG_OUT.
lr_alv_cfg_data_in-action = '07'. " This is Action 'LOAD' = 07
lr_alv_cfg_data_in-view = ls_var. " This is the view you want to load.
lr_alv_cfg_data = lo_interfacecontroller->GET_CONFIG_data( lr_alv_cfg_data_in ).
.
Regards,
ismail
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes you can change by using layout dynammically at run time
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.