Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Download on application server

Former Member
0 Kudos
52

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

2 REPLIES 2

ferry_lianto
Active Contributor
0 Kudos
34

Hi,

Welcome to SDN.

Please check this thread for Rich's sample codes.

Regards,

Ferry Lianto

Former Member
0 Kudos
34

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.