Showing results for 
Search instead for 
Did you mean: 

Condense space from integer currency in SAPSCRIPT

Former Member
0 Kudos


I have define

data: currency type i,

and in sapscript I want to align currency column to left, for example

price1: 23,123EUR

price2: 2 233 231,123EUR


price1: 23,123EUR

price2: 2,233,231,123EUR

depends from user settings number formatting.

But I see that var currency in debugger have in left spaces and I see in Sapscript print like this:

price1: (spaces)23,123EUR

price2: 2 233 231 231,123EUR

How to align this currencies? I must to have define all format types depends for user formatting currencies.

For integer it is automatic but for var char not.

Edited by: Kosmo on Jul 17, 2008 11:57 AM

Edited by: Kosmo on Jul 17, 2008 11:58 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

try this:


Z and C must be in caps

other formatting options

&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

reward if helpful

Answers (1)

Answers (1)

Former Member
0 Kudos

Much thanx, it is working now