1.Functional Description
1.1Purpose
This business function will calculate the Lead Time required for a given Item, Branch and Order
Quantity.
1.2Setup Notes and Prerequisites
None.
1.3Special Logic
None.
2.Technical Specifications
2.4Processing
Short Item and Branch must not be blanks.
1. Get Item Balance Manufacturing Data using input ITM and MCU.(Business function B4000920).
2. Get Manufacturing Constants using Input MCU as the key. If IAWRHR = 0 , IAWRHR = 8.
3. If IBMRPP = 'V' and IBLTPU <> 0
Get Time Basis UDC using 'TIMB' as Data Dictionary Item(Business Function X0005)
If no error
Wk Time Basis Ratio = StringtoNumeric(#UDL02)
Else
Wk Time Basis Ratio = 1.
Endif.
If IBSRNK <> 0
Get the Wk Qrder Quantity with Shrinkage using MCU,ITM,UORG and UOM with Business
function (B3100250).
Endif.
Wk Lead Time in Hours = (IBLTPU * Wk Order Qty with Shrinkage * IBTIMB)
If Wk Time Basis Ratio <> 0
Wk Lead Time in Hours = Wk Lead Time in Hours / Wk Time Basis Ratio
Endif
Wk Lead Time in Hours = Wk Lead Time in Hours + IBSETL + IBQUED.
Lead Time Days = Wk Lead Time in Hours / IAWRHR
Round the Lead Time Days to the Next Whole Number
Else
Lead Time Days = IBLTLV
Round the Lead Time Days to the Next Whole Number.
Endif
The Error Code and Lead Time Days are passed back to the calling program.
D3100290 - Calculate Order Lead Time
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szBranch | MCU | char | NONE | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
mnShortItem | ITM | MATH_NUMERIC | NONE | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
mnOrderQuantity | UORG | MATH_NUMERIC | NONE | NONE |
The quantity of units affected by this transaction. | ||||
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). | ||||
mnLeadtimeDays | LTLV | MATH_NUMERIC | NONE | NONE |
A value that represents the leadtime for an item at its assigned level in the production process, as defined on Plant Manufacturing Data.
| ||||
cErrorCode | ERRC | char | NONE | NONE |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
| ||||
cBackscheduleQueueMoveHrsFlag | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. |
B3100250 Calculate Shrinkage Quantity | ||||
B4000920 Get Item Branch Mfg Data | ||||
X0005 Get User Defined Codes |
F3009 Job Shop Manufacturing Constants |