on 01-27-2009 11:13 PM
Hello,
How can i download a file on to the C drive which i have as a PDF ( or a smartform ) or in the form of an internal table when running a method of my assistant class of the webdynpro. I dont need to display the table to the users. Just a direct download.
I tried using gui_download function module from one of the methods of the class but it gives me a dump. Can you please let me know.
Thanks,
Amina
place a LinkToAction UI Element in the View and in Event Handler code as follows
LV_FILENAME = 'RebateRequest.pdf'.
LV_CTYPE = '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 ).
where LV_CONTENT is XSTRING, convert your internal table to XSTRING.
Abhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi amina,
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.