Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

sap crm ADOBE form print

**Local Structure

  DATA: ls_outputparams   TYPE sfpoutputparams,

        ls_docparams      TYPE sfpdocparams,

        ls_formoutput     TYPE fpformoutput,

        ls_control_params TYPE ssfctrlop,

        ls_result         TYPE sfpjoboutput.

Kindly let me know what else

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

    EXPORTING

      formname = lc_form_name" Adobe form name

*     VARIANT  = ' '

*     DIRECT_CALL            = ' '

    IMPORTING

      fm_name  = lv_fm_name

   EXCEPTIONS

     NO_FORM                = 1

     NO_FUNCTION_MODULE     = 2

     OTHERS                 = 3



  ls_outputparams-getpdf = 'X'.



  CALL FUNCTION 'FP_JOB_OPEN'

    CHANGING

      ie_outputparams = ls_outputparams

    EXCEPTIONS

      cancel          = 1

      usage_error     = 2

      system_error    = 3

      internal_error  = 4

      OTHERS          = 5.

  IF sy-subrc <> 0.

    RETURN.

  ENDIF.



  ls_docparams-langu = 'X'.

  ls_docparams-country = 'US'.

  ls_docparams-fillable = 'X'.



  CALL FUNCTION lv_fm_name

    EXPORTING

*     /1bcdwb/docparams  = ls_docparams

      control_parameters = ls_control_params

      output_options     = ls_output_options

      user_settings      = space

      i_zscrm_rma_header = is_rma_header

    IMPORTING

*     /1bcdwb/formoutput = ls_formoutput

      job_output_info    = ls_job_info

    EXCEPTIONS

      usage_error        = 1

      system_error       = 2

      internal_error     = 3

      OTHERS             = 4.

  IF sy-subrc <> 0.

    RETURN.

  ENDIF.

  CALL FUNCTION 'FP_JOB_CLOSE'

    IMPORTING

      e_result       = ls_result

    EXCEPTIONS

      usage_error    = 1

      system_error   = 2

      internal_error = 3

      OTHERS         = 4.

  IF sy-subrc <> 0.

    RETURN.

  ENDIF.

Kindly let me know what else code i have to write so that adobe form will get print out .

Regards,

Raju Prasad.



Former Member
Not what you were looking for? View more on this topic or Ask a question