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: 

Convert to number

Former Member
0 Kudos

I have a probelm in a module pool where the quantity value being passed in has commas. So I need to convert this to a true numerical value. Are there any FMs for this?

Examples:

100,00 = 100.00

1,067.5 = 1067.50

5 REPLIES 5

Former Member
0 Kudos

Hi,

Its probelm with only some setiings.

Sytem>User Profile>Own Data -->Click on default Tab and make the Decimal Notaion as : 1,234,567.89

It will work.

Regards

Arbind

nikhil_chitre
Active Participant
0 Kudos

use Conversion exit.

Regards,

Nikhil

Former Member
0 Kudos

hi its actually sap script thats passing in the comma values.

what coversion exit would you use?

0 Kudos

Hi,

Maybe this approach can help.

While reading the values from the internal table, replace all occurences of ',' (comma) with '.' (fulstop) and then use it.

Regards,

Mansi.

Former Member
0 Kudos

used the set country 'GB' and the symbol (T) to remove thousand seaprtors