Skip to Content
author's profile photo
Former Member

Convert Smartform to PDF

Hi,

I'am developing a function mudule to convert a smartform into a PDF for send by e-mail. I want to know if there is a function module to convert a smartform into a PDF format.

Thanks

Santiago

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Jul 02, 2004 at 05:52 PM

    Hi there,

    There is a standard function module to convert a spool request (result of SAP script, SMART forms or report output) into a PDF document ...

    If I recall well out of the top of my head it is called something like 'Convert_otf_to_pdf' ... a search on PDF will give you the answer ...

    I used it before and it works superb ...

    Steven

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Jul 05, 2004 at 06:14 AM

    Hello Saniago,

    If you have installed SAP Connect it is just a customizing

    setting.

    BR

    Michael

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi!

      All you have to do is call your SF to get OTF and then concert it to PDF. Works like charm:

      s_control_parameters-no_dialog = 'X'.

      s_control_parameters-getotf = 'X'.

      CALL FUNCTION v_func_name "call your smartform

      EXPORTING

      output_options = s_output_options

      control_parameters = s_control_parameters

      IMPORTING

      job_output_info = s_job_output_info

      call function 'CONVERT_OTF_2_PDF'

      tables

      otf = s_job_output_info-otfdata

      lines = t_pdf

      Hope this helps!

      Kind regards,

      Igor Barbaric