Hello to every one and HAPPY NEW YEAR.
I have the following problem: a char field contains an amount and I want to make the following check: if wfile-dmbtr < 0.00
The code I use:
data: lv_dmbtr(18) type n.
write wfile-dmbtr to lv_dmbtr.
replace first occurrence of '.' in lv_dmbtr with ''.
translate lv_dmbtr using ',.'.
if lv_dmbtr <= '0.00'.
The problem is for values between 0.01 to 0.49, and the program most probably round them to 0 and returns True
.
The dmbtr
amounts have the following mask: 12.235,99. Does anyone knows how to overcome this issue?
Thanks in advance.
Elias