cancel
Showing results for 
Search instead for 
Did you mean: 

itab field total

Former Member
0 Kudos

Hi,

i have itab with 3 fields data like this.

f1f2--f3.

1abcd-10

2cheb-00

3enlo-30

4seon-00

i want to total of f3... using "at last ,sum, endat"

points guaranteed

cheers

kaki

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

1 st you need to sort ITAB by field......

After that you can use controll break statment.

AT LAST....

AT END OF............

ON CHANGE OF.............

Thanks.

Former Member
0 Kudos

Hi,

First of all Sort the Itab with all the 3 fields and use the Control event .

Then it works.

Try with sum in at first or at last control event...

Collect statement works if all the numeric fields are added when all the non numeric fields are same.

Message was edited by: sampath chinta

Former Member
0 Kudos

Hi ,

If u want total at the end of the f3

use <b>collect itab.</b> or use this

loop at itab.

at last.

sum.

endat.

endloop.

if u want at end of any field use this

loop at itab.

at end of fieldname.

sum.

endat.

endloop.