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: 

GUI_DOWNLOAD TXT file,a "?"at the end of text.

Former Member
0 Kudos

HI experts:

I use 'GUI_DOWNLOAD' to download a text file, the text are Chinese worlds,one word is "燊",in the end of the text file,there is "?" .like "宜州燊龙贸易有限责任公?"

when I delete the world "燊" ,it become right.why?

thanks a lot.

the code is:

REPORT z1807test001.

DATA : BEGIN OF out OCCURS 0 ,

text1(100) TYPE c,

text2(100) TYPE c.

DATA : END OF out .

out-text1 = '宜州燊龙贸易有限责任公司'.

APPEND out.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

  • BIN_FILESIZE =

filename = 'D:\222.TXT'

filetype = 'ASC'

  • APPEND = ' '

write_field_separator = 'X'

  • HEADER = '00'

trunc_trailing_blanks = 'X'

write_lf = ''

  • COL_SELECT = ' '

  • COL_SELECT_MASK = ' '

  • DAT_MODE = ' '

  • CONFIRM_OVERWRITE = ' '

  • NO_AUTH_CHECK = ' '

  • codepage = '8400'

  • IGNORE_CERR = ABAP_TRUE

  • REPLACEMENT = '#'

  • WRITE_BOM = ' '

  • TRUNC_TRAILING_BLANKS_EOL = 'X'

  • WK1_N_FORMAT = ' '

  • WK1_N_SIZE = ' '

  • WK1_T_FORMAT = ' '

  • WK1_T_SIZE = ' '

  • IMPORTING

  • FILELENGTH =

TABLES

data_tab = out .

  • FIELDNAMES =

.

Edited by: huiqing wei on Jan 26, 2010 5:17 AM

9 REPLIES 9

Former Member
0 Kudos

I used your code in my system,it's OK!

0 Kudos

dear Michael :

what is your codepage in your system?

Edited by: huiqing wei on Jan 27, 2010 1:44 AM

Former Member
0 Kudos

Please check your system's CHARACTER SETs using T-code SPAD

0 Kudos

which one should I use?thanks a lot.

0 Kudos

Hi,huiqing.

I am afraid this is not an ABAP issue, please contact your basis to help with.

Or waiting the other guy's responce.

Michael

Former Member
0 Kudos

Hi,

It is not a ABAP issue.

1) Check the code page you are using?

2) check by creating text element and translate in SE63 to confirm.

3) May be basis guy can check regional settings.

Manas M.

0 Kudos

dear kumar:

my code page number is 8400.simple chinese.

Former Member
0 Kudos

Hello

Try:

write_lf = 'X' or just comment this.

Former Member
0 Kudos

Please check you Sap GUI file upload/download Codepage ,

that related Function module parameter codepage value [GUI_UPLOAD/GUI_DOWNLOWD]

for example :

sap gui upload/download Codepage : [Default-UTF8 for Unicode Systems]

and you want upload/download shift-jis

the function codepage value must defined 8000 .