cancel
Showing results for 
Search instead for 
Did you mean: 

Remove decimals in smartforms

Former Member
0 Kudos

Hello all,

How can we suppress decimals in smartform. Because I do not want it for a Quantity field.

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

&FIELDNAME(.0)&

The formatting option .0 specifies no decimal places.

If you are at release 4.7 or higher you may also want to check your quantity field is associated with the correct unit of measure as this should also dictate whether decimal places are displayed.

Regards,

Nick

Former Member
0 Kudos

Hi Nick,

Thanks for the response.

yes, we are 4.7 EE.

Is it mandatory to send Unit. Any other way ?

Former Member
0 Kudos

It is not manadatory to use unit, but there is some standard functionality of smartforms which can be used. Take a look at the <a href="http://help.sap.com/saphelp_47x200/helpdata/en/0b/5da4e42cf511d5b692006094192fe3/content.htm">SAP help</a> for smartforms, but it essentially needs your DDIC structure that hold your quantity field to also how a unit.

Regards,

Nick

Former Member
0 Kudos

Hi

&symbol(Z)& Omit Leading Zeros

&symbol(S)& Omit Leading Sign

&symbol(<)& Display Leading Sign to the Left

&symbol(>)& Display Leading Sign to the Right

&symbol(C)& Compress Spaces

&symbol(.N)& Display upto N decimal places

&symbol(T)& Omit thousands separator

&symbol(R)& Right justified

&symbol(I)& Suppress output of the initial value

Regards

Pavan