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

Re: How to Block Sales in Multiple Currency at Row Level

$
0
0

Hi,

 

Yes possible by SPTN. Try this:

 

 

IF @transaction_type in ('A') AND (@OBJECT_TYPE='17')

 

BEGIN

 

IF  exists (SELECT t0.docentry FROM ORDR T0  INNER JOIN RDR1 T1 ON
T0.DocEntry = T1.DocEntry WHERE T0.[DocCur] = T1.[Currency] and
t0.docentry =  @list_of_cols_val_tab_del )

 

Begin

 

SET @error = 123

 

SET @error_message = 'Row currency is not same as document
currency'

 

End

End

 

Thanks & Regards,

Nagarajan


Viewing all articles
Browse latest Browse all 8667

Trending Articles



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