calculating a decimal
I am trying to calculate a field and the result is a decimal. the field is not showing the decimal amount. ep-hwsteaa has the amount of 80.00. ep-hwste has the amount of 200.00. w-dec should be 0.4. when I run in debug mode, w_dec is 0.000.
I am not sure if I have this coded right or not.
If someonw could please take a look at this and let me know what I am doing wrong, that would be very helpful
thanks in advance for the help
DATA: w_dec type P DECIMALS 3,
w_hwsteaa type p DECIMALS 2,
w_hwste type p DECIMALS 2.
l_steuer_ep-hwbas = ( ep-hwsteaa / ep-hwste ) * ep-hwbas.
w_hwsteaa = ep-hwsteaa.
w_hwste = ep-hwste.
w_dec = ( w_hwsteaa / w_hwste ).