‎2007 Oct 12 11:14 PM
Hi,
I used "REPLACE ALL OCCURRENCES OF '#' in itab1-address with space"
command inside a internal table and the result works in DEV
but failing in PRD -Can any one help me in this regard ???
One more thing - If I edit the address field in PRD and apply the above replace command to eluminate the junk characters '#' on the same field then
it works fine ...
Strange - Please help !
Regards
Anu.
‎2007 Oct 13 12:31 AM
George,
Just check if this "#" value is Hexadecimal value. "If so then you cannot just replace uisng replace command. Because string "#" is differnt than HEX "#"...you need to compare this value with hex value and then used replace command.
If you are getting this values after uploading file...make sure your uploading mode is ASC...you can eliminate this values.
Hope this will help.
Nilesh
‎2008 Jan 31 6:57 PM
Hi All....... This may helpfully for ABAP Programmers in future....
Remove special characters which doesn't work with normal REPLACE ALL command... Try This...
Data : A(35) type C,
B(35) type C,
clear : A,B.
CLASS cl_abap_char_utilities DEFINITION LOAD.
A = address1.
concatenate A cl_abap_char_utilities=>cr_lf INTO B.
REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>cr_lf In B WITH space.
address1 = B.
Regards
Edited by: George Peter on Jan 31, 2008 8:41 PM