cancel
Showing results for 
Search instead for 
Did you mean: 

Specifying different initial views for different users in ALV web dynpro

Former Member
0 Kudos

Hi Friends,

I need to have 2 different initial view for my web dynpro application eg: View1 and View2. There will 2 group of users using the respective Views. However the first group should not be able to see other view(View2) and vice versa.

Please tell me whether it is possible and if yes then how to do it.

Regards,

Saud

Accepted Solutions (0)

Answers (2)

Answers (2)

ChrisPaine
Active Contributor
0 Kudos

Hi Saud,

are you talking about user views of the ALV data or WD Views?

Cheers,

Chris

Former Member
0 Kudos

User Views of ALV data.

ChrisPaine
Active Contributor
0 Kudos

Hi,

the ALV component has a public attribute - R_COMPONENT which is of type ref to IF_SALV_WD_COMPONENT_TABLE

you can call GET_PERSONALISATION on this reference to return a reference to the interface IF_SALV_WD_COMP_TABLE_PERS. This in turn has a method - SET_STANDARD_VIEW.

I think that this should allow you to set which ever view you want.

Hope it helps,

Chris

Former Member
0 Kudos

Hi,

Trigger the outbound plug to the respective view from the window in the HANDLEDEFAULT Event method as per the User group.

Ranganathan.