‎2008 Jul 04 8:37 AM
Dear All
I am using table control 3 fields (Rate, Qty, Amount)
now i want calculate total amount
how will calculate?
Thanks and Regards
Suresh
‎2008 Jul 04 8:41 AM
Hi
Loop at tab.
at end of <<fieldname>>
total = total + <<Amt>>.
at last.
Gtotal = total + gtotal.
endloop.
Reward if helpful.
Regards
Chandralekha
‎2008 Jul 04 8:41 AM
Hi
U need to loop the internal table where u store the data to be display in table control in order to calculate the total:
TOT = 0.
LOOP AT ITAB.
TOT = TOT + ITAB-AMOUNT.
ENDLOOP.So u should place a new module in PAI after the loop of table control:
PROCESS PAI.
LOOP AT ITAB.
ENDLOOP.
MODULE SUM.Max