1.Functional Description
1.1Purpose
The purpose of the Select Routing Instruction BsFn is to select the Routing Instruction that will be
used by the application or to indicate that the Routing selection window should be displayed if
multiple Routing Instructions exist. If the requested routing instructions exists or only one alternative
routing instruction exists, the Routing Instruction Information will be returned and indicators will
show only one routing selected. If more than one alternative Instruction exists, indicators will show
that the Routing Instruction Selection Window should be called.
1.2Setup Notes and Prerequisites
This BsFn should be called when the find button is pressed.
The Requested Quantity must be converted to the item primary UOM prior to calling this BsFn. Use
the BsFn ConvertBatchQuantity to convert the requested quantity from display to file/primary UOM.
Pass in one of the four following combinations of key fields (Pass in DS Branch, DS Item Number, DS
Requested Quantity, and/or DS Type of Routing).
MMCU, KIT, TRT
MMCU, KIT, BQTY
MMCU, KIT
be returned.
The Batch Quantity of the record located is in the item primary UOM. After calling this BsFn,
convert the batch quantity to display UOM using the BsFn ConvertBatchQuantity.
If Instructions Found is equal to '2', call the Routing Instruction Selection Window (P3003W).
Suppress the FIND in the ER if either cancel is pressed in the Routing Instruction Selection Window
or Instructions Found='0' is returned from the Select Routing Instruction BsFn.
1.3Special Logic
2.Technical Specifications
2.4Processing
0. initialize DS RequestedInstructionFound = '0'
1. If DS Requested Quantity is NOT equal to zero and DS Type of Routing is NOT equal to blank
DS Batch Qty= F3003 Batch Qty (BQTY)
DS Unit of Measure= F3003 Unit of Measure (UOM)
DS Requested Instruction Found= '1'
DS Instruction Found= '1'
(return)
KIT, and TRT. Determine if either one, multiple, or no Routing Instructions exist.
TRT = DS TypeOfRouting, and BQTY is not = the BQTY of the previously read record, then
multiple routing instructions exits.)
1.1.2.1. If one Routing Instruction is found, return the following information:
DS Batch Qty= F3003 Batch Qty (BQTY)
DS Unit of Measure= F3003 Unit of Measure (UOM)
DS Instructions Found= '1'
Found='0', DS Instructions Found = '0' and return.
2. If the requested quantity is equal to zero and the Type of Routing is NOT equal to blank.
or no routing instructions exist.
DS TypeOfRouting, and BQTY is not = the BQTY of the previously read record, then multiple
routing instructions exits.)
2.1.1. If one Routing Instruction is located, return the following information:
DS Batch Qty= F3003 Batch Qty (BQTY)
DS Unit of Measure= F3003 Unit of Measure (UOM)
DS Instructions Found= '1'
'1'.
Instructions Found = '0' and return.
3. If the requested quantity is NOT equal to zero and the Type of Routing is equal to blank,
or no routing instructions exist.
either TRT or BQTY is not equal to the value of a previously read record, then multiple routing
instructions exits.)
3.1.1. If one Routing Instruction is located, return the following information:
DS Unit of Measure= F3003 Unit of Measure (UOM)
DS Type of Routing = F3003 Type of Routing (TRT)
DS Requested Instruction Found= '1'
DS Instructions Found= '1'
DS Type of Routing = ' '
and KIT.
DS Unit of Measure= F3003 Unit of Measure (UOM)
DS Type of Routing = F3003 Type of Routing (TRT)
DS Requested Instruction Found= '1'
DS Instructions Found= '1'
DS Instructions Found= '2'
Found='0', DS Instructions Found = '0' and return.
4. If the requested quantity is equal to zero and the Type of Routing is equal to blank,
routing instructions exist.
either TRT or BQTY is not equal to the value of a previously read record, then multiple routing
instructions exits.)
4.1.1. If one Routing Instruction is located, return the following information:
DS Batch Qty= F3003 Batch Qty (BQTY)
DS Unit of Measure= F3003 Unit of Measure (UOM)
DS Requested Instruction Found= '1'
DS Instructions Found= '1'
DS Instructions Found = '0' and return.
D3001000 - Select Routing Instruction
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szBranch | MMCU | char | NONE | NONE |
A code that represents a high-level business unit. Use this code to refer to a branch or plant that might have departments or jobs, which
| ||||
mnItemNumber | KIT | MATH_NUMERIC | NONE | NONE |
The system provides for three separate item numbers.
1. Item Number (short) - An eight-digit, computer assigned, completely
| ||||
mnRequestedQuantity | RQTE1 | MATH_NUMERIC | NONE | NONE |
The number of parent items that you want to process. The system calculates lower level values in quantity per the number of parent items
| ||||
szTypeOfRouting | TRT | char | NONE | NONE |
A user defined code (40/TR) that indicates the type of routing. You can define different types of routing instructions for different uses.
For
| ||||
cRequestedInstructionFound | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cInstructionFound | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
mnBatchQuantity | BQTY | MATH_NUMERIC | NONE | NONE |
The quantity of finished units that you expect this bill of material or routing to produce. You can specify varying quantities of components
| ||||
szUnitOfMeasure | UOM | char | NONE | NONE |
A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box). |
None |
F3003 Routing Master File |