calculation of total in sap script
Please help me out for this requirement.
I have an amount field reguh-rbetr. I need to show the sum of this field as TOTAL.
How can we do it? Please let me know. Is there any function in the script itself or do we need to calculate it in the program? Pl gimme example code.