‎2007 Nov 28 5:02 AM
Hi ,
I am displaying a value in script as below,
[&VAR1(C2)&] and say VAR1 contains 1, output is appearing as [1 ].
If VAR1 contains 21 , then [21].
My requirement is in first case i.e. when it is 1, trailing space should not appear, i.e. instead of [1 ]----> [1] should be displayed.
is there any other formatting option to achieve this.
Pls note if i use only &VAR1(C)&, then value are not displayed properly when VAR1 has 2 digits.
i.e. when VAR1 is 21 it is displayed as [1].
Regards,
Raghavendra
‎2007 Nov 28 5:05 AM
To be precise, i am displying the total number of pages,
&SAPSCRIPT-FORMPAGES(C2)&
‎2007 Nov 28 5:07 AM
Hi
Check Below 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
Hope it helps/
Praveen