Hi ,
I created the following conditional expression and assigned it to domain: WOSTAT, and completed status, but it still does not work:
The idea is for the system to check if there are records in PLAN--> Materials tab in work order and there are no records in ACTUAL--> Materials tab in that work order and VISE VERCA , then the system should not allow the work order to be changed to completed Status
( (EXISTS ( SELECT 1 FROM WPITEM WHERE wonum = :wonum ) AND NOT EXISTS ( SELECT 1 FROM MATUSETRANS WHERE refwo = :wonum )) OR (EXISTS ( SELECT 1 FROM MATUSETRANS WHERE refwo = :wonum ) AND NOT EXISTS ( SELECT 1 FROM WPITEM WHERE wonum = :wonum )) )