Parameter | Reference | Type | Length | Default | Optional | Text |
---|---|---|---|---|---|---|
ADD_CONST | 0 | additive constant | ||||
DENOMINATOR | 0 | Denominator | ||||
INPUT | 0 | Input Value | ||||
NUMERATOR | 0 | Numerator |
Parameter | Reference | Type | Length | Text |
---|---|---|---|---|
OUTPUT | 0 | Output value |
Exception | Text |
---|---|
DIVISION_BY_ZERO | Division by zero trapped |
OVERFLOW | Field overflow |
TYPE_INVALID | of output parameters is not a number |
Functions Conversion is carried out using the following formula: Output value = ( numerator / denominator ) * input value + additiveconstant Example DATA: IN TYPE F, OUT TYPE F, NEN TYPE F, ZAE TYPE F, ADD TYPE F. ... CALL FUNCTION 'UNIT_CONVERSION_WITH_FACTOR' EXPORTING ADD_CONST = ADD INPUT = IN DENOMINATOR = NEN NUMERATOR = ZAE IMPORTING OUTPUT = OUT EXCEPTIONS DIVISION_BY_ZERO = 01 OVERFLOW = 02 TYPE_INVALID = 03. Notes
INCLUDE 'FU_INF_BUF' OBJECT DOKU ID TX |