cancel
Showing results for 
Search instead for 
Did you mean: 

Open a PDF file located in a network folder in WD ABAP application

Former Member
0 Kudos

Hello,

I need to open a PDF file in my Web Dynpro ABAP application:

1) The PDF file is located in a shared folder (e.g.
host\files\file.pdf)

2) If I build an ALV table in my application and create a linktourl element that opens the following path "file://host/files/file.pdf" I have success

3) Now, instead of having the linktourl element in my table I want to have a button that saves the pdf located in
host\files\file.pdf to the user's local PC and then opens the PDF

Do you know if this is possible?

Can you explain me how to do it?

Thanks in advance.

Kind regards,

Ricardo

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member212124
Active Participant
0 Kudos

Hi Ricardo.

Use below method to save file to your local system.

Instead of using link to URL, use link to action.

LV_FILENAME = 'FIlename.pdf'.

LV_MIMETYPE = 'pdf'.

CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE(

          EXPORTING I_FILENAME = LV_FILENAME

                    I_CONTENT  = LV_CONTENT

                    I_MIME_TYPE = LV_CTYPE

                    I_IN_NEW_WINDOW = ABAP_TRUE ).

thanks,

vidyasagar

Former Member
0 Kudos

Hi Ricardo,

Did you get any ideas about this requirement?

Thanks,

Suresh