Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Removing the '#' from the Text Field output....

Hi,

I have a very annoying issue here...

There's this free text field of type CHAR length 255.

I am populating this field with the free text information that the user populates in a free text box on a BSP page.

Now what I see in this table field is that for every 'Enter' pressed by the user it contains a '#' value.

I want to get rid of that hash value such that it becomes a long string value without '#' (s).

Here's the text that comes from the BSP page into this field;

"Per Ryan#, #,#,I spoke with Sanjiv Tyagi late in the afternoon on Friday."

and here's what I want it to look like;

"Per Ryan, I spoke with Sanjiv Tyagi late in the afternoon on Friday."

I have tried all possible methods (at least the ones that I knew) to make it happen, but the text is not changing to my desired output.

Here's what I have tried;

REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab IN current_note WITH space in character mode.

REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>vertical_tab IN current_note WITH space in character mode.

REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>newline IN current_note WITH space in character mode.

REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>cr_lf IN current_note WITH space in character mode.

REPLACE all OCCURRENCEs OF '#' IN current_note WITH ',' in character mode.

Unfortunately, nothing happened and the text remained the same.

Please let me know what else should I try to get this done....

Thanks,

Sanjiv

Not what you were looking for? View more on this topic or Ask a question