cancel
Showing results for 
Search instead for 
Did you mean: 

Total

Former Member
0 Kudos

Hi,

I want to display total amount for the field NETWR in my SF.

I am getting the last value as total instead of sum of all values.

Also please tell me how to display sub-totals for each page along with the Currency (USD,GBP...).

Thanks,

RB

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member609120
Contributor
0 Kudos

Hi,

Add Program line by right clicking on the text element.

If the text element is already under a loop, say table loop, then write

gv_tot = gv_tot + wa-netwr.

else write

loop at itab into wa

gv_tot = gv_tot + wa-netwr.

endloop.

Then display &gv_tot& in the text element.

Former Member
0 Kudos

hi Raj,

to get the totals:

if ur displaying data using table, then to have the total of one field, click on table at left side, then u get a window having multiple options regarding table, among them select calculations tab, there u can select total n for which field, n the variable name to which the result will b stored. this way u can have totals.

Former Member
0 Kudos

go to this link its vry useful.

http://www.sapmaterial.com/smartform_example.html

Former Member
0 Kudos

Hi,

Check this thread,

Regards,

Satish