Skip to Content
0
Former Member
Apr 07, 2011 at 05:27 AM

Problem with using "replace all occurences of " for "##"

2385 Views

Hi Experts,

The enter key(new line tab) in the text edit box of a BSP page is picked up as '##' by the method cl_htmlb_manager=>get_data and then i store it in a custom table.

When BSP page retrieves this data, the '##' is displayed as enter key(new line tab) properly .

But , when I fetch the same data in smartforms , the '##' is not converted to enter key(new line tab).Instead it is displayed as '##'.

So manually i tried to replace the '##' by a double space using all the following but nothing works :

1)TRANSLATE wa_zpa9083-zkra USING '# '.

CONDENSE wa_zpa9083-zkra.

2)replace all OCCURRENCES OF '##' IN wa_zpa9083-zkra

WITH space IN CHARACTER MODE .

3)SPLIT wa_zpa9083-zkra

AT '##' INTO v_1 v_2 .

It seems that SAP doesnot recognize this newline tab converted - '#' as a normal '#'. So, none of the replacement methods seems to work.

Please help.

Best Regards,

Kushal