01-26-2010 4:17 AM
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
01-26-2010 9:22 AM
01-27-2010 12:43 AM
dear Michael :
what is your codepage in your system?
Edited by: huiqing wei on Jan 27, 2010 1:44 AM
01-26-2010 9:24 AM
01-27-2010 12:44 AM
01-27-2010 7:00 AM
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
01-27-2010 7:07 AM
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.
01-29-2010 1:23 AM
01-27-2010 7:08 AM
01-27-2010 8:07 AM
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 .