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

Re: SP for Block of Production order

$
0
0

Hi Try This.

 

 

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

BEGIN

 

IF EXISTS (SELECT T0.DocEntry

FROM OWOR T0 left join WOR1 T1 on T1.DocEntry = T0.DocEntry

WHERE T1.OcrCode is Null

and T0.DocEntry = @list_of_cols_val_tab_del and T1.ItemCode like 'FOH%%' or T1.ItemCode like 'DL%%')

BEGIN

SELECT @Error = 5, @error_message = 'Select Cost Centre for FOH or DL in Print & Pack Column'

END

END


Viewing all articles
Browse latest Browse all 2175

Trending Articles



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