Showing results for 
Search instead for 
Did you mean: 

Smart Forms - Set decimal places in display formatting

Former Member
0 Kudos


i have a variable (quantity 15 field with 3 decimal places) which i want to print via smartforms.

sap help describes that you have to set (.<number>)

for example: &field(.2)& to do that.

this doesn t work at all.

Does anybody know how you can do that?

I would appreciate an answer, because that costs me already alot of time.

thanks alot!


Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

create global variable in form like:

gv_dec_0 type P decimals 0.

then create code in smartforms:

gv_dec_0 = your_field.

then output this gv_dec_0 field like

&gv_dec_0(7.2R)& or




Former Member
0 Kudos

Hi Jasmin,

We use this notation in a smartform to print weights and it works fine. Perhaps you should also mention the total numbers to display before the decimal?

We have used: &BRGEW(8.0)&