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

Re: How to block warehouse for specific user??

$
0
0

Hi,

 

 

Try This

 

 

If(@object_type = '13' and (@transaction_type = 'A' or @transaction_type = 'U'))

Begin

 

 

          IF (SELECT Count(*)  FROM INV1 d  INNER JOIN OINV m ON d.DocEntry = m.DocEntry

          WHERE m.usersign ='6' AND d.whscode<>'FAV01' and d.DocEntry=@list_of_cols_val_tab_del) >0

          BEGIN

                    set @error = -5200

                    set @error_message = 'Please choose the correct warehose to proceed'

          END

END

 

 

Thanks,

Nithi


Viewing all articles
Browse latest Browse all 10548

Trending Articles



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