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

Re: Production order - component line row delete restrict

$
0
0

Hi,

 

1. To restrict user to delete components from production order, use Mr.Gordon's reply. But you need to add one bracket.

 

IF @transaction_type IN ('A', 'U')AND @object_type in ('202')

 

BEGIN

 

If exists (SELECT T0.DocEntry FROM owor T0

 

inner join itt1 t2 on t2.father = T0.Itemcode

 

where t0.DocEntry =@list_of_cols_val_tab_del AND t2.code not in (SELECT T1.itemcode FROM wor1 t1 where t0.docentry = t1.docentry))

 

Begin

 

SET @error = '202'

 

SET @error_message = N'order can not be added if not match with BOM.'

 

End

 

END

 

2. To view deleted rows for a production order, Go to Tools---->Change log. It will show difference.

 

Thanks & Regards,

Nagarajan


Viewing all articles
Browse latest Browse all 9080

Trending Articles