2012 Jan 24 2:33 PM
Hi,
in my gui_download function I'm passing the 'ASC' value to the parameter filetype but, once I go to the txt file downladed and I try to save it as a csv file I realise that it's of type UTF-8 and not an ASCII type.
Can anybody tell me why the file downloaded isn't of type ASCII?
Thanks in advance.
Regards.
2012 Jan 24 2:41 PM
Hi,
In GUI_DOWNLOAD for CSV file you have to use set 'write_file_separator'
Regards,
Sanjay Gogikar
2012 Jan 24 2:52 PM
I've the following:
write_file_separator = 'X'.
But it doesn't work...
2012 Jan 24 3:44 PM
First-things-first, the param WRITE_FIELD_SEPARATOR does not influence the file encoding.
Can you check what is the encoding option maintained in the SAPGUI (Logon Pad -> System ID -> Change Item -> Code Page)?
BR,
Suhas
2012 Jan 24 4:03 PM
2012 Jan 27 4:48 AM
Hi,
To save .txt file in .csv format. Follow the below mentioned ways , Hope will help you to solve .....
1) There are different ways in creating a CSV file. The RIGHT way is to use the function SAP_CONVERT_TO_CSV_FORMAT. You can just go through the FM. To complete, for every convert fuction there is an equal and opposite convert function, TEXT_CONVERT_CSV_TO_SAP.
Regards,
Saravana.S
Edited by: saravanasap on Jan 27, 2012 5:49 AM
2012 Jan 27 9:45 AM
Hi David,
Please try this.
Goto sap logon pad> particular system id> Properties> under code page tab> Encoding type--> set or change to "Default-ANSI for Unicode system"
Also have a look on the below link
Link:[Link|http://www.sapdev.co.uk/file/file_updownpop.htm]
Regards
Saravanan
2012 Jan 27 11:02 AM
Hi
You can use parameter codepage tofor it. In case of UTF-8 you can use 4102 or 4103 depending on operation system
Best regards