on 07-09-2009 7:10 AM
hi folks,
i use ONE! alv component for displaying differnt type of internal tables; on saving the layouts these are always connected to the component.
how can i achive depeding on the displays table, that the layout is stored in conjunction with the table shown?
do i have to use personlisation? but how. i tried using a variant-key but did not succeed.
any tips would be helpful.
thanks a lot
oliver
solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
we used a coding like that: NOTE:
Importing Paramter: IV_KEYTYPE STRING, A NAME of the ALVComponent we use
IO_ALV TYPE REF TO IWCI_SALV_WD_TABLE. (the alv component you want to configure)
DATA:
lv_key TYPE string,
lv_key_hash TYPE string,
ls_par_out TYPE if_salv_wd_table=>s_type_param_config_out,
ls_par_in TYPE if_salv_wd_table=>s_type_param_config_in.
ls_par_in-action = if_salv_wd_table=>key.
ls_par_out = io_alv->get_config_data( ls_par_in ).
CONCATENATE
ls_par_out-usage_path
ls_par_out-alv_component_usage
iv_key
INTO
lv_key
SEPARATED BY '&'.
*... Hash configuration key to unique key of 32 chars length
TRY.
lv_key_hash = cl_rsmds_hash_utilities=>to_hash_c32( lv_key ).
CATCH cx_rsmds_input_invalid cx_rsmds_input_invalid_type.
ENDTRY.
*... set new configuration key
ls_par_in-action = if_salv_wd_table=>set.
ls_par_in-config_key-config_type = '08'.
ls_par_in-config_key-config_id = lv_key_hash.
io_alv->get_config_data( ls_par_in ).
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.