Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function module

Former Member
0 Likes
447

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
429

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

3 REPLIES 3
Read only

Former Member
0 Likes
429

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

Read only

Former Member
0 Likes
430

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

Read only

0 Likes
429

thanks for the replies..

If my function module paramters is going to be different..Is theer is any option for that..

senthil