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

Re: Restriction for GRN not to Add more than1000 in Document total

$
0
0

Hi

 

Try This

 

If @object_type='20' and @transaction_type in ('A','u')

BEGIN

If Exists (select * from PDN1 r inner join opdn r1 on r.docentry=r1.docentry

where isnull(r.Baseref,'') ='' and r1.DocType ='I' and r1.doctotal > 1000  and r1.DocEntry = @list_of_cols_val_tab_del   )

BEGIN

Select @error = -1,

@error_message = 'GRPO without PO is not allowed'

End

End

 

With Regards

 

Balaji Sampath


Viewing all articles
Browse latest Browse all 8944

Trending Articles



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