Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 9262

Regarding Sp with duplicate values...

$
0
0

hi..

At  Out Goinv Payment I Created  one  UDF field and i am entering values manully..

while adding  Duplicates should Not be Add.

I am using below sp but not working

Any  Information Plz inform me..

 

IF @OBJECT_TYPE = '46' AND (@TRANSACTION_TYPE = 'A' or @TRANSACTION_TYPE = 'U')

        BEGIN

        IF EXISTS(select t0.docnum from OVPM  t0

              where t0.docentry = @list_of_cols_val_tab_del and T0.U_Invoice IN (select ovpm.U_Invoice  from  OVPM where  ovpm.U_Invoice <>'' ))

         BEGIN

      

              SELECT @ERROR=1,@ERROR_MESSAGE='Some Duplicate Error at adding'

END

END


Viewing all articles
Browse latest Browse all 9262

Trending Articles



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