Hi,
Try this...
if @object_type ='46' and @transaction_type in ('A','U')
begin
if exists(SELECT T0.DocEntry FROM [dbo].[OVPM] T0 INNER JOIN VPM4 T1 ON T0.DocEntry = T1.DocNum where T0.DocType='D' AND
T1.Descrip IS NULL and T0.DocNum =@list_of_cols_val_tab_del and T1 .ObjType ='46')
select @error =N'150',
@error_message =N'Please enter the Project at line level items.'
end
Regards
Bhanu