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.
Showing results for 
Search instead for 
Did you mean: 

regarding CSV file conversion

Former Member
0 Kudos

hey guys,

i have two questions here now could you pls help me.

1-how can i convert SAPSCRIPT pages to CSV file and save in Particular given directory at application server.

2-How can i save the internal table values to CSV file and save in Particular given path at applciation server.



Former Member
0 Kudos


Regarding part two:

The simple solution is to use OPEN DATASET and friends to open a file on the appserver. Loop over your internal table and use CONCATENATE c1 c2 ... INTO ... SEPARATED BY ';' to create a single line with ';'-separated fields. Write this into the file.

There is however the subtle problem of data fields which contain ';' as a data member - you might have to escape these fields with apostrophes (").

Hope that helps (please reward me if it does),