Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

REPLACE ALL OCCURRENCESS not workinf properly

Former Member
0 Likes
904

Hi,

I am trying to replace a special charater(/) from a text by ' / '(space slash space) but replace function is not adding the space after slash(/). I am using following syntax

   REPLACE ALL OCCURRENCES OF '/' IN ls_address-line WITH ' / '.

Above syntax does insert space before slash but not after. Can someone please help?

Thanks,

Sanjay

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
780

Replace the " ' "  (U+0027) with " ` "  (U+0060).

Regards,
Raymond

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
781

Replace the " ' "  (U+0027) with " ` "  (U+0060).

Regards,
Raymond

Read only

0 Likes
780

Thanks for your help. It did work.

Read only

0 Likes
780

No problem, it was just a question of literals ("Text field literals" vs "String literals")  and back quotes.

Regards,

Raymond