cancel
Showing results for 
Search instead for 
Did you mean: 

Display a PDF File saved in a server

Former Member
0 Kudos

Dear All,

I have a requirement in webdynpro to display pdf file located in a server.

Inside server All the pdf files are saved in a specified folder like employee pernr number as folder name

and the pdf file name as July-2011(Month-Year).

I will pass pernr,month and year values from my webdynpro screen.Based on these input fields the respective pdf file should be opened.

Please Suggest

Thanks,

Sudhir.

Accepted Solutions (0)

Answers (1)

Answers (1)

Lukas_Weigelt
Active Contributor
0 Kudos

Hi,

Use an interactive Form.

In short:

1. After User input, read the corresponding PDF from Appserver into an Xstring variable and Bind it to Context. Do this with

OPEN DATASET <abc> FOR INOUT IN BINARY MODE.
READ DATASET<abc> INTO <xstring>.
CLOSE DATASET <abc>.

2. Bind the Xstring Context Element to the data-rpoperty of the UI-Element, set the UI-Element MIME-Type to 'PDF'.

The outcome is pretty much the same like the old iFrame-stuff.

Alternatively you can do it via Filedownload UI-Element.

You might want to play around with both UI-Elements and see which one suits you better. If you require more detailed help for certain steps, don't hesitate asking.

regards, Lukas