Hi
Check the below stored procedure provided by Mr. Nagarajan it is working fine.
IF (@transaction_type in('U') AND (@Object_type = '2'))
begin
if exists (select a.CardCode from OCRD a
where a.cardcode=@list_of_cols_val_tab_del and a.UserSign2 <> '1' )
begin
set @Error = 20004
set @error_message = '"You dont have permission to update the business partner"'
End
End
With Regards
Balaji Sampath