on 06-05-2013 4:19 PM
Hi all,
I want to fire an outbound plug dynamically. To do this I use this coding:
lv_outplug = 'to_view_01'. "this can be any value
concatenate 'fire_' lv_outplug '_plg' into lv_outplug.
try.
call method wd_this->(lv_outplug).
catch cx_sy_dyn_call_error.
endtry.
Unfortunately this gives me an exception CX_SY_DYN_CALL_ILLEGAL_METHOD.
Does anyone have an idea how to fire a plug dynamically?
Any help appreciated.
Regards,
Stefan
Hi Stefan
DATA lo_view_controller TYPE REF TO if_wd_view_controller.
lo_view_controller = wd_this->wd_get_api( ).
lo_view_controller->fire_plug(
EXPORTING
* parameters = " Parameter of Outbound Plug
plug_name = 'OP1' " Web Dynpro: Runtime Structure of In/Outbound Plugs
).
Hope it helps.
Regards
Swati
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.