cancel
Showing results for 
Search instead for 
Did you mean: 

Truncate Spaces to the left side of the amount

Former Member
0 Kudos

Hi All,

In my SAPScript, for a field,

I have to print $100.00 or $1,000.00

How do I truncate the spaces on left side of the amount and add a $ sign in the immediate left space?

Any help will be greatly appreciated.

Thanks,

Haritha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Haritha,

Try using (C) option

Like in your window &KBETR(C)&

ashish

Former Member
0 Kudos

Thanks Ashish!!!

It worked!

Haritha

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Haritha,

Move the contents into a char variable and as below as use it in the layout to display.

write: var1 to var2.

Shift Var2 left deleting leading (spaces or zeroes).

&var2&

Award points if helpful.

Thanks

Dany