Hi Nithi,
Thanks for the reply, I'm done to create my SP and it's working fine.
IF @object_type='1' AND @transaction_type='U'
Begin
IF EXISTS (select * from (select top 1 * from aact where AcctCode=@list_of_cols_val_tab_del
order by loginstanc desc) A,OACT B Where a.acctcode=b.acctcode and A.Dim1Relvnt<>B.Dim1Relvnt and B.UserSign2<>1 and B.AcctCode=@list_of_cols_val_tab_del)
Select @Error=1,@error_message='You are not allowed to Update SEGMENT'
End
only manager user can only update the Dimension;
Thanks,
Lean