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