Issue with replacing carriage return in a string
I need to do the following:
d_tab = cl_abap_char_utilities=>horizontal_tab. d_line = cl_abap_char_utilities=>cr_lf. replace ',' in d_contract with ' '. replace d_tab in d_contract with ' '. replace d_line in d_contract with ' '. condense d_contract.
but it isn't working. It is replacing the horizontal tab but it is not replacing the carriage return. When I look in the debugger the field d_contract is '###'. After it replaces d_tab I have d_contract = '##'. It is my understanding that a carriage return is represented as ##. Also, this is the last field in the line so I assume it is a carriage return.
When it tries to replace d_line in d_contract (carriage return in the field) it doesn't replace anything.