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

calling function module dynamically

Former Member
0 Likes
640

hello guyz,

How to call function module dynamically???

Plz advise

regards

4 REPLIES 4
Read only

JozsefSzikszai
Active Contributor
0 Likes
524

hi Sudheer,

something like:

DATA : lv_fname TYPE fname.

fname = 'WHATEVER'.

CALL FUNCTION lv_fname

....

hope it is dynamic enough...

ec

Read only

0 Likes
524

lol..mate ..al try it and let u know if it is dynamic enuf..:)

thanks btw

Read only

Former Member
0 Likes
524

Now i will explain actual picture why im asking about this dynamic thingy..

i created a smartforms in different languages all this smartforms have the same data apart from the language on the smartform.

so i have created a table and put the all the function modules in that table...

now when i give the input on selection screen..

that should dynamically print the smartform with that specific language..

so this is my code (just a little bit to make undastand wot iam doing)

CONCATENATE 'ZBDFRM_CANX_'

lv_client

'_'

p_lang

INTO lv_form.

CALL FUNCTION 'ZCRMFUN_PARAMETER'

EXPORTING

p_parentid = 'ZBDREP_CANCELLATIONS'

p_identifier = p_client

TABLES

tab_parameters = gt_zcrmtab_param.

after this wots my next step.....

plz advise

regards

Read only

Former Member
0 Likes
524

hi

good

Use the function module RPY_FUNCTIONMODULE_READ_NEW to read all of the metadata for a funciton module, it returns internal tables for all parameters of the function module interface.

reward point if helpful..

thanks

mrutyun^