Hi,
Try the below TN
If @transaction_type in ('U') and @object_type in ('17')
begin
if exists ( select a.DocEntry from ORDR a
where
a.DocEntry = @list_of_cols_val_tab_del AND a.U_UDF1 <>'' and a.U_UDF2 IS NULL and a.U_UDF3 IS NULL)
begin
set @error = 18
set @error_message = 'MK- Please also fill the data in UDF2 & UDF3'
end
END
Regards,
Manish