‎2008 Aug 30 7:09 AM
Hi all
Please let me know how to avoid space in field in a script.i know we can minimise by * &KOMVD-VTEXT(20)&* by giving the number of characters.But i wanted to know is ther any other like the way we use CIZ to avoid trailing zeroes.
With Regards
Vijay
‎2008 Aug 30 7:16 AM
hi Vijay
&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
regards
Deva
‎2008 Aug 30 7:12 AM
hi,
use this.
SHIFT [field] RIGHT DELETING TRAILING 0..
SHIFT [field] LEFT DELETING LEADING 0.
regards,
Peter
‎2008 Aug 30 7:15 AM
Thank u.
can u please explain me how can i use it in a SCRIPT.The fields is &KOMVD-VTEXT(16)&
vijay
‎2008 Aug 30 7:41 AM
‎2008 Aug 30 7:15 AM
Hi Vijay
u can do in this way
if not &KOMVD-VTEXT(20)& is initial .
write ur code here for pronting and all
endif .
Cheers
Snehi
Edited by: snehi chouhan on Aug 30, 2008 8:41 AM
‎2008 Aug 30 7:16 AM
hi Vijay
&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
regards
Deva
‎2008 Aug 30 7:49 AM
Link:[SAP Script Printing|http://logosworld.de/www3/cookbooks/sapscript/sapscript_9/output.htm]
its better you remove the trailing zeros from the ABAP progarm and pass it to script using the SHIFT statement.