Skip to Content
0
Former Member
Aug 12, 2005 at 05:10 PM

Removing new linefeed(\n) from Htmlb textedit component in BSP

34 Views

Hi,

i am facing strange behavior.I am using textedit control to allow user to enter the text.I am restricting the user to enter only 240 characters using Javascript.After submit i am saving whatever the user enetered into table.

Again when i am accessing the application i am getting user entered text back to textedit.But this time it recognizing linefeed as characters and deleting last 3 characters based on the number of linefeed characters.This is bcz i am validating the textedit to 240 characters.

So how can i remove the linefeed characters at textedit layout end ,without changing the linefeed characters whatever stored into table.

In the ABAP table line feed is storing as '##'.

I am trying to replace this ## with space using <b>Replace</b> command.

<b>REPLACE ALL OCCURENCES OF CL_ABAP_CHAR_UTILITIES=>CR_LF in DESCR with SPACE</b>.But this is removing linefeeds made by the user manually, and giving the text in one line.

Is there anyway to handle this at BSP layout end.