Hi,
Try This
If(@object_type = '13' and (@transaction_type = 'A' or @transaction_type = 'U'))
Begin
IF (SELECT Count(*) FROM INV1 d INNER JOIN OINV m ON d.DocEntry = m.DocEntry
WHERE m.usersign ='6' AND d.whscode<>'FAV01' and d.DocEntry=@list_of_cols_val_tab_del) >0
BEGIN
set @error = -5200
set @error_message = 'Please choose the correct warehose to proceed'
END
END
Thanks,
Nithi