Skip to Content
0
Jun 05, 2013 at 03:19 PM

Call outbound plug dynamically

74 Views

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