Table: MARM
http://help.sap.com/saphelp_nw04/helpdata/en/2a/fa013c493111d182b70000e829fbfe/content.htm
Function group SCV0
This function group contains the following function modules:
- BUFFER_CONTROL
- CONVERSION_FACTOR_GET
The module also returns the number of decimal places to which the values in the unit UNIT_OUT are to be rounded. This also applies to units with no dimension.
The following formula applies for the conversion:
(value in the unit UNIT_OUT) = (value in the unit UNIT_IN) * numerator/denominator + additive constant.
- ROUND
- Rounding up
- Rounding down
- Commercial rounding
The rounding is performed internally with the same field type as that of the field passed.
Rounding errors can thus occur when rounding a FLOAT value. If you want a high degree of accuracy, the passed field should have the type P.
- SI_UNIT_GET
- UNIT_CONVERSION_WITH_FACTOR
- UNIT_CORRESPONDENCE_CHECK
- UNIT_GET
- UNIT_CONVERSION_SIMPLE
You can also perform the rounding without conversion.
Conversion with this function module requires that the measurement unit table is maintained for both units, and that both units belong to the same dimension, i.e. also that they have dimensions.
The rounding can, however, also be performed for units which have no dimension.