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

Re: I would like to block the user to delete the row on purchase order through transaction notification

$
0
0

Hi Anirudh Gupta

 

Try This TNSP

 

If (@object_type = '22') and (@transaction_type in ('D' , 'U'))

 

BEGIN

   

     IF EXISTS ( SELECT   Itemcode FROM opor t1

     INNER JOIN por1 t2  ON t1.DOCENTRY = t2.DocEntry

                 WHERE t1.DocEntry =@list_of_cols_val_tab_del 

                  )

                

                 BEGIN

SELECT @Error = 22

SELECT @error_message = 'Delete Not Possible'

END

END

 

 

Regards

Venki


Viewing all articles
Browse latest Browse all 8459

Trending Articles



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