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 formating

Former Member
0 Likes
2,130

Hello,

What is the signficance of (C), (I) formatting in SAP Script.

Thanks in adv

Manu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,195

I am mainly looking for (I) formatting . Could any one let me know that?

6 REPLIES 6
Read only

Former Member
0 Likes
1,195

& variable(c)& -


used for condence

ex- var = 'kishan singh'

&var(c)& -


kishansingh

&var(i)&--- suppresses the output of symbol that still contain their initail vaue

ex--

var = 0.00

&var(i)& = .---> spaces.

Message was edited by: kishan negi

Read only

vinod_gunaware2
Active Contributor
0 Likes
1,195

<b>Space Compression</b> The symbol value is viewed as a sequence of ‘words’, each separated from the next by either one or a string of space characters. The C option has the effect of replacing each string of space characters with a single space and shifting the ‘words’ to the left as necessary to close up the gaps. Leading spaces are completely removed. The results are the same as those of the ABAP command CONDENSE.

Syntax:

&symbol(C)&

<b>Suppressing Output of Initial Values</b> Use the I option to suppress the output of symbols that still contain their initial values.

Syntax

&symbol(I)&

Assuming KNA1-UMSAT contains the value 0 and the currency is DEM.

&KNA1-UMSAT& -> 0,00

&KNA1-UMSAT(I)& ->

If the field contains an amount other than 0, this value is printed in the normal way.

&KNA1-UMSAT& -> 700,00

&KNA1-UMSAT(I)& -> 700,00

Assuming ' Albert Einstein ' is the symbol value,

&symbol& -> Albert Einstein

&symbol(C)& -> Albert Einstein

regards

vinod

Read only

Former Member
0 Likes
1,196

I am mainly looking for (I) formatting . Could any one let me know that?

Read only

Read only

0 Likes
1,195

Hi Manu,

Formatting (I) option is used to surpress the display of initial values.

Generally, initial value of currey is like 0,00.

or Intial value of numeric is 0.

So, this I format option to surpress of printing those zeros.

Most of companies ask the developes, if the value is zero or initial, do not print. So that was the situation.

Read only

0 Likes
1,195

Hi Manu,

The I option suppresses the output of symbols that still contain their initial value.

syntax

&symbol(I)&

example

Assuming KNA1-UMSAT contains the value 0 and the currency is USD.

&KNA1-UMSAT& 0.00

&KNA1-UMSAT(I)&

If the field contains an amount other than 0, this value will be output in the usual way.

Regards,

SP.