Menu

SAP Function Module UNIT_CONVERSION_SIMPLE

Measurement unit conversion by table T006, with rounding

Recommended Now

All-new Echo Dot Smart speaker with Alexa

This bundle includes Echo Dot (3rd Gen) Charcoal and Philips Hue White A19 Medium Lumen Smart Bulb, 1100 Lumens. Built in Smart Home hub. Ask Alexa to control Zigbee-compatible devices. No additional Philips Hue hub required. Two choices for easy smart lighting - Start setting the mood with Hue Smart bulbs and your Echo device, supporting up to 5 Hue Bluetooth & Zigbee smart bulbs. Add the Hue Hub for whole-home smart lighting (up to 50 light points) and bonus features.

Check it out on amazon.com →

The Function Module UNIT_CONVERSION_SIMPLE (Measurement unit conversion by table T006, with rounding) is a standard Function Module in SAP ERP and is part of the function group SCV0 within the package SZME.

Technical Information

Function Module UNIT_CONVERSION_SIMPLE
Short Text Measurement unit conversion by table T006, with rounding
Function Group SCV0
Package SZME
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
INPUT LIKE Input Value
NO_TYPE_CHECK LIKE 'X' Conversion factor type check
ROUND_SIGN LIKE SPACE Rounding flag (+ up, - down, X comm.)
UNIT_IN LIKE T006-MSEHI SPACE Unit of input value
UNIT_OUT LIKE T006-MSEHI SPACE Unit of output value

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
ADD_CONST LIKE additive constant for conversion
DECIMALS LIKE Number of decimal places for rounding
DENOMINATOR LIKE Denominator for conversion
NUMERATOR LIKE Numerator for conversion
OUTPUT LIKE Output value

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

This function module does not define any TABLE parameters.

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
CONVERSION_NOT_FOUND Conversion factor could not be determined
DIVISION_BY_ZERO Division by zero trapped
INPUT_INVALID Input value is not a number
OUTPUT_INVALID OUTPUT parameter is not a number
OVERFLOW Field overflow
TYPE_INVALID an output parameter is not a number
UNITS_MISSING no units specified
UNIT_IN_NOT_FOUND UNIT_IN is not maintained
UNIT_OUT_NOT_FOUND UNIT_OUT is not maintained