‎2007 Aug 06 10:06 AM
Hi Experts,
i want to do Sum of prices at the end of field. How can i do this in Smartforms? give me examples showing procedure to explain this?
Thanks
‎2007 Aug 06 10:09 AM
‎2007 Aug 06 10:23 AM
hi ,
In table........goto Calculation Tab..........
give.........
operation------sum
field name -
that u want to sum like itab-lfimg
tareget fields name----
slfimg(specify this in global data)
Time -
when u want(after loop,before loop..........)
And at Footer specify........-slfimg(specify this in global data) field.......
Reward points if helpful........
Regards,
Imran
‎2007 Aug 06 10:21 AM
Hi
For Totals and subtotals - Check the link...
You can use the PROGRAM LINES node to calculate the page totals in Table node.
Table Node has three sections:
Header: (Triggered once in the beginning of a page)
Create a Program lines node to reset the value of TOTAL to 0.
Main Area (For each row of internal table)
Create a Program lines node to add the Value to TOTAL
Footer (Triggered once in the End of a page)
Display the TOTAL
Note: 1) You can declare the TOTAL variable in the GLOBAL Definitions under GLOBAL DATA.
2) In the PROGRAM lines always pass the TOTAL in both INPUT and OUTPUT parameters
<b>Reward points for useful Answers</b>
Regards
Anji