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

Problem with gui_download

Former Member
0 Kudos
779

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.

7 REPLIES 7

Former Member
0 Kudos
257

Hi,

In GUI_DOWNLOAD for CSV file you have to use set 'write_file_separator'

Regards,

Sanjay Gogikar

0 Kudos
257

I've the following:

write_file_separator = 'X'.

But it doesn't work...

0 Kudos
257

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

0 Kudos
257

by default - ANSI for UNICODE systems

Former Member
0 Kudos
257

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.

2) Use this [LINK|; as well.

Regards,

Saravana.S

Edited by: saravanasap on Jan 27, 2012 5:49 AM

saravanan_a
Active Participant
0 Kudos
257

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

former_member214857
Contributor
0 Kudos
257

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