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

total calculations

Former Member
0 Likes
773

Hi friends,

I want total calculation currency field.

examples.

table: mbewh

fields:salk3

these field values under of the report total value come.

please,

where to declare total field.

How to calculate the values.

How to display totoal value.

Thanks,

sreddy.

Hi friends,

I want total calculation currency field.

examples.

table: mbewh

fields:salk3

these field values under of the report total value come.

please,

where to declare total field.

How to calculate the values.

How to display totoal value.

Thanks,

sreddy.

5 REPLIES 5
Read only

Former Member
0 Likes
745

Hi Reddy,

Please be clear in the post. What is the requirement exactly?

If you are clear we can help you...

Regards,

Swapna.

Read only

Former Member
0 Likes
745

Hi swapna,

My requirement is ,

How to calculate total in currency field.

How to display that field.

Read only

0 Likes
745

data:v_test type MBEWH-SALK3 value '32.76',

v_test1 type MBEWH-SALK3 value '54.76',

v_test2 type MBEWH-SALK3 .

v_test2 = v_test1 + v_test.

write:/ v_test2 .

Read only

Former Member
0 Likes
745

Hi,

We can do integer fields sum calculations like this:.

tables:
sflight.

data:
t_sflight like standard table of sflight with header line.

select * from sflight into table t_sflight .

sort t_sflight by carrid connid.
loop at t_sflight .

at new connid. .
  write : /  t_sflight-carrid,t_sflight-connid.
  sum.
  write : / t_sflight-price.
endat.
endloop.

Regards,

Rajitha.

Read only

Former Member
0 Likes
745

hi friends,

How to multyply floating point values.

what is the data type.

example:

t_final-diff : currency value.

t_final-lbkum : mbewh-lbkum field

t_final-tstock = t_final-diff * t_final-lbkum

near above statement programe go to dump.

please floating values how to multiply and what is the data type.