Skip to Content

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

How to send converted PDF from OTF via email

Hi Experts,

Greetings! How can I send the PDF file from FM 'CONVERT_OTF' via email?

I was stuck on this code:

*--- Convert OTF data to pdf
  CLEAR: i_otf, i_pdf.
  i_otf[] = gs_ssfcrescl-otfdata.
  CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
      format                = 'PDF'
      max_linewidth         = 132
    IMPORTING
      bin_filesize          = v_bin_filesize
    TABLES
      otf                   = i_otf
      lines                 = i_pdf
    EXCEPTIONS
      err_max_linewidth     = 1
      err_format            = 2
      err_conv_not_possible = 3
      err_bad_otf           = 4
      OTHERS                = 5.
  CHECK sy-subrc = 0 AND NOT i_pdf[] IS INITIAL.

Thanks in advance for the help.

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