Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Preview a PDF out of an internal table

Former Member
0 Kudos

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?

4 REPLIES 4

Former Member
0 Kudos

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.

UweFetzer_se38
Active Contributor
0 Kudos

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 )

Sandra_Rossi
Active Contributor

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).

0 Kudos

Could you maybe give me some Code snippets? I am very new to the ABAP-World ^^