Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to stop decimals appearing for a quantity field?


I have this field/column in my webdynpro:

It's nice but it always displays 3 decimals places - does anyone know how to suppress the decimals?

So that instead of 15,000.000 it shows just 15,000?

If it helps the binding in the context is to EKPO-MENGE i.e.:

Any help would be gratefully received!

Former Member

Hi Robert,

I suspect you are missing some thing and system will take care of decimals display based on unit automatically. We do not need to do any thing.

Please make sure that the below points are okay from your end.

  • Let us say you have strcture ZST_EKPO with fields MENGE and MEINS
  • You need to have reference to quantity fields as below ( i.e. referencing into same structure's unit )

Now, system auto converts decimals based on UNIT field

Example: if unit is of type NUMBER , quantity field may not have decimals

                if uinit is of type quantity measuring weight.... it may have decimals based on unit

If you do not want to have decimals in any case, then  as suggested, please use any suitable data element which doesn't have decimals

Example: refer where used list for domains like DEC13 or DEC_13

Hope this helps you.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question