cancel
Showing results for 
Search instead for 
Did you mean: 

FM_NAME function module not able to call

Former Member
0 Kudos

Hi Friends,

as I am creating new adobe form but every thing is fine but I am unable to call FM_NAME(call the generated function module) function module ...

can u suggest me the correct reason..

regards

rahul

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member628395
Active Participant
0 Kudos

Hi,

Please check the below code.


DATA: fm_name           TYPE rs38l_fnam.      " Name of Function Module

CALL FUNCTION 'FP_JOB_OPEN'                  
  CHANGING
    ie_outputparams = fp_outputparams
  EXCEPTIONS
    cancel          = 1
    usage_error     = 2
    system_error    = 3
    internal_error  = 4
    OTHERS          = 5.
IF sy-subrc <> 0.

ENDIF.



CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'           " Form Processing Generation
  EXPORTING
    i_name     = 'ZADOBEFORM'
  IMPORTING
    e_funcname = fm_name.
IF sy-subrc <> 0.

ENDIF.


CALL FUNCTION fm_name
  EXPORTING
    /1bcdwb/docparams        = fp_docparams
    zmari                   = it_mari
*    IMPORTING
*     /1BCDWB/FORMOUTPUT       =
  EXCEPTIONS
    usage_error           = 1
    system_error          = 2
    internal_error           = 3.
IF sy-subrc <> 0.

ENDIF.


CALL FUNCTION 'FP_JOB_CLOSE'
*    IMPORTING
*     E_RESULT             =
  EXCEPTIONS
    usage_error           = 1
    system_error          = 2
    internal_error        = 3
    OTHERS               = 4.
IF sy-subrc <> 0.

ENDIF.

Hope this helps.

Regards,

Sagar