cancel
Showing results for 
Search instead for 
Did you mean: 

Calculation Total/Sum Using Fox Code

Former Member
0 Kudos

My Fox coding is as follows.

data ta type f.

data ztotcost type keyfigure_name.

zvtotcost='vtotcost'

for each zvtotcost.

ta=ta+ztotcost.

endfor.

message i001(/sem/003) with ta.

Note: vtotcost is keyfigure.

as i gave message after loop. It is displaying value of TA Six Times(having 6 records) and final summation value is not displaying.

For each iteration message is displaying? why?

Is there any thing wrong in coding?

tx

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

This is because system has generated 6 data packages for function call.

http://help.sap.com/saphelp_sem60/helpdata/en/0a/242537cedf2056e10000009b38f936/frameset.htm

Answers (0)