Hi Amol,
Please check below Query.
IF (@object_type = '22') and (@transaction_type IN ('A','U'))
BEGIN
IF EXISTS (SELECT T0.Docentry from OPOR T0 Inner Join POR1 T1 ON T0.Docentry=T1.Docentry where
T1.DocEntry = @list_of_cols_val_tab_del and (T1.Project is null or T1.Project =''))
BEGIN
SET @error = -1
SET @error_message = N'Project Code is mandatory. Please update Project before adding the document.'
END
END
Hope this Helps
--
--
Regards::::
Atul Chakraborty