02-03-2017 12:23 PM
unknown-chanarcter.pngHello All,
I am facing a wierd issue wherein in SOST the output of my Chinese mail looks good however in my outlook mail box I am getting an unknown character in mail body.
i have checked the SO10 text which is read for creating mail body noting seems to be wrong. In SOST also output mail looks good. Just in inbox at the end this character is appended. Please note that rest of the email is good and coming perfectly in chinese.
02-03-2017 12:24 PM
02-03-2017 12:54 PM
Hi,
While getting lines from SO10 ,you can call function 'CONVERT_ITF_TO_ASCII' after 'READ_TEXT' function.
Best Regards,
02-03-2017 2:09 PM
Thanks Omer for taking time to respond to my query.
Here do i need to mention language etc optional fields? Shall I just pass the table from Read_text FM directly here ?
CALL FUNCTION 'CONVERT_ITF_TO_ASCII'
* EXPORTING
* CODEPAGE = '0000'
* FORMATWIDTH = 72
* LANGUAGE = SY-LANGU
* TABLETYPE = 'ASC'
* TAB_SUBSTITUTE = ' '
* LF_SUBSTITUTE = ' '
* REPLACE_SYMBOLS = 'X'
* REPLACE_SAPCHARS = 'X'
* IMPORTING
* FORMATWIDTH_E =
* X_DATATAB =
* C_DATATAB =
* X_SIZE =
TABLES
itf_lines = lt_lines
* EXCEPTIONS
* INVALID_TABLETYPE = 1
* OTHERS = 2
02-03-2017 2:21 PM
itf_lines : your import internal table(this is internal table from read_text )
C_DATATAB : your export internal table
CALL FUNCTION 'CONVERT_ITF_TO_ASCII'
EXPORTING
language = sy-langu
tabletype = 'ASC'
IMPORTING
c_datatab = ct_datatab
TABLES
itf_lines = itf_lines[].