‎2008 Sep 29 11:04 AM
Hi Experts,
I am facing problem with difference between two currency fields.
i am using bseg-wrbtr,bseg-qsshb like values are 1,210.00, 400
i need the difference between two fileds.
can any one help me out.
‎2008 Sep 29 11:06 AM
‎2008 Sep 29 11:06 AM
They are in the same currency so just subtract one from the other.
Darren
‎2008 Sep 29 11:11 AM
hi,
data : v_tot type curr(13).
v_tot = bseg-wrbtr - bseg-qsshb.
Regards,
deepthi.
Edited by: deepthi dandibhotla on Sep 29, 2008 12:11 PM
‎2008 Sep 29 11:13 AM
both are same type ,so you can just subtract to get diffrence.
parameters:wrbtr like bseg-wrbtr,
qsshb like bseg-qsshb.
data:diff type i.
diff = wrbtr - qsshb.
write:/ diff.
‎2008 Sep 29 11:16 AM
Hi
I tried this n it is working for me.
DATA: a TYPE QSSHB VALUE '400.00',
b TYPE wrbtr VALUE '1210.00',
c TYPE wrbtr.
c = b - a.
WRITE / c.