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: 

problem with currency field

Former Member
0 Kudos

Hi Friends,

I'm facing a problem with a currency field of infotype 8.The field is of currency type with length 17 and 2 decimals.When i do the calculation for this field,this field stores 0.05 instead of 5.How to convert this value as a whole no.

RESULT-AMOUNT is of type currency of length 17 and decimals 2.

M_BTR is of type currency of length 13 and decimals 2.

P0008-DIVGV is of type decimals of length 5 and decimals 2

For ex, RESULT-AMOUNT = ( M_BTR / P0008-DIVGV ).

Here in above statement M_BTR = 833.33

P0008-DIVGV = 162.5

so RESULT-AMOUNT should be 5.13 instead of 0.05.

Can anyone tell me on how to correct this from 0.05 to 5.13 as per this example.Also i should not change the data type definition of RESULT-AMOUNT.

Regards,

Vadivel.

2 REPLIES 2

naimesh_patel
Active Contributor
0 Kudos

hello,

RESULT-AMOUNT = ( M_BTR / P0008-DIVGV ) * <b>100.</b>

Regards,

Naimesh

Former Member
0 Kudos

in the program attributes,

have you checked FIXED POINT ARITHMETIC is on?

Regards

srikanth