Dec 30, 2014

Sapscript/Smartforms Formatting options


&symbol(Z)& Omit Leading Zeros
&symbol(S)& Omit Leading Sign
&symbol(<)& Display Leading Sign to the Left
&symbol(>)& Display Leading Sign to the Right
&symbol(C)& Compress Spaces
&symbol(.N)& Display upto N decimal places
&symbol(T)& Omit thousands separator
&symbol(R)& Right justified
&symbol(I)& Suppress output of the initial value


Offset
Specifying an offset of N has the effect that the N left-most characters of the
symbol value will not be displayed. If the offset specified is greater than the
length of the value, nothing is output.
Syntax
&symbol+offset&
If symbol has the value 123456789, the following will be displayed:
&symbol& -> 123456789
&symbol+3& -> 456789
&symbol+7& -> 89
&symbol+12& ->
&symbol+0& -> 123456789


Output Length
If you require only a part of the symbol value, or the output has to fit into a box or
a field on the screen, without overlapping the edges of this area, then you can use
an output length specification to define how many character positions should be
copied from the value.
Syntax
&symbol(length)&
If symbol has the value 123456789.
&symbol(3)& -> 123
&symbol(7)& -> 1234567


No comments :