cancel
Showing results for 
Search instead for 
Did you mean: 

FM: FP_FUNCTION_MODULE_NAME Not working

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member

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..

koolspy_ultimate
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi,

use this:

'SSF_FUNCTION_MODULE_NAME'