Application Development and Automation 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: 
Read only

difference between two currency fileds

Former Member
0 Likes
842

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.

5 REPLIES 5
Read only

Former Member
0 Likes
746

F1 on Both

Read only

Former Member
0 Likes
746

They are in the same currency so just subtract one from the other.

Darren

Read only

Former Member
0 Likes
746

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

Read only

Former Member
0 Likes
746

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.

Read only

Former Member
0 Likes
746

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.