Ansicht
Dokumentation
CONVERT_TO_FRACT5 - Convert a fraction into a fraction with max. 5-digit numerator/denominator
SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
Functionality
This FM calculates maximum 5-digit output numerator/denominator from an input numerator/denominator. The FM makes as close an approximation as possible. If the number can not be represented to an accuracy <= 1/100000 the exception is raised.
Example
DATA: NOMIN TYPE F,
DENOMIN TYPE F,
NOMOUT TYPE I,
DENOMOUT TYPE I.
CALL FUNCTION 'CONVERT_TO_FRACT'
EXPORTING
NOMIN = NOMIN
DENOMIN = DENOMIN
IMPORTING
NOMOUT = NOMOUT
DENOMOUT = DENOMOUT
EXCEPTIONS
CONVERSION_OVERFLOW = 01.
Parameters
DENOMINDENOMOUT
NOMIN
NOMOUT
Exceptions
CONVERSION_OVERFLOWFunction Group
SCV0General Data in Customer Master CL_GUI_FRONTEND_SERVICES - Frontend Services
This documentation is copyright by SAP AG.
Length: 953 Date: 20240523 Time: 115101 sap01-206 ( 18 ms )