Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

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

    Hello Saniago,

    If you have installed SAP Connect it is just a customizing

    setting.

    BR

    Michael

    Add a 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.