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: 

Amount Conversion

Former Member
0 Kudos

Hi All,

I have an amount field say NET_AMT. I want it to get converted according to the decimal notation of the system settings.

I have declared new_amt1 as type Char and have used

Write: NET_AMT to new_amt1.

This piece of code is written in the Smartform.

The system settings is in the format 1 234 567,89 but I do not get the amount converted accordingly.

What can I do?

4 REPLIES 4

Former Member
0 Kudos

Hi,

U can use

new_amt1 = NET_AMT

Reward points if helpful.

Regards.

Srikanta Gope

Former Member
0 Kudos

Hi

Check the User settings in SU01 Tcode for defaults.

and use the command

SET COUNTRY 'IN'. for country India( to print 1,00,345.00)

use this and see to print/write the country specific decimals..

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos

Hi,

If you want data with decimal notation try by declaring the new_amt1 of type NETWR. and also use SET COUNTRY 'US' etc.

Reward points if helpful answer.

Ashvender

Pawan_Kesari
Active Contributor
0 Kudos
WRITE net_amt TO new_amt1.