04-22-2005 10:51 AM
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.
ambichan.
04-22-2005 12:32 PM
Hi!
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),
Joerg