cancel
Showing results for 
Search instead for 
Did you mean: 

how to call the adobe form from se38

Former Member
0 Kudos

hi friends,

iam calling the adobe form from se38.

in my adobe forms there are one import froms and some text elements and one subform,in that subform there is one table.

i had inserted the data into the table.

when i executed the form in SFP transaction code the out put is coming.

but when i executed the same form from se38 iam not getting the table.

iam getting the text element and the input parameters.

how to get the table data in the PDF output when i execut the adobe form by se38.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You have to call FM 'FP_JOB_OPEN' and 'FP_JOB_CLOSE' befor and after calling PDF Form.

Check the below code for your reference...

* Determine PDF function module for CMR Belgium
  CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
      i_name     = l_formname
    IMPORTING
      e_funcname = l_fm_name.
*   E_INTERFACE_TYPE           =

  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.
    CASE sy-subrc.
      WHEN OTHERS.
    ENDCASE.                           " CASE sy-subrc
  ENDIF.

* Calling Function module
  CALL FUNCTION l_fm_name
    EXPORTING
      /1bcdwb/docparams         = fp_docparams
      vbeln                     = p_vbeln
      itemdetails               = it_item_data
*    IMPORTING
*      /1BCDWB/FORMOUTPUT       =
    EXCEPTIONS
      usage_error              = 1
      system_error             = 2
      internal_error           = 3
      OTHERS                   = 4      .

  IF sy-subrc <> 0.
    CASE sy-subrc.
      WHEN OTHERS.
    ENDCASE.                           " CASE sy-subrc
  ENDIF.                               " IF sy-subrc <> 0.

*Close spool job
  CALL FUNCTION 'FP_JOB_CLOSE'
*   IMPORTING
*     E_RESULT             = result
   EXCEPTIONS
     usage_error          = 1
     system_error         = 2
     internal_error       = 3
     OTHERS               = 4
             .
  IF sy-subrc <> 0.
    CASE sy-subrc.
      WHEN OTHERS.
    ENDCASE.                           " CASE sy-subrc
  ENDIF.                               " IF sy-subrc <> 0.

Thanks,

Phani Diwakar.

Former Member
0 Kudos

Hi,

Make sure that you are calling function modules like FP_JOB_OPEN,FP_JOB_CLOSE and generated function module once you activate the form.Pass variables and internal table data to that function module from your SE38 program.

Former Member
0 Kudos

Hi, I am sure that you would be calling the Function Module whch gets generated while activating the ADOBE Form in SFP transation -- you also need to call job_open and job_cloase function module to get the spool request.

Let me know if in case you need more info.

~Bhawani.