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

Re: Aprroval for dupicate check # for an account

$
0
0

Hi Jonathan Brotto

 

Try This

 

IF @object_type = '24' AND @transaction_type = 'A'

BEGIN

If exists ( SELECT  R1.CheckNum
FROM RCT1 R1

INNER JOIN ORCT R0 ON R1.DocNum = R0.DocEntry

WHERE R0.DocEntry = @list_of_cols_val_tab_del

and R1.CheckNum in ( select CheckNum FROM RCT1 ) )

BEGIN

SELECT @error = 1

Select @error_message='Check number Duplicate'

END

END

 

 

Regards

Kennedy


Viewing all articles
Browse latest Browse all 9091

Trending Articles



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