on 2005 Nov 16 9:37 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.