Hi Vamsi,
Try this:
IF (@Object_Type = '46') AND (@transaction_type in (N'A', N'U'))
BEGIN
IF EXISTs (SELECT T0.DocNum FROM OVPM T0 WHERE
T0.DocNUM = @list_of_cols_val_tab_del and T0.CashSum > 20000)
BEGIN
SET @error = 10
SET @error_message = N'Cash amount >20000.'
END
END
Thanks,
Gordon