cancel
Showing results for 
Search instead for 
Did you mean: 

Why does role based ALV variant don 't work reliable?

0 Kudos

Hi expert,

in a web dynpro based development i try to implement a role based variant control in SALV_WD_TABLE.

After initialization the user role is checked and in ALV personalization the variant is loading.

First i call set_default_variant( ) and then load_config_by_key from the if_wd_personalization interface.

This logic is working, but after a role change always after the second call.

Did someone perhaps already experiences with this topic?

Thank you in advance,

Tobi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Can you please be brief for below comment ?


This logic is working, but after a role change always after the second call.

   

Thanks

KH

0 Kudos

ok I understand that I have to explain in detail.

For each projekt the user had different roles. these are retrieved at initialization and then the appropriate variant in alv will be load.

When i load project A with role X and after that project B with role Y i get the variant from role X. When i load project B again, i will get the correct variant.

But allways on the second call, although the logic is run through clean both times.