on 07-21-2011 8:21 AM
Hi all,
I am using FM: 'FP_FUNCTION_MODULE_NAME' to get function module name to be generated by smartform.
But it is throwing an exception as 'Exception API (REPOSITORY)'.
TRY.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = lp_form
IMPORTING
e_funcname = fm_name.
CATCH cx_fp_api INTO lx_fp_api.
exception handling
MESSAGE ID lx_fp_api->msgid TYPE lx_fp_api->msgty
NUMBER lx_fp_api->msgno
WITH lx_fp_api->msgv1 lx_fp_api->msgv2
lx_fp_api->msgv3 lx_fp_api->msgv4.
EXIT.
ENDTRY.
Thanks in advance.
Raghav
Hi,
FP_FUNCTION_MODULE_NAME is used for getting the function module name of Adobe forms.
You want to get the Smartforms Function module so use SSF_FUNCTION_MODULE_NAME.
Regards,
Dhina..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi try using the followinf fm instead of 'FP_FUNCTION_MODULE_NAME'
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = f_sf_formname
* VARIANT = ' '
* DIRECT_CALL = ' '
importing
fm_name = f_sf_fmname
exceptions
no_form = 1
no_function_module = 2
others = 3
.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use this:
'SSF_FUNCTION_MODULE_NAME'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.