Skip to Content
0
Dec 17, 2007 at 02:40 PM

Calling super method dynamically

272 Views

Hi,

I would like to call a method on the super class dynamically in order to be able to provide the parameters in a table. So I tried something like:

CALL METHOD super->( 'MY_METHOD' )

PARAMETER-TABLE lth_parameter.

This leads to the error message "Mit SUPER-> kann nur die vorige Implementierung der eigenen Methode aufgerufen werden.". MY_METHOD is the same method as the one in which I try to place this call but it still complains. However, I can not call it statically since I have quite some optional parameters to provide and there are many different combinations of IS SUPPLIED logics in the called super method.

Does anyone know hot to call the super method dynamically or statically plus providing the parameters as a table?

Kind regards,

Michael