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

Export data in ANSI format using GUI_DOWNLOAD

Former Member
0 Likes
6,320

Hi,

Please find below the issue description.

We have a program that exports txt file which inturn is uploaded in a 3rd party system.

Before upgrade, we were getting the txt file in ANSI format. (The program uses GUI_DOWNLOAD without any code page and file type is ASC)

After upgrading the system to ECC 6, the program was modified to consider the code page 4103. But the txt file is in Unicode Format. (file type used in GUI_DOWNLOAD is ASC). As the 3rd party system is accepts only ANSI format, we manually change the format in windows and then upload.

Please suggest.

Regards,

Senthil G.

Hi,

Please find below the issue description.

We have a program that exports txt file which inturn is uploaded in a 3rd party system.

Before upgrade, we were getting the txt file in ANSI format. (The program uses GUI_DOWNLOAD without any code page and file type is ASC)

After upgrading the system to ECC 6, the program was modified to consider the code page 4103. But the txt file is in Unicode Format. (file type used in GUI_DOWNLOAD is ASC). As the 3rd party system is accepts only ANSI format, we manually change the format in windows and then upload.

Please suggest.

Regards,

Senthil G.

7 REPLIES 7
Read only

andreas_mann3
Active Contributor
0 Likes
3,652

use class CL_ABAP_CONV_OUT_CE

2) or use obn application server

open dataset file for output in legacy text mode code page p_code.

(for codepage look in tabele TCP00!)

grx

A.

Edited by: Andreas Mann on Nov 8, 2010 11:23 AM

Read only

Former Member
0 Likes
3,652

Hi,

use function module TEXT_TO_ASCII.

Read only

MarcinPciak
Active Contributor
0 Likes
3,652

4103 is Unicode UTF-16

4110 is Unicode UTF-8 - you need probably to use this encoding.

Regards

Marcin

Read only

0 Likes
3,652

Thanks all for your replies.

I have resolved my issue with codepage 4120.

Regards,

Senthil G.

Read only

Former Member
0 Likes
3,652

Thanks all for you replies. I resolved the issue by using codepage 4120.

Regards,

Senthil G.

Read only

former_member682487
Discoverer
0 Likes
3,652

Hi, how are you?, i have a problem because i using codepage 1160 or 4120 but not working I indicated the codepage in function gui_download but not working 😞

Read only

0 Likes
3,336

Hi, Did you get any solution ? I am also facing the same issue.