Skip to Content
1
Former Member
Mar 18, 2009 at 02:56 PM

Dynamic call of function modules

7905 Views

I have an idea about using a DB table to define the calling of a function module. Now I know that you can call a FM named in a variable, but what about the Import/Export parameters?

Let's say that FM1 has the following parameters.

Import

i_par1

i_par2

export

e_par1

FM2 has

Import

i_par1

Export

e_par1

e_par2

e_par3

Is there a way to dynamicly call these 2 FMs with the same code? I realize that the parameters would have to be defined properly (data type) for it to work, but what about the number of import and export parameters? Or do I have to make a rule that any FM module that is defined in this DB table has to have the same parameter interface?