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