Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8411

Re: SP for COA update Restriction

$
0
0

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


Viewing all articles
Browse latest Browse all 8411

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>