Application Development and Automation 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: 
Read only

Problem in getting .csv file as output

Former Member
0 Likes
395

Hi All,

I am using ws_download function module to get .csv file as output . i am getting space between output values.But i want to get comma instead of space.

i am working on 4.6b version but in this version there no write filed separator field in gui_download function module.

Please suggest me the follow up

Regards

Sudhakar.

1 ACCEPTED SOLUTION
Read only

andreas_mann3
Active Contributor
0 Likes
367

use field-symbol and do sth like this

data str type string.

loop at itab.

do.

assign component sy-index of table itab to <F>.

concatenate str <f> ';' into str.

enddo.

endloop.

hope taht helps

Andreas

2 REPLIES 2
Read only

andreas_mann3
Active Contributor
0 Likes
368

use field-symbol and do sth like this

data str type string.

loop at itab.

do.

assign component sy-index of table itab to <F>.

concatenate str <f> ';' into str.

enddo.

endloop.

hope taht helps

Andreas

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
367

Data:lv_string type string.

data:begin of itab_download occurs 0,

lv_line type string,

end of itab_download.

Loop at itab.

concatenate itab1-f1 itab1-f2 into lv_string seperated by ','.

append lv_string to itab_download-lv_line.

endloop.

now download itab_download