Skip to Content
0
Former Member
Jan 26, 2010 at 04:17 AM

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

416 Views

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