I am trying to create a custom event on purchase order.
First I have created two custom fields on purchase order header.
- One numeric field to enter the Fund allocation (Numeric )
- To pick the total PO amount
Expression Statement - Purchase_Order_API.Calc_Total_Gross_Incl_Chg(order_no))
Method signature Signature - Purchase_Order_Cfp.Get_CF$_Po_Full_Amount(v.objkey)
Custom event -
Fund Allocation should not be grater than the total po amount.
Online Sql Statement
DECLARE
BEGIN
IF ('&NEW:CF$_FUND_ALLOCATION' > '&PO_AMOUNT') THEN
IFSAPP.Error_SYS.Record_General('Error', 'Fund Allocation can not exceed the PO amount');
END IF;
END;
When I activated the event I get the below error.
table IFSAPP.PURCHASE_ORDER_CFT is mutating, trigger/function may not see it
Failed executing statement (ORA-04091: table IFSAPP.PURCHASE_ORDER_CFT is mutating, trigger/function may not see it
Please Help me with this