Junk Character while using REPLACE ALL OCCURRENCES OF (Spell Check)
I am passing one table_string to PDF from form spell check functionality.
test is being done
now after the spell check complete i got this data back as
a#test is being done#
where # is the new line character.
now the point is the hexa_decimal value of this string which is
Where 0A00 is the Hexadecimal valur for #.
but in actual its hexadecimal value is 2300
and now whenever i use REPLACE ALL OCCURRENCES OF '#' in the above string, sy-subrc is 4(which means the substring to be replaced is not found).
i also tried as below
DATA: c_hex(2) TYPE x VALUE '0A00'.
DATA: lv_tmp(1) TYPE c.
CALL METHOD cl_abap_conv_in_ce=>uccp
uccp = c_hex
char = lv_tmp.
REPLACE ALL OCCURRENCES OF lv_tmp IN lv_cnmat WITH '^'.
But again its not working
Thanks & Regards,