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

Problem format Currency with Spell_amount

manuelhildemaro_ramossanc
Active Participant
0 Likes
615

Hi..

I have a problem using function spell_amount.

When i pass to function the currency 'COP', this take the decimal part, and add it to

the integer part.

By example,

amount = 10.000,00

waers = 'cop'

After the function take amount and convert it in 1000000.

This not happen for others format currency.

Thanks for yours answer.. And excuse me.. My english is very bad..

Regards, Manuel H.

Hi..

I have a problem using function spell_amount.

When i pass to function the currency 'COP', this take the decimal part, and add it to

the integer part.

By example,

amount = 10.000,00

waers = 'cop'

After the function take amount and convert it in 1000000.

This not happen for others format currency.

Thanks for yours answer.. And excuse me.. My english is very bad..

Regards, Manuel H.

2 REPLIES 2
Read only

Former Member
0 Likes
583

Welcome to SDN Forums.!

Probably, it isn't an abap problem, where I am, I check this function with this money, and the resul is the correct, consult with your functional consultant.. the function is adding the decimals positions, try complete this part.. 10000,00 and see the result..

Regards,

Read only

0 Likes
583

Thank u, for answer !

I too use the function TCURX_READ. This way i validate the currency decimals, and i can do necessary changes.

Regards,

Manuel H.