on 02-02-2024 3:02 PM
Hi,
I always number my locks in transactions, write down how to do this
IF (@object_type = '4' and @transaction_type = 'U')
BEGIN
SELECT TOP 1
@error = 4,
@error_message = 'TF[4.1]: Item description cannot be changed, there are purchase orders generated = ' + @list_of_cols_val_tab_del
FROM OITM T0
INNER JOIN AITM T1 ON T1.ItemCode = T0.ItemCode AND T1.LogInstanc = (SELECT MAX(LogInstanc) FROM AITM WHERE ItemCode = T0.ItemCode)
INNER JOIN POR1 T2 ON T2.ItemCode = T0.ItemCode
WHERE T0.ItemCode = @list_of_cols_val_tab_del
AND T0.ItemName <> T1.ItemName
END
Rgs.
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
9 | |
5 | |
5 | |
3 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.