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