on 04-04-2008 12:55 PM
Hello
is there any way to open saved zip-files with the method ATTACH_FILE_TO_RESPONSE
the class of the method is CL_WD_RUNTIME_SERVICES
Hi Denis,
do you want to send the binary file data stored on the application server to the client, in a WD4A application? Then of course you can use the method you mentioned. Just read the data in binary mode and use this method to send it to the client.
Eventually you have to convert the binary data to Unicode, then do something like this:
lo_conv_out = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' ).
lo_conv_out->convert( EXPORTING data = lv_data_from_file IMPORTING buffer = lv_content ).
"here you can call cl_wd_runtime_services=>attach_file_to_response now
"use lv_content for method's parameter i_content
Hope that helps!
Kind regards, Matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have a requirement similar to this.
I will get an excel sheet when i run my report program.
It send the excel sheet directly to the mail id.
But now i want to ZIP the file and then i want to send this ZIP file.
Can you please help with a sample code to get this.
Thanks in advance.
Regards,
sasi
Hi ,
see the class .. CL_ABAP_ZIP
Regards
Yash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.