Application Development 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: 

HOW TO REMOVE '#' SYMBOL FROM A STRING FIELD

Former Member
0 Kudos

I WANT TO REMOVE THE '#' SYMBOL FROM THE STIRNG FEILD WHILE LODADING.

EXAMPLE : FILED CONTAINS-SIVA # #.

tHANKS,

SIVAGOPAL R

3 REPLIES 3

Former Member
0 Kudos

hi,

use replace keyword.

regards,

Navneeth K.

Former Member
0 Kudos

try this

data : text1(50) value 'ABC##DEF'.

replace all occurrences of '#' in text1 with space.

condense text1 no-gaps.

write : / text1.

regards

shiba dutta

Former Member
0 Kudos

Hi Gopi

You can use the FM ''SF_SPECIALCHAR_DELETE'" to delete the special characters.

Eg:

sp_char contains "sachin#",

then the following code will give work and

normal_char will contain "sachin" removing the #

====

CALL FUNCTION 'SF_SPECIALCHAR_DELETE'

EXPORTING

WITH_SPECIALCHAR = sp_char

IMPORTING

WITHOUT_SPECIALCHAR = normal_char

====

Please reward if useful.

regards,

sachin