In the Manual Issue window for Work order - Bill of Materials position, the maximum allowed quantity is not checked.
This only works in the "Material issue window".
It is possible to execute the check with BSL WorkorderBoM/CheckMinMaxBom.
Idea: Check quantity if the user changes the quantity.
mw_manuell_buchen.src
![]()
// ******* Event dw_1_item_menge_itemchanged ********
global function dw_1_item_menge_itemchanged
// Work order - Bill of Material position must be defined
if <dw_1.item.belnr_id.value> n> 0 and <dw_1.item.belpos_id.value> n> 0 and <dw_1.item.pos_id.value> n> 0 then
// Execute BSL function
instance bsl b
b.get=WorkorderBom/CheckMinMaxBom(<dw_1.item.belnr_id.value>,<dw_1.item.belpos_id.value>,&
<dw_1.item.pos_id.value>,<dw_1.item.pos_id.value>:<dw_1.item.menge.value,dbnum>,0,false)
// if locked, then set quantity to 0
if <b.Status> = locked then
dw_1.item.menge.setvalue=0
end if
destroy=b
return true
end global