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

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

$
0
0

Hi,

 

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


Viewing all articles
Browse latest Browse all 8950

Latest Images

Trending Articles



Latest Images