on 07-19-2011 7:13 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ricardo,
Did you get any ideas about this requirement?
Thanks,
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.