cancel
Showing results for 
Search instead for 
Did you mean: 

How to make quantity with decimal in smartform

Former Member
0 Kudos

hi, experts,

I want to present a quantity field in smartform.

if it's content is 123.000,

I want show it as 123.000 , not 123.

otherwise, it is presented normally.

The field's domain type is MENG13V

and unit field is MEINS.

My process is as below,

1. reference unit field in global declaration.

2.&AMOUNT(13.3<)&

Result from smartform,

I got a error message, 'format is illegal.'

All I have tried is as below,

1. change &AMOUNT(13.3<)& -> &AMOUNT(13<)&

as it's contents is int, it will show as a number without decimal.

otherwise, it show as normal as I want.

2. change &AMOUNT(13.3<)& -> &AMOUNT(C *<)&

result as 1.

Please help me solve the problem.

thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Can you try removing the '<', like &AMOUNT(*.3)&.

Reward if helpful.

Tyken

Former Member
0 Kudos

all of above doesn't work.

error message is still the same.

My report has 20 fields so I have to assign output length.

My solution is declare a 3 decimal's variant.

assign my quantity field to the variant.

and do usually as above.

it works.

Edited by: Grison.lai on May 27, 2008 5:43 AM

Answers (1)

Answers (1)

Former Member
0 Kudos

.3R will display the value with 3 decimal places

&AMOUNT(.3R)&