‎2020 Jul 01 11:48 AM
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...
‎2020 Jul 01 12:09 PM
What do you call "normal character", and what do you call "special character"?
‎2020 Jul 01 12:12 PM
‎2020 Jul 01 12:46 PM
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.
‎2020 Jul 01 12:30 PM
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
‎2020 Jul 01 12:31 PM
I'm not sure my regex is right, usually I use this site to test them
‎2020 Jul 01 12:30 PM
HI
try this code
REPLACE ALL OCCURRENCES OF REGEX '[^\D]' IN c_name WITH ''Regards,
Venkat
‎2020 Jul 02 10:29 AM
‎2020 Jul 02 1:20 PM
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