cancel
Showing results for 
Search instead for 
Did you mean: 

right alignment problem in SAPScript

Former Member
0 Kudos

Hi

I am printing line items in my SAPScript

but I am unable to right justify the amounts(i,e) the decimals points are not coinciding.

I have defined a paragraph format "T1" it has the following Tab definition.

sl.no tab position Alignment

1. 1 Left

2. 20 Left

3. 30 Right

4. 48 Right

In text editor i've defined the line as follows

Paragraph

T1 ,,Total1,,$,,&w_linel1(C18R)&,,

T1 ,,Total2,,$,,&w_line2(C18R)&,,

T1 ,,Total3,,$,,&w_line3(C18R)&,,

T1 ,,Total4,,$,,&w_line4(C18R)&,,

Note: w_total1,w_total2..etc is of type bseg-dmbtr.

The output is as follows.

Total1 $ 10,000.00

Total2 $ 125.00

Total3 $ 10.00

Total4 $ 1,000.00

Please help in aligning the above numeric data.Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184551
Contributor
0 Kudos

Please let me know if you are able to resolve this, I have exactly the same problem and I have run out of ideas! Working with Sapscript is such a pain !!

Thanks

former_member184551
Contributor
0 Kudos

try increasing tab size a little, it just wurked for me

p format r1

std

alignment RIGHT

line spaci 1,00 LN

tabs 110 MM right