2009 Aug 14 6:42 PM
One of the text field contains a hex character as '0A' i need to remove. I tried to move text field to hex field. remove the hex value then put it back into the same text field, but this is not working.
Due to system is a UNICODE enabled with codepage SEARCH and REPLACE not working
Any Info ?
a®
2009 Aug 14 7:03 PM
I am not sure but FM PREPARE_STRING?
[bad hex character|http://www.sapfans.com/forums/viewtopic.php?p=91589&sid=c7ef36fec60a616f1194b6fdac217d4b]
One of the text field contains a hex character as '0A' i need to remove. I tried to move text field to hex field. remove the hex value then put it back into the same text field, but this is not working.
Due to system is a UNICODE enabled with codepage SEARCH and REPLACE not working
Any Info ?
a®
2009 Aug 14 7:03 PM
I am not sure but FM PREPARE_STRING?
[bad hex character|http://www.sapfans.com/forums/viewtopic.php?p=91589&sid=c7ef36fec60a616f1194b6fdac217d4b]
2009 Aug 14 7:16 PM
J@Y,
The link u provided. have same issue of mine. and its worked.
a®
2009 Aug 14 7:19 PM
Hi,
Try like below:
data: l_len type i,
v_len type i,
l_syb type x value ''0A'.
field-symbols <fs> type any.
v_len = strlen( string ). "string is variable where you want to replace
while l_len lt v_len.
assign string+l_len(1) to <fs> casting type x.
if <fs> eq l_syb.
string+off(1) = ' '.
endif.
add 1 to l_len.
endwhile.
Regards,
Himanshu
2009 Aug 14 7:31 PM
Type casting with X will not work in UTF-16
getting error "the length of "X" in bytes must be a multiple of the size of a Unicode character"
Thanks for time & reply
a®