cancel
Showing results for 
Search instead for 
Did you mean: 

NO SPACE IN SCRIPTS

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

chaouki_akir
Contributor
0 Kudos

Hello,

to omitt leading zeros you can use formatting option 'Z' as follow : &KOMVD-VTEXT(20Z)& (or try &KOMVD-VTEXT(20ZC)&).

'C' =>Space Compression

'Z' =>Omitting Leading Zeros

'T' =>Omitting the Separator for u2018Thousandsu2019

'R' =>Right-Justified Output

'I' =>Suppressing Output of Initial Values

'K' =>Ignoring Conversion Routines

...etc...

You will found all sapscript formatting options in SAP library :

[http://help.sap.com/saphelp_47x200/helpdata/en/d1/80319c454211d189710000e8322d00/frameset.htm]

This answer has been found in an other thread [;

Cordialement,

Chaouki .

Edited by: Chaouki AUBEPIN on Aug 30, 2008 10:57 PM

Edited by: Chaouki AUBEPIN on Oct 5, 2008 11:36 PM

Edited by: Chaouki AUBEPIN on Oct 5, 2008 11:36 PM

Answers (0)