Application Development and Automation 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: 
Read only

Problem with gui_download

Former Member
0 Likes
1,882

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.

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
Read only

Former Member
0 Likes
1,360

Hi,

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

Regards,

Sanjay Gogikar

Read only

0 Likes
1,360

I've the following:

write_file_separator = 'X'.

But it doesn't work...

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,360

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

Read only

0 Likes
1,360

by default - ANSI for UNICODE systems

Read only

Former Member
0 Likes
1,360

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

Read only

Former Member
0 Likes
1,360

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

Read only

former_member214857
Contributor
0 Likes
1,360

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