06-13-2006 10:27 AM
Hello,
What is the signficance of (C), (I) formatting in SAP Script.
Thanks in adv
Manu
06-13-2006 10:38 AM
I am mainly looking for (I) formatting . Could any one let me know that?
06-13-2006 10:29 AM
& 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
06-13-2006 10:32 AM
<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
06-13-2006 10:38 AM
I am mainly looking for (I) formatting . Could any one let me know that?
06-13-2006 10:42 AM
See the links below for formatting options.
http://www.howforge.com/formatting-options-in-sapscript-without-the-leading-zeros
http://www.howforge.com/formatting-options-in-sapscript-offset
Cheers,
Thomas.
06-13-2006 10:43 AM
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.
06-13-2006 10:45 AM
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.