Skip to Content
author's profile photo Former Member
Former Member

Displaying a PDF File 'In Place'

Hi,

Can SAP display a PDF 'in place' like it can display an Excel spreadsheet 'in place?'

Thanks,

Malini.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 27, 2008 at 09:49 AM

    Hi,

    Create an SAP Smartform. When you call the Smartfrom you can return OTF data. There is a function module that converts OTF data to PDF format - 'CONVERT_OTF'.

    Then you can create a screen that has a container on it. Using the following methods, you can display the PDF:

    1. Create a container

    2. Create a control that is reference type cl_gui_html_viewer

    3. Call method control->load_data

    4. Call method control->show data

    You can probably do this without the Smartform if you need to. You would just need to figure out how to load the PDF data into SAP.

    Reward points if found helpfull...

    Cheers,

    Siva.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 07:31 AM

    Hi,

    You can use the class CL_GUI_PDFVIEWER to view the pdf.

    Regards,

    Renjith Michael.

    Add a comment
    10|10000 characters needed characters exceeded

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.