Skip to Content

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

Convert OTF to PDF and print PDF from Spool


I have searched all the forums and service market place but could not find solution to my problem.

I am using Function module

      src_spoolid              = p_spool
      no_dialog                = 'X'
      dst_device               = 'ISJB'
      pdf_destination          = 'S'
      pdf_bytecount            = lv_bytecount
      pdf_spoolid              = lv_spoolid
      otf_pagecount            = lv_pagecount
      btc_jobname              = lv_jobname
      btc_jobcount             = lv_jobcount
      pdf                      = gt_pdf
      err_no_otf_spooljob      = 1
      err_no_spooljob          = 2
      err_no_permission        = 3
      err_conv_not_possible    = 4
      err_bad_dstdevice        = 5
      user_cancelled           = 6
      err_spoolerror           = 7
      err_temseerror           = 8
      err_btcjob_open_failed   = 9
      err_btcjob_submit_failed = 10
      err_btcjob_close_failed  = 11
      OTHERS                   = 12.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

this generates spool in SP01. Ideally it should generate a PDF spool file but it generates a BIN file of Format G_RAW. When I display the spool it displays all kinds of japanese characters which does not make sense,.

I setup printer ISJB with device type JPPDF (PDF converted for Japanese characters). Does any one know where the problem could be? Why I could not print the Spool in PDF?

Thank you,


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