‎2007 Oct 08 4:14 PM
hello guyz,
How to call function module dynamically???
Plz advise
regards
‎2007 Oct 08 4:20 PM
hi Sudheer,
something like:
DATA : lv_fname TYPE fname.
fname = 'WHATEVER'.
CALL FUNCTION lv_fname
....
hope it is dynamic enough...
ec
‎2007 Oct 08 4:23 PM
lol..mate ..al try it and let u know if it is dynamic enuf..:)
thanks btw
‎2007 Oct 08 4:33 PM
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
‎2007 Oct 08 4:45 PM
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^