|
|
e_itemcode
|
Item number
|
e_cardcode
|
Business partner
|
e_fromwhscode
|
Source warehouse, e.g.
- QC warehouse at transfer
- Warehouse from Sales order
- Warehouse from related Bill of Material position, if order related assembly
|
e_doctype
|
The document type:
WONEW -> Work order Main assembly
WOSUB -> Work order Sub assembly
|
You can define the following variables:
|
|
|
rule.whscode
|
x
|
Target warehouse
|
rule.bincode
|
x
|
Bin location
|
rule.description
|
|
Description
|
rule.onlypostout
|
x
|
For QC-transfer:1 = only issue, 0 = transfer (eg. at QC order - transfer)
|
rule.wms_prodline
|
x
|
Production line (only if WMS is installed)
|
Example:
Use always same warehouse as target warehouse
// in rule.whscode the current warehouse is saved. Overwrite self, then the system take it.
setvar=rule.whscode=<e_fromwhscode>
For sub-assembly always use the warehouse defined in Bill of Materials
if <e_doctype> = WOSUB then
setvar=rule.whscode=<e_fromwhscode>
end if
As warehouse, always use the origin warehouse of the main assembly
if <e_doctype> = WONEW then
setvar=rule.whscode=<e_fromwhscode>
end if
Transfer always to warehouse 02-005, if linked to business partner C001
if <e_cardcode> = C001 then
setvar=rule.whscode=02-005
end if
If a work order is created from a sales order, use the warehouse stored at the moment
// 139 = customer order
// item 38 = the grid, col 24 = warehouse field
if <sys_formtypeex> = 139 and <itemuid> = 38 then
setvar=rule.whscode=<item.38.col.24>
end if
If a work order is created from a sales order to production order screen, use the warehouse stored at the moment
if <form.name> = fert_kdauftrag_zu_fertauftrag then
setvar=rule.whscode=<e_fromwhscode>
end if
|