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

Re: Help with Transaction Notification

$
0
0

Hi Joseph,

 

Try:

 

IF @transaction_type IN (N'A', N'U') AND (@Object_type = N'67')

BEGIN

if exists (SELECT T1.DocEntry FROM OWTR T0 inner join WTR1 T1 on T0.docentry = T1.Docentry and and T1.U_WhsTyp = 'Main'

WHERE T0.DocEntry =@list_of_cols_val_tab_del and T0.U_WhsType ='Main' )

Begin

SET @error = 67

SET @error_message = N'Main Warehouse to Main Warehouse Transfer of Stock is not Permitted!! '

End

END


Thanks,

Gordon


Viewing all articles
Browse latest Browse all 9091

Trending Articles



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