Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Determine the view during the WDDOINIT of a window

Hello guys,

I have 3 views and only one window in my component, I need determine wich view show be the "default view" during the initialization of the window.

This determination will depends of the role of the user that is acessing this component.

For example:

1 - reads the role of the user.

2 - The role is: "developer".

in the WDDOINIT, I need have something like this:

if role = 'developer'.

--- call view1

if role = 'admin'.

--- call view2




Former Member
Former Member replied


Lets say that you have two views V1, V2, V3. You would have embedded three of them in the same window. Create inbound plugs for each of these views. After that go to the window and create three outbound plugs. Create navigation links from these outbound plugs to the three different view inbound plugs. Then in the WDDOINIT method of the window, fire the appropriate outbound plug depending on the user role.


data : test type i value 1.

if test = 1.

   wd_this->fire_to_v2_plg(   ).


   wd_this->fire_to_v1_plg(   ).


1 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question