2007 Sep 13 9:56 PM
Hello,
I want to write data to application server with tab delimited.
I also have a header text for it.
The format required is :
Material Price-AF Price-AX Price
A001 10.00 20.00 30.00
A002 20.00 30.00 40.00
Please let me know how to achieve this.
Regards,
Salil
2007 Sep 13 10:04 PM
2007 Sep 17 3:58 PM
Hi,
To download the file to application server create a table with char fields. In to this char fields you can populate these texts also.
data: begin of it_download occurs 0.
material(15) type c,
price_AF(10) type c,
price_AX(10_ type c,
end of it_download.
then first pass the text into this table and appen it.
then pass the values from your internal table (or) from your calculation to this table and append those values also.
then download it like an ordinary internal table to application server.
open data set.
loop at this internal table.
first concatenate all these fields to a text field separated by cl_abap_char_utilities=>horizontal_tab.
.
write this field to application server file.
endloop.
close dataset.
regards,
Srinivasu Reddy.