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

Re: How can i restrict to punch GRPO/AP Invoice without entering Vendor ref no

$
0
0

Hi,

 

There are two options:

 

1. Transaction notification

 

2. Approval procedure

 

Try this stored procedure for  GRPO:

 

if @object_type  = '20' and @transaction_type IN ('A', 'U')

Begin

  if  Exists(SELECT T0.docentry FROM OPDN T0 WHERE

   (T0.[NumAtCard] is null or T0.[NumAtCard] = '' ) AND T0.[DocEntry]=@list_of_cols_val_tab_del)

 

  Begin

  Set @error = -1000

  Set @error_message = 'Please add vendor reference number'

  End

End

 

For AP invoice:

 

if @object_type  = '18' and @transaction_type IN ('A', 'U')

Begin

  if  Exists(SELECT T0.docentry FROM OPDN T0 WHERE

   (T0.[NumAtCard] is null or T0.[NumAtCard] = '' ) AND T0.[DocEntry]=@list_of_cols_val_tab_del)

 

  Begin

  Set @error = -1000

  Set @error_message = 'Please add vendor reference number'

  End

End

 

Thanks & Regards,

Nagarajan


Viewing all articles
Browse latest Browse all 10449


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