Action
- Last UpdatedMay 17, 2023
- 1 minute read
When a new unit of measurement (UOM) is added from the MES Client application or by using a System Platform script to add the UOM, the middleware typically uses the sp_I_Uom stored procedure to add the new unit of measurement. As explained in Functional Overview, the middleware first verifies whether any pre-hook is configured for the sp_I_Uom stored procedure. Since there is a pre-hook sp_I_Uom_Log configured for this case, the middleware first executes the stored procedure sp_I_Uom_Log and then evaluates the result before processing the standard middleware call sp_I_Uom to create a new unit of measurement in the MES database.