Skip to Content

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

Generate PDF form

Hi all,

I'm using the code below to generate a pdf form ('ZPDF_TEST_FORM').

When the function in FM_NAME is called, it returns with SY-SUBRC eq 2 and this error message:

Adobe document services error: SOAP Runtime

Exception: CSoapExceptionFault : SOAP (100102)

Any ideas??

Thanks,

Jeroen

data: FP_OUTPUTPARAMS   type SFPOUTPUTPARAMS,
      FM_NAME           type RS38L_FNAM,
      FP_DOCPARAMS      type SFPDOCPARAMS,
      LV_FORMOUTPUT     type FPFORMOUTPUT.

initialization.
  FP_OUTPUTPARAMS-GETPDF = 'X'.

  call function 'FP_JOB_OPEN'
    changing
      IE_OUTPUTPARAMS = FP_OUTPUTPARAMS
    exceptions
      CANCEL          = 1
      USAGE_ERROR     = 2
      SYSTEM_ERROR    = 3
      INTERNAL_ERROR  = 4
      others          = 5.

  call function 'FP_FUNCTION_MODULE_NAME'
    exporting
      I_NAME     = 'ZPDF_TEST_FORM'
    importing
      E_FUNCNAME = FM_NAME.

  call function FM_NAME
    exporting
      /1BCDWB/DOCPARAMS  = FP_DOCPARAMS
    importing
      /1BCDWB/FORMOUTPUT = LV_FORMOUTPUT
    exceptions
      USAGE_ERROR        = 1
      SYSTEM_ERROR       = 2
      INTERNAL_ERROR     = 3.

  call function 'FP_JOB_CLOSE'
    exceptions
      USAGE_ERROR    = 1
      SYSTEM_ERROR   = 2
      INTERNAL_ERROR = 3
      others         = 4.

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