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

Replacing special characters

Former Member
0 Likes
464

a = '27#'.

search a for '#'.

write : sy-fdpos.

From this code how would I drop the # sign so that the result is a = '27'. Would I use REPLACE and SPACE?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
432

REPLACE ALL OCCURENCES OF '#' IN field WITH SPACE.

3 REPLIES 3
Read only

Former Member
0 Likes
433

REPLACE ALL OCCURENCES OF '#' IN field WITH SPACE.

Read only

Former Member
0 Likes
432

Just:


DATA: a(3) VALUE '27#'.
REPLACE '#' WITH '' INTO a.

(No space between the single quotes)

But after further checking, I don't think this is what you want.

Rob

Message was edited by:

Rob Burbank

Read only

Former Member
0 Likes
432

in the other you can use 'OVERLAY' & 'CONDENSE'.

regards,

*DJ

Reward, if its useful