Hi,

I have a three tables received(master) received_detail (detail) and product_master table.

I build a form using master detail table and want to update one column(current_ stock) in product_master table from oracle forms. For this purpose I used following update routine in on_commit trigger in form level but it does not work.

UPDATE PRODUCTS
SET CUR_STOCK = CUR_STOCK + :RCTRAN.QTY
WHERE SUBSTR(CODE,6,4) = :RCTRAN.PRODCODE
AND ITEMTYPE = '0';

forms_ddl('commit');

Kindly give me the solution for this problem.

Hassan