Problem with non currency field calculations to become curr
Is there a problem if I have a QUAN field and DEC field forming to become a CURR field? I mean a have this computation below:
v_var1 = v_var2 * v_var3.
where v_var1 type QUAN, v_var2 type DEC and v_var3 type CURR...
would it incur any problem with the calculations?
Advait Gode replied
Did you try ?
Worked for me flawlessly
tables bseg. parameters : qty like bseg-menge, amt like bseg-dmbtr. data : result like bseg-dmbtr. result = qty * amt. write result.
The only issue is that the result will be rounded upto 2 decimals.
But if you declare result as
data : result(13) type p decimals 3.
Then there will be no issues.
Edited by: Advait Gode on Oct 3, 2008 3:59 PM