Hi Imran ,
use the below TN for certain users you want
If @object_type='46' AND @transaction_type IN ( 'A','U')
begin
if exists (select a.docentry from
ovpm a inner join ousr b on a.usersign2=b.userid
where (a.trsfracct<>'' or a.trsfracct is not null) and b.userSign2 in ('1')
and a.docentry =@list_of_cols_val_tab_del)
begin
set @error = 121
set @error_message = 'MK - you are not allowed to do this Payment'
end
end
in the b.userSign2 in ('1') add the users code you want to block.
--Manish