In Manual Issue window for work order - Bill of Material position the max. allowed Quantity is not checked.
This is only working in "Material issue window"
It's possible to execute the check with bsl WorkorderBoM/CheckMinMaxBom
Idea: Check quantity, if user change 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