How to avoid work order close without receipt when last operation is closed.
- Set "Close assembly automatically" to Yes under Work Order Pos. close,
- Close operation sequence automatically to yes under FDC, and
- Post finished parts according to “not automatically” setting in configuration wizard.
When you complete the last operation with planned or higher quantity, the routing position closes and the work order is closed by Beas without receipt quantity.
As per the setup, the system behavior is correct. If we set "close assembly automatically" to yes, the system will close the work order with the last routing operation.
We recommend to use the below setup/process with customized script.
Set "close assembly automatically" option to No.
The system will not close the work order position on the last operation time receipt with full/higher quantity. It will close only the routing position.
The “Close” check box in Goods receipt form will not be enabled, either.
Go to Goods receipt window inside the work order:
Press Ctrl+N+U, the script form will open. Copy and paste the below script, and save
// ******* Event dw_1_item_menge_itemchanged ********
// Created 2020/11/16 by Jesus
global function dw_1_item_menge_itemchanged
select case when <menge,num(6)> + <value,num(6)> >= beas_ftpos.menge then 'J' else 'N' end from beas_ftpos where belnr_id=<belnr_id> and belpos_id=<belpos_id>
This script will enable the “Close” check box automatically, when user enters quantity equal to or greater than the planned quantity.