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 convert alphanumeric to a number

Former Member
0 Kudos

Dear SDNers,

Thanks for reading my post.

I have an alpha numeric field, which I need to clean up and only keep the numeric part (i'm not interested in any of the characters within that field).

As an example, if the fiedl contains A12B34C - then I only need the 1234 part. Ofcourse if it contained spaces, special characters like &,(,* etc then they should be ignored as well.

I was wondering if there is a function within SAP that does this automatically.

Many thanks for your help

1 ACCEPTED SOLUTION

Former Member
0 Kudos
3 REPLIES 3

Former Member
0 Kudos

I dont think that there is any such function module in SAP, probably u need to read the data charcter by character and check if there is any non numeric value.

Former Member
0 Kudos

check the below FM....

FIEB_EXTRACT_MINUS_NUMBERS

FIEB_EXTRACT_NUMBERS

Former Member
0 Kudos