Application Development and Automation 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: 
Read only

displaying in web browser

Former Member
0 Likes
1,076

Hello Experts!

How can I display a pdf file in a web browser.

Suppose the user klicks on a button at abap dynpro and the web broser pops up and

shows the content of the mentioned pdf dokument ?

Regards

sas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,005

rajan call browser is ok. but how can I pass my pdf document to this FM in order

to display the pdf document in the browser

Regards

sas

Hello Experts!

How can I display a pdf file in a web browser.

Suppose the user klicks on a button at abap dynpro and the web broser pops up and

shows the content of the mentioned pdf dokument ?

Regards

sas

5 REPLIES 5
Read only

GauthamV
Active Contributor
0 Likes
1,005

Try this.

[Display pdf in browser|https://forums.sdn.sap.com/click.jspa?searchID=23069387&messageID=2755087]

Read only

Former Member
0 Likes
1,005

Hi,

Check the following FM:

CALL_BROWSER - Calls default web browser or file manger

Use USER-COMMAND and write logic accordingly which on click on the button will call the FM...

Regards.

Read only

Former Member
0 Likes
1,006

rajan call browser is ok. but how can I pass my pdf document to this FM in order

to display the pdf document in the browser

Regards

sas

Read only

0 Likes
1,005

Hi,

Download the PDF document to frontend say

C:\Documents and Settings\sap\Desktop\test.pdf

and provide this URL/path to the function module

Once the display is done you can delete the file in the frontend with CL_GUI_FRONTEND_SERVICES=>FILE_DELETE

Regards

Edited by: Rajvansh Ravi on Mar 4, 2009 11:03 AM

Read only

Former Member
0 Likes
1,005

Have you enabled "display PDF in browser" option.