cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro ALV -Personlisation

former_member193202
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member193202
Participant
0 Kudos

solved

Former Member
0 Kudos

How did you solve this? I have a similar issue.

former_member193202
Participant
0 Kudos

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 ).

Former Member
0 Kudos

Thanks... worked like a charm!