‎2008 Oct 16 3:25 PM
wt does .csv file format meant by?
y do we need to convert .xls to .csv file format.
‎2008 Oct 16 3:35 PM
Hi
CSV file is a text file where the field are separeted by a sign: usually semicolon.
So a record has a format like this:
field1;field2;field3;
The good property is this file is field dimension indipendent: so u don't need to know the length of every field, all you need to know is a new information will be place after a semicolon.
Max
‎2008 Oct 16 4:34 PM
whenever we do uploading , is it like the ultimate file format to be in csv.
i mean dat from .txt or .xls shld be converted in .csv......
bt y....?
is it tab separator or field sep or semicolon.....
‎2008 Oct 16 4:42 PM
Hi
I don't understand where your problem is: which kind of file to be used depends on your program.
So
- convert a file from XLS to CSV is easy because u can save excel file in CSV format (it's a chance given by excel);
- convert a text file to CSV: probably it should try to open the file using excel and then save it in CSV format.
For the CSV format it need to have semicolon as separator.
Max
‎2008 Oct 16 4:48 PM
dat means using csv file , u hv no duplicate entries whereas in excel its der, m i correct so we r converting from xl to csv.
wt is full form of csv...
‎2008 Oct 16 6:52 PM
open an excel file, press save as from the menu, and then see the what does .csv stands for
‎2008 Oct 17 1:53 AM
And make a bit more effort to use appropriate English please.
sms-spk lks lk ah pc ah sht wch te pstr ds nt cr abt rly... plz!
‎2008 Oct 18 9:08 AM
Hi Max,
I saw this thread for searching info on CSV file.
My requirement is that, I want to download internal table data into .csv file..
1. So I make the file name with .csv.
2. call GUI_DOWNLOAD FM, passing WRITE_FIELD_SEPARATOR = 'X'
I got all the fields in one coulmn which I dont want. I want each field to be in separate separate column.
So I change the filename from .csv to .xls . and its working properly for presentation server. is there any drawback to store the file in .xls rather than .csv?
second question is :
If I want to save the .xls file in application server, how should I do that?
If I do it using open dataset, then should I open dataset in text mode or binary mode?
and the file name will be .xls?
Thanks in advance,
regards,
Madhuri
‎2008 Oct 20 8:58 AM
Hi
You should open an your post for a your question.
1) Anyway the parameter WRITE_FIELD_SEPARATOR inserts a tab between two fields, so it can't be used to download a csv file.
If you want to create a CSV file, u need to insert the separator (semicolon) by yourself, so your internal table should have only one big field where you write all informations separated by a semicolon.
If you wan't to convert the data by yourself it can use std fm like SAP_CONVERT_TO_CSV_FORMAT.
Yes u can create an XLS file by fm GUI_DOWNLOAD, in this case you need to transfer BIN (for binary file) to parameter FILETYPE.
2) If you can write/read a file in a path of Application Server by directly your operating system (I suppose WIndows), it's like just a PRESENTATION SERVER.
If you can write/read a file only by SAP, probably the easier way is just to create a CSV file.
Max