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

NO SPACE IN SCRIPTS

Former Member
0 Likes
1,053

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
995

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

6 REPLIES 6
Read only

peter_ruiz2
Active Contributor
0 Likes
995

hi,

use this.

SHIFT [field] RIGHT DELETING TRAILING 0..

SHIFT [field] LEFT DELETING LEADING 0.

regards,

Peter

Read only

0 Likes
995

Thank u.

can u please explain me how can i use it in a SCRIPT.The fields is &KOMVD-VTEXT(16)&

vijay

Read only

0 Likes
995

hi krishna,

try this.

&KOMVD-VTEXT(C)&

regards,

Peter

Read only

Former Member
0 Likes
995

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

Read only

Former Member
0 Likes
996

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

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
995

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.