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

Re: Need TN to block purchase request and purchase request draft if multiple location code

$
0
0

Hi Amol

 

 

Try This

 

 

 

if @object_type ='112' and @transaction_type in ('A','U')   

   BEGIN

  

                        If Exists(( SELECT distinct  count ( j1.LocCode) from DRF1 J1

where j1.DocEntry =@list_of_cols_val_tab_del and j1.ObjType='1470000113'  )>1 )

                              Begin

                 

                                    SET @error = -112

                                    SET @error_message ='Draft PR Budget Amount Not defined in the Senerio'

                              End

  

   END

 

 

Rgds

Kennedy


Viewing all articles
Browse latest Browse all 8644

Trending Articles