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

Function Module

Former Member
0 Likes
327

Hi,

Is there any function module to delete all the alphabets & special characters from the string? (to keep only numberic)

2 REPLIES 2
Read only

Former Member
0 Likes
301

Hi karthik,

I didn't find any function module .

But your requirement can be satisfied without the need of any function module.

Look at the following Example:

<b>

data:

char(10) type c value 'a1b2c3d4e5',

numc1(10) type n,

numc2(5) type n.

numc1 = char.

numc2 = char.

write /: numc1,

numc2.

</b>

Here in numc1,numc2 you will get numerics only.

Hope this helps you.

Read only

andreas_mann3
Active Contributor
0 Likes
301

yes,

use fm PREPARE_STRING

search for that fm and my examples in this forum

A.