cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically Created Outbound Plug

0 Kudos

Hi All,

IF_WD_VIEW_CONTROLLER->FIRE_PLUG(...) triggers dynamically created outbound plugs.

Ok, it's great. That is what I need.

But... how can I create outbound plug dynamically?

BR,

LL

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

We do have a business case. We want to change the behaviour of a resume plug (on/off) to make it customizable (at runtime):

With resume plug -> fast re-entry but lot of memory consumed

Without resume plug -> memory saved.

Please see for more information

The situation described is not just for fun, but required by our customers. The difference of running an application with or without resume plugs has huge impact on the behaviour of this WDA in the EP.

The resume plug works as a marker interface in this particular case.

Former Member
0 Kudos

Hi,

Please check this blog to how to navigate to views dynamically and how to embed views dynamically.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50f3660d-ad29-2b10-2482-8120e569...

Former Member
0 Kudos

Normally in Web Dynpro you can declare outbound plugs and inbound plugs for your views and windows, and then you should draw a navigation link between them in your window editor. One outboundplug can be connected to more than one inbound plugs.

At runtime you can decide, which outbound plug should be fired. You can also fire more than one outbound plugs, which are put in a queue and handled one after the other.

So in standard Web Dynpro applications there is no need for dynamical creation of outbound plugs.

If your application is special, please tell us your business case.

if you mean you want to navigate to different pages/urls:

create an interface exit outboundplug in your window with url parameter,

and fire that from within your application with the at runtime desired value:

lv_url = 'your url'.

l_ref_window = wd_this->get_window_ctr( ).

l_ref_window->fire_yourplug_plg(

url = lv_url " String

).

Thanks,

Sree.