Child pages
  • FunctionModule UNIT_CONVERSION_SIMPLE – Measurement unit conversion by table T006
Skip to end of metadata
Go to start of metadata

Purpose

The purpose of this page is to clarify the understanding of the function module UNIT_CONVERSION_SIMPLE.

Overview

UNIT_CONVERSION_SIMPLE converts values from one measurement unit to another and rounds the result to the number of decimal places maintained in the measurement unit table, if necessary. The rounding is up ('+'), down ('-'), commercial ('X') or no rounding (SPACE), depending on the parameter ROUND_SIGN.
It can also be used for rounding according to the measurement unit table only. In this case UNIT_IN = UNIT_OUT.
Conversion requires that both units are maintained in the measurement unit table and have the same dimension and are not both without dimension.
Rounding is also possible for dimensionless units.

How to use it?

Call transaction SE37  with function module UNIT_CONVERSION_SIMPLE.

Import parameters

Export parameters

  • ADD_CONST
  • DECIMALS
  • DENOMINATOR
  • NUMERATOR
  • OUTPUT

Exceptions

Function Group

SCV0 

Related Content

Related SAP Notes/KBAs

 

Notes describing and correcting function module UNIT_CONVERSION_SIMPLE are below:

543958  Rounding error for condition bases
863520  During the reposting of costs no quantities are reposted