Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Junk Character while using REPLACE ALL OCCURRENCES OF (Spell Check)

Hi All,

I am passing one table_string to PDF from form spell check functionality.

Which contains

a

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

61000A00740065007300740020006900730020006200650069006E006700200064006F006E0065000A00

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.

TRY.

CALL METHOD cl_abap_conv_in_ce=>uccp

EXPORTING

uccp = c_hex

RECEIVING

char = lv_tmp.

CATCH cx_sy_conversion_codepage.

CATCH cx_parameter_invalid_type.

CATCH cx_sy_codepage_converter_init.

ENDTRY.

REPLACE ALL OCCURRENCES OF lv_tmp IN lv_cnmat WITH '^'.

But again its not working

plz help.

Thanks & Regards,

Arvind

Former Member
Not what you were looking for? View more on this topic or Ask a question