2017 Aug 16 10:39 AM
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?
2017 Aug 16 10:42 AM
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.
2017 Aug 16 12:28 PM
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 )
2017 Aug 16 9: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).
2017 Aug 17 7:37 AM
Could you maybe give me some Code snippets? I am very new to the ABAP-World ^^