on 05-27-2008 7:01 PM
Hi Experts,
I have to write internal table data to a ".xml " file.
in the internal table data is in the XML format. Just I need to download to a file with extension XML to a local directory.
How to do this.
Regards,
Vishal.
Hello,
You can use the method attach_file_to_response from class cl_wd_runtime_services.
See the example in the web dynpro component WDR_TEST_EVENTS view BUTTON.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi David,
In my case ....user is not supposed to enter the file name. I have to generate a file with a fix naming conventiona nd save it to a fix local path. and than from there using WebX it would be fetched.
I should not give any option to the user. and not supposed to display any dialog box.
Do u have any sample code for this.
I am using below code :
data:
conv_out type ref to cl_abap_conv_out_ce,
content type xstring.
conv_out = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' ).
attach the first file
conv_out->convert( exporting data = 'Der Inhalt einer Textdatei' importing buffer = content ).
cl_wd_runtime_services=>attach_file_to_response(
i_filename = 'file1.txt'
i_content = content
i_mime_type = 'text/plain' ).
PLz reply.
Edited by: VISHAL GUPTA on May 28, 2008 9:46 AM
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.