08-20-2007 10:57 AM
hi experts,
i have developed a smartforms in which the total value is coming like this 134567,what i want that it sud come like this 13,4567.plz help me for this....
thnx in advance.
08-20-2007 10:59 AM
Hi,
declare a global variable of type c.
in the program line
you will be getting the total value which is of type dmbtr or wrbtr
then
write dmbtr to global variable currency '2'.
then it will come like
12,231.00
thanks & regards,
Venkatesh
08-20-2007 11:04 AM
Hi..
Open the Global Definitions in Smartform.
In the Global data declare a Variable like G_TOTAL TYPE C.
Create a Program lines node before displaying this field in the Page/window.
In program lines node maintain like this:
INPUT: <YOURFIELD> for eg wa-total
OUTPUT: G_TOTAL
Code:
WRITE WA-TOTAL TO G_TOTAL DECIMALS 2.
<b>Reward if Helpful</b>