When you create a work order using sales order the warehouse will define on below sequence
The system will not pick the warehouse from sales order line
- Warehouse Rule defined in inventory tab
- Predefined warehouse
- Primary warehouse from the Item Master Data
If you need Sales order line warehouse to update on work order, the below process and script will help to overcome this behavior and consider the sales order row warehouse on work order creation process
Create warehouse rule with below script and map to Item master data
We need separate script of each process below on warehouse rule
- Creating work order from Sales order line
- Creating work order form Sales order to work order form
- Creating work order from MRP Make tab
Script:
//Direct sales order//
if <sys_formtypeex> = 139 and <itemuid> = 38 then
setvar=rule.whscode=<e_fromwhscode>
end if
// sales order to production order form//
if <form.name> = fert_kdauftrag_zu_fertauftrag_bgrp then
setvar=rule.whscode=<e_fromwhscode>
end if
//MRP Make tab//
if <form.name> = mrp_view_masterrahmen then
setvar=rule.whscode=<dw_3.item.whscode.value>
return
end if
Using above warehouse rule with script will copy the warehouse from sale order line
Same way will work on other processes
Comments
0 comments
Please sign in to leave a comment.