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

Re: Help with Transaction Notification

$
0
0

Hi,

 

Try this:

 

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

BEGIN

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

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

and T1.U_WhsTyp = 'Main'  )

begin

SET @error = 7

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

end

END


Thanks & Regards,

Nagarajan


Viewing all articles
Browse latest Browse all 8556

Trending Articles



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