Skip to Content
-1

Preview a PDF out of an internal table

Aug 16, 2017 at 09:39 AM

91

avatar image
Former Member

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?

10 |10000 characters needed characters left 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.

0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sandra Rossi Aug 16, 2017 at 08:25 PM
1

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0
Uwe Fetzer Aug 16, 2017 at 11:28 AM
0

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 )

Share
10 |10000 characters needed characters left characters exceeded