Banner
Banner

Attention: open in a new window. PDFPrintE-mail

2007
06
Sep

Replacing a CR in a string

Sometimes you need to replace a carriage retun or line feed in a string. (These can screw around with EDI IDocs etc...) This is how you do it...

 

constants:
c_CR_LF type ABAP_CR_LF value cl_abap_char_utilities=>CR_LF.
 

* Only want to replace the CR no LF in the string:

replace c_CR_LF(1) with space into ls_links-e_mail. " remove carriage return
Last Updated (Thursday, 06 September 2007 12:40)
Banner
Free software downloads