Dear experts,
We are using many sp_transaction notifications
and today our support team is offline and so we need few helps
here is our notification
-------------------------------- Consignee UDF of batch is mendatory in GRPO for BP ---------------------
IF @transaction_type IN (N'A', N'U') AND (@Object_type = N'20')
BEGIN
if Exists
(SELECT T2.cardcode
FROM OPDN T2 INNER JOIN PDN1 T3 ON T3.DocEntry=T2.DocEntry
left Outer join OIBT I on I.BaseEntry = T3.DocEntry and I.ItemCode = T3.ItemCode and I.CardCode=T2.CardCode
where T2.CardCode != 'VEND0218' and (I.U_Consignment_pur='Y')
and T2.DocEntry in (Select DocEntry from OPDN where DocEntry = @list_of_cols_val_tab_del)
and T3.DocEntry in (Select DocEntry from OPDN where DocEntry = @list_of_cols_val_tab_del)
and T3.ItemCode in (Select ItemCode from PDN1 where DocEntry = @list_of_cols_val_tab_del)
)
BEGIN
SELECT @Error = 6, @error_message ='Selected Vendor Is Not For Consignment Purchase. Please Check The Batch Y/N.'
END
END
in the above code we want to add Vendor code Vend208 so tell me the correct way to update i am using t2.cardcode != ('vend0218','vend208')
and then how to update?