I have done like this and it had been solved, thank you all.
1.create variable as total in global definitions
2.at table , Tab :Data , entry field (example carrid(total in carrid)) that you want total
3. tab : calcalution : entry data like this
Operation Field name Target Field Time
Total wa-distance total After loop.
HOLA.