cancel
Showing results for 
Search instead for 
Did you mean: 

Aligning Decimal places in smartforms

Former Member
0 Kudos

Hi All,

In My requirement i need to align the amount field values properly.

Here the amount should be decimal justified and should appear one beneath the other.

Let us consider one example :

I have 3 fields which i am displaying:

Current Output:

1) Total Amount 1 56.24 USD

2) Total Amount 2 1000.00 USD

3) Total Amount Due. 2000.00 USD

Required Output:

1) Total Amount 1 56.24 USD

2) Total Amount 2 1000.00 USD

3) Total Amount Due. 2000.00 USD

Regards,

Bhanu.R

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Thanks

Former Member
0 Kudos

Hi,

As i said my earlier mail. move the currency values into character field and use the below statemnt to get the desired output.

data : v1 type c LENGTH 20.

WRITE / v1.

shift v1 left deleting leading space.

WRITE / v1.

It should work for you...

let me know if the problem still persisting

regards,

Sreenivasa sarma

Former Member
0 Kudos

Hi Bhanu,

Your Required output should be :

Total Amount1 56.00 USD

Total Amount2 100.00 USD

Total Amount3 1000.00 USD

For above format use in variable simbol as '<' sign in bracket e.g. &Amount(<)&. For that move that values in Amount into Left Justified

Regards,

vijay

Former Member
0 Kudos

hi,

Use the character variable to store the amount values and basically all character variables left aligned by default. so no need to bother about alignment.

Hope this will help you. if stilll the problem is persisting reply me.

regards,

Sreenivasa Sarma

klaki
Explorer
0 Kudos

I'd suggest to use a pharagraph format with

tabs and alignment 'align with decimal character', that should work!

Cheers

Klaus

Former Member
0 Kudos

Hi,

Appreciated your quick response.

Can you please send any example for more clarification.

klaki
Explorer
0 Kudos

Hi Bhanu,

I assume that you're using a smartstyle for your smartform!

In the smartstyle you should create a paragraph format to be used with your ammounts,

beside things like font, font size, etc. this paragraph format should have on or more tabulators

and part of those tabulators is the alignment, which should be 'Align with Decimal Characters' in your case!

Hope that helps

Klaus

Former Member
0 Kudos

Hi all,

The Required output should be :

Total Amount1 56.00 USD

Total Amount2 100.00 USD

Total Amount3 1000.00 USD

Former Member
0 Kudos

Hi,

The Required output should be :

Total Amount1 56.00 USD

Total Amount2 100.00 USD

Total Amount3 1000.00 USD

For above format use &Amount(C)& and should bu left justified. For that move that values in Amount into Left Justified.