Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAPSCRIPT Condense option

Former Member
0 Likes
1,030

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

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

2 REPLIES 2
Read only

Former Member
0 Likes
658

To be precise, i am displying the total number of pages,

&SAPSCRIPT-FORMPAGES(C2)&

Read only

Former Member
658

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