Hi All,
we need to restrict few user to update due date field on production order.
thx in advance for same..
i have try below code but not working:
IF@TRANSACTION_TYPEIN('U')AND@OBJECT_TYPE='202' --Production Order
BEGIN
ifexists(selectt1.duedatefromOUSRT0 INNERJOINOWORT1ONT0.USERID=T1.UserSign where T1.docentry=@list_of_cols_val_tab_deland(t1.duedate>t1.duedate)andt0.USERIDin(140,138,131,39))
--begin
SELECT@ERROR=1,@ERROR_MESSAGE='you are not allowed to change due date.'
end