Skip to Content
avatar image
-1
Former Member

Preview a PDF out of an internal table

Hello,

i wrote a Report, which Uploads a PDF and stores it in an internal table.

Is there a way to preview this internal table as a PDF again, without saving it to my Computer?

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    i used

    cl_gui_frontend_services=>file_open_dialog

    for selecting the PDF and

    cl_gui_frontend_services=>gui_upload

    to uploading and savng into an internal table.

  • Get RSS Feed

2 Answers

  • Aug 16, 2017 at 08:25 PM

    Via the HTML Viewer control for instance. There's a demo program RSDEMO_HTML_VIEWER which displays an HTML. It's the same thing for PDF, except that the MIME type is application/pdf (and PDF is a "binary" format, not a text format). You may also see another example in the function module SCWB_NOTE_DISPLAY_PDF which displays the SAP notes in PDF format (transaction SNOTE).

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 16, 2017 at 11:28 AM

    Maybe you can use the ICM Server cache for this: load the PDF into the server cache and call the generated link via cl_gui_services=>execute.

    (see this thread https://archive.sap.com/discussions/thread/1495071 )

    Add comment
    10|10000 characters needed characters exceeded