07-07-2008 11:21 AM
Hi,
I'm modifying a script,field in table has got decimals places of 4 and it's displaying the same on output.I want to restrict the no of decimals places to 2.How to do it?
Thanks in advance.
07-07-2008 11:23 AM
07-07-2008 11:23 AM
07-07-2008 11:25 AM
Hi Hosmath,
For this you can use a formatting option called &symbol(.N)& to restrict the decimal places.
Example :
&sflight-price& -> 1,234.560
&sflight-price(.1) -> 1,234.6
&sflight-price&(.4) -> 1,234.5600
&sflight-price&(.0) -> 1,235
Regards,
Swapna.
07-07-2008 11:26 AM
hi
use this link
http://help.sap.com/saphelp_nw04/helpdata/en/d1/803479454211d189710000e8322d00/frameset.htm
cheers
Snehi
07-07-2008 11:30 AM
hiii
see following example for decimal in script.
&EKPO-MENGE& -> 1,24.560
&EKPO-MENGE(.1) -> 1,24.6
&EKPO-MENGE&(.4) -> 1,24.5600
regrads
twinkal
07-07-2008 11:36 AM