cancel
Showing results for 
Search instead for 
Did you mean: 

Display PDF form XSTRING data

OttoGold
Active Contributor
0 Kudos

Hello,

I would like to display a form in Reader from SAP. I have the form data in the XSTRING variable.

Like the situation when you ask ADS through GETPDF = 'X' to return your form as XSTRING and you change your mind in the next program code and want to display it. Or when you store the uploaded PDF file data stream into a customer table and time to time you want to see what have you stored there.

Has anybody tried this?

Regards, Otto

Accepted Solutions (0)

Answers (4)

Answers (4)

saudshaikh
Explorer
0 Kudos

Hey Otto & Sandra,

Although it's a very old post but still thought of adding this small piece of information. SAP has provided a program 'FP_PDF_TEST_01' which is using HTML containers in a dialog screen for displaying 'PDF' in the latter part(output) of the program. It can be used as a reference.

Regards,

Saud

OttoGold
Active Contributor
0 Kudos

My mistake, I got there from your links list wiki:)) My apologies:))

And... what´s worse... nobody told me I have to do anything more than just CREATE the dynpro:)) I thought it is enough to create it and all the relevant code is called because of some naming conventions magic:)) Luckilly my skilled colleague find my mistake and make that work:))

Thank you for your help anyway!!

have a nice day, Otto

OttoGold
Active Contributor
0 Kudos

I have found your code here: https://wiki.sdn.sap.com/wiki/display/ABAP/ReadanyOTFDatainAdobeReader

but I am missing something. I have no experience with dynpro (only WEBdynpro) etc.

I load the PDf data from the customer table, where there is a column PDF type RAWSTRING and assign it to your lv_content variable. I have created dynpro 100 and placed a custom control.

When I run this program it displays nothing. Do you have any idea what can be wrong?

Thank you, Otto

Sandra_Rossi
Active Contributor
0 Kudos

Impossible to say anything from here. What I can say is that you don't need a custom control in the dynpro, as Sai Kumar (not me ) added a container on the left of the dynpro (container of type docking). Extension 1200 means that container width is 1200 pixels wide, and the dynpro 100 (on the right of the screen) is probably very narrow.

Paste your code if you don't find out the issue.

Sandra_Rossi
Active Contributor
0 Kudos

Hello Otto, there are lots of threads about that topic. Search CL_GUI_PDF_VIEWER and things like that. The technical principle is to display the PDF via an HTML control (CL_GUI_HTML_VIEWER class, mainly LOAD_DATA and SHOW_URL methods).

sandra