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 a function module dynamically

Former Member
0 Likes
308

I have a function module which would check the type of data passed by the user and accordingly call a function module for subsequent processing.For eg if the user passes a FORM name it will call rh_form_exists to check existence of form or if the user passes call function name it will call rh_function_exists to check it existence.

So a number of function module is called dynamically within the same function module.

I dnt know how to call dynamic function module? Can anyone please help

1 REPLY 1
Read only

Former Member
0 Likes
267

Hi,

Have a look:


                data:       w_funname(30),

                CONCATENATE 'CONVERSION_EXIT_' dd01l-convexit '_OUTPUT'
                                                         INTO w_funname.
                  CALL FUNCTION w_funname
                       EXPORTING
                            input  = <dyn_field>
                       IMPORTING
                            output = <dyn_field>.
          

Regards

Raju Chitale