Hi Snehashis,
It will be difficult to visualize your situation .
But see the following pictures, where Grand Total was computed.
Individual totals
Image may be NSFW.
Clik here to view.
For Grand Total calculation, Program lines was created as under, where you want this Grand Total.
Image may be NSFW.
Clik here to view.
Then
Image may be NSFW.
Clik here to view.
Obviously SUM1 is flown from another field. (Calculation filed)
SUM1, GTOT will be Global Variables. and S_TPREV will be from interface. (s_tprev can be in the form wa_ekpo-ebeln )
I hope you've understood that, SUM1 will be GTOT will be equal to S_TPREV in the first run of loop and as the loop runs the GTOT will be incremented by the S_TPREV value of respective line item, until the internal table ends.
Hope you get some clues from this.
Jogeswara Rao K