2005 Aug 18 10:44 AM
how to align the fields and remove te decimals etc.,
field(R)
waiting 4 reply
2005 Aug 18 10:50 AM
2005 Aug 18 10:48 AM
<b>Offset</b> - specifying an offset of n , n left most characters are not displayed.
E.g &symbol& ---> 1234576789
&symbol+3& -
> 456789
<b>
Output Length</b>
&symbol(3)& -
> 123
&symbol(7)& -
> 1234567
<b>
Time Mask</b>
&Time&
Normally 10:08:12
(hh) : (mm): (ss)
/: Set Time Mask = HH:MM
&Time& = 10:08
/: Set Time Mask = HH hours MM minutes
&Time& = 10 hours 08 minutes
&Time(Z)& = 10 hours 8 minutes
<b>Date Mask</b>
/: Set Date Mask = DDMMYY
&Date& = 01 05 01
/: Set Date Mask = MMMM DD,YYYY
&Date& = May 01,2001
<b>Fill Character</b>
Leading spaces in a value can be replaced with a fill character.
The F option is used and character to be filled is specified.
E.g &KNA1-UMSAT& = 700.00
&KNA1-UMSAT(F*)& = **700.00
<b>Space Compression</b>
&symbol(C)&
It has a effect of replacing each string of space characters with a single space and
shifting the words to left as necessary to close up gaps.
Also Leading spaces are completely removed.
<b>Omitting Leading Zeros</b>
&symbol(Z)&
&Day& = 01
&DAY(Z)& = 1
2005 Aug 18 10:50 AM
2005 Aug 18 11:14 AM
2005 Aug 18 11:09 AM
Hi,
&SYMBOL(R)& Right align output
&SYMBOL(8.0)& Decimal format. Length 8 decimals 0
For more information,check this link.
http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm#Formatting
2005 Aug 18 11:12 AM
Hi,
You can go for &itab-posnr(CIZ.0)& for deleting the decimals and removing zeros.
Regards
Abhishek