‎2008 Feb 21 5:43 AM
hi guys,
I have a ztable in which they are storing the funcionl module.
My requirement is get the functional module based on the input from the ztable and have to pass values to functional module and retrieve the values..
Is it possible?if so how?
senthil
‎2008 Feb 21 6:00 AM
HI
Yes it is possible but having some restirctions. All the FM's which you get from ztable must have same number of parameters and have same type. Suppose you retrieve name of FM in variable v_fm then you call this FM as
call function 'V_FM'
Exporting
parameters list
Importing
parameters list
Changing
parameters list
Tables
parameters list.
Regards
Aditya
‎2008 Feb 21 5:56 AM
HI
You can Call FM as required in the program, provided you call it correctly.
In ur case :Do like below
SELECT FNAME INTO l_FNAME FROM ZTABLE
WHERE < CONDITIONS > .
IF SY_SUBRC = 0 .
CALL FUNCTION l_FNAME
IMPORTING
EXPORTING..
ENDIF .
HOPE THIS HELPS.
THANKS
Praveen
‎2008 Feb 21 6:00 AM
HI
Yes it is possible but having some restirctions. All the FM's which you get from ztable must have same number of parameters and have same type. Suppose you retrieve name of FM in variable v_fm then you call this FM as
call function 'V_FM'
Exporting
parameters list
Importing
parameters list
Changing
parameters list
Tables
parameters list.
Regards
Aditya
‎2008 Feb 21 6:24 AM
thanks for the replies..
If my function module paramters is going to be different..Is theer is any option for that..
senthil