on 05-21-2007 2:03 PM
After using Fm 'SSF_FUNCTION_MODULE_NAME, how to call fuction using variable what i get from this fm i.e FM name.
call function FMNAME
exporting.
...
instead of typing all export inport and tables parameters., you can call your FM, using the pattern, first... and then replace function module name with FMNAME
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you transport to other systems the name of the generated FM may be different, so you want to use the following:
* Get the Function Module Name
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = V_FORM_NAME
IMPORTING
FM_NAME = V_FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
V_RETCODE = 1.
ENDIF.
* Call the Smartform's Function Module
CALL FUNCTION V_FM_NAME
EXPORTING
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.