hii sunil ,
add this sp
IF @object_type= '22' AND @transaction_type in ('U')
BEGIN
IF EXISTS (select r1.u_[your approved quantity udf name ] from por1 r1
where r1.docentry= @list_of_cols_val_tab_del)
BEGIN
SELECT @Error = 1, @error_message = 'cant update approved quantity'
END
END