04-27-2006 12:07 PM
Hi
In scripts, when i am counting the total.
i need to print total as below
ex: if the total is 1234567, it should have print like 1,23,4567.00.
can anybody tell, how to do this.
Thanks
04-27-2006 5:07 PM
Hi,
I am not sure how you have declared this variable inside the SMART Form, declare that in reference to a database amount field. Once you do that, it will take care of the formatting, by itself.
I am guess this is related to your old post.
Regards,
Ravi
Note :Please mark the helpful answers and close the post if resolved.
04-27-2006 12:10 PM
Hi chinna,
1. Declare your variable for total
as
data : tot type p decimals 2.
2. then automatically it will print as u want.
regards,
amit m.
04-27-2006 12:12 PM
hi Chinna,
Declare the field as type p
i.e, data: <b>p_var type p decimals 2.</b>
Regards,
Santosh
04-27-2006 12:18 PM
Hi,
If it is total amount field,
then you can display it according to the currency.
Write <field> to <field type c> currency <currency>.
Thanks,
Rashmi.
04-27-2006 12:16 PM
Hi,
you can declare the Variable as P then it will print as you want or else you see your User profile, if you have the parameter without comas then change it to 9,99,999,9999 .. then it will print the comas
Thanks
Sudheer
04-27-2006 12:17 PM
Hi Chinna,
try changing the settings in
menu system->user profile->own data
In that in the defaults tab you can specify the decimal Notation..
regards
satesh
04-27-2006 12:25 PM
Hi Chinna,
In Menu Bar,
(a) Click, System->User Profile->Own Data
(Now 2nd screen will be opened Automically)
(b) Click, "Default" TabStrip
(c) Select the Decimal Notation of Whichever u need to display purpose.
(ii) Declare the field type as p.
Eg:- data: var1 type p decimals 2
Regards,
S. Manikanda.
04-27-2006 5:07 PM
Hi,
I am not sure how you have declared this variable inside the SMART Form, declare that in reference to a database amount field. Once you do that, it will take care of the formatting, by itself.
I am guess this is related to your old post.
Regards,
Ravi
Note :Please mark the helpful answers and close the post if resolved.
05-03-2006 6:02 AM
hi ravi,
first in the global declarations declare a variable say
wa_total like numc.
then go to tables in the calculation area
total the field name target field name and specify after loop.
this will print the total in each page and grandtotal in the last page.
try this out .
regards
rocky