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

Re: Validation on UDF

$
0
0

Hi Bhusan..

 

I think the above TNSP will allow the user to change the value in the UDF..

 

 

Try this

 

IF @transaction_type IN (N'U') AND  (@Object_type = N'18')

begin

 

 

if exists(select T0.docentry from OPCH T0  INNER JOIN OUSR T1 ON T0.UserSign = T1.USERID

where T0.docentry = @list_of_cols_val_tab_del and

T0.[U_InvoicType] <> ( select [U_InvoicType] from opch where docentry=t0.docentry )  )

begin

SET @error = 14

SET @error_message = N'Cannot Update UDF Invoice Type'

end

end

 

Regards

Kennedy


Viewing all articles
Browse latest Browse all 8927

Trending Articles



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