on 02-16-2009 9:15 AM
Hi All,
In smartforms, to control the number of decimal points in a field we can use the formatting option
&symbol(.N)&
for e.g.
The EKPO-MENGE field contains the value 1234.56. The Dictionary definition specifies 3 decimal places and an output length of 17.
&EKPO-MENGE(.1) -> 1,234.6
&EKPO-MENGE&(.4) -> 1,234.5600
&EKPO-MENGE&(.0) -> 1,235
Can we use a variable instead to giving the number directly ?
like
data length type i .
length = '1'.
&EKPO-MENGE(.length) -> 1,234.6
Will this approach work.
Thanks,
Mandeep
hope you have declared the length variable in global data only.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i think there is no wildcharacter options for decimal places but inly there on output lenght....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi!
I think it cannot be done...hav u tried it...
try it and tell if it works....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.