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

Re: Need to block adding Purchase Order if Shipping type is not Selected using SPT

$
0
0

Hi Vinod,

 

Try this

 

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

Begin
IF EXISTS (SELECT T0.[DocNum] FROM OPOR T0 WHERE T0.Trnspcode=-1 or   

isnull(T0.Trnspcode,'')=''

and

T0.DocEntry = @list_of_cols_val_tab_del)

BEGIN

set @Error = 18
set @error_message = 'Please Select the Shipping type in Logistic'

END
End

 

Rgds


Viewing all articles
Browse latest Browse all 3316

Trending Articles



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