Hi Gandhi
If the Production status is not changed in to release we cant issue components so I have given the status =R condition. I hope this will work.
if @object_type='202' and @transaction_type='A' or @transaction_type='u'
begin
if exists(select 1 from OWOR a where a.U_Reviewed='no' and a.Status='R' and a.DocEntry=@list_of_cols_val_tab_del)
begin
set @error='111'
set @error_message='Review the production order'
end
end
Regards
Srinivas.