Insurethat allthe weeksare alwaystransmitted in the samepacket. Then, if required SORT the package, loop at the package and sum values and increment a counter when stock not zero, at end divide sum by counter and use a MODIFY itab lines statement.
Regards,
Raymond