You can use ABAP RTTI to dynamically determine the object type by reference and instantiate a respective object. That said, what you are trying to do is a bit unorthodox and probably won't work since plugs aren't real methods. I would come up with a cleaner design such as returning the plug name from the assistance class method and then calling FIRE_PLUG( ) method of the current view controller.
↧