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

Remove symbol

divsmart
Participant
0 Likes
2,387

replace.txtHi guys,

I need to remove the "special character ' (what ever character could).. I now "Replace all occurances statment".

I tried it but not resolve , someone help me..

Attached an sample program...

8 REPLIES 8
Read only

Sandra_Rossi
Active Contributor
0 Likes
2,306

What do you call "normal character", and what do you call "special character"?

Read only

divsmart
Participant
0 Likes
2,306

Sandra ,

Special character...

Read only

2,306

You mean the ellipsis …? Only this character? It seems easy to remove it, can you clarify your problem?

PS: please use COMMENT. The button ANSWER is only for proposing a solution.

Read only

felipe_dimmu23
Participant
0 Likes
2,306

You could use regular expressions,

replace all ocurrences of regex `[^0-9a-zA-Z]+` of ... with ''.

https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abenregular_expressions.htm

Regards,

Felipe Silva

Read only

2,306

I'm not sure my regex is right, usually I use this site to test them

https://regex101.com/

Read only

venkateswaran_k
Active Contributor
2,306

HI

try this code

REPLACE ALL OCCURRENCES OF REGEX '[^\D]' IN c_name WITH ''

Regards,

Venkat

Read only

0 Likes
2,306

hi

Is your problem resolved?

Read only

navneeta
Product and Topic Expert
Product and Topic Expert
2,306

Try this code it will remove all special characters .

   REPLACE ALL OCCURRENCES OF REGEX '([^a-zA-Z0-9\s])' IN wa_test-name  WITH ''.

Thanks

Navneet