cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with ## removal in String

Former Member
0 Kudos

hi all,

I have one text view in my page with 255 characters length.

in this textview the user enters the data by pressing enter.

and the data in my ztable gets stored with ## where ever the enter pressed.

now i want to remove all ## from that string...how ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

check the class CL_ABAP_CHAR_UTILITIES, it deals with special characters like newline, carriage_return, backspace etc.

Try the following code to replace the CR_LF in your string with something else:

REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>cr_lf

IN l_string WITH 'something else'.

Regards,

CW

Answers (0)