‎2007 Jul 27 10:15 AM
Hi
I want to calculate the subtotal for a particular line in smartforms. Can anyone help me with this
‎2007 Jul 27 10:18 AM
Hi Musarrat
use a variable to calculate the value in coding.....and use it as a text element
<b>
Regards,
Azhar</b>
‎2007 Jul 27 10:18 AM
Hi Musarrat
use a variable to calculate the value in coding.....and use it as a text element
<b>
Regards,
Azhar</b>
‎2007 Jul 27 10:18 AM
JUST ENTER NEW PROGRAM LINES NODE AND DO THE CALCULATION. YOU CAN USE GLOBLE VARIABLES.
‎2007 Jul 27 10:18 AM
‎2007 Jul 27 10:19 AM
HI Husain,
Just tell me details abt your tables and field on the basis of which you want total and subtotal. how many table u r using.
ple elaborate the problem.
Regards
Azad.
‎2007 Jul 27 10:20 AM
Hello Husain
You can do it inside the loop node in smartform.
I can give you the code if you can explain more about the requirement.
Cheers
Shafiq
‎2007 Jul 27 10:21 AM
Hi,
Check the standard program:
SF_EXAMPLE_02
Similar to SF_EXAMPLE_01 but with subtotals .
Regards,
Bhaskar
‎2007 Jul 27 10:21 AM
First you design the smartform ,then in print program get the all data into tables and work area.
Use Internal table events to get sub totals...
At end of field.
sub totals
endat.
at last .
grand totals.
endat.
Reward Points if it is useful
Thanks
Sudheer