1.Functional Description
1.1Purpose
This Business function calculates the Order Quantity with Shrinkage.
1.2Setup Notes and Prerequisites
None.
1.3Special Logic
None.
2.Technical Specifications
2.4Processing
1. Read the Item Balance row (F4102) using ITM and MMCU as the key.
2. Read the Item Master row (F4101) using ITM as the key.
3. If row is found and IBSRNK <> 0
If IBSRKF = '%'
Output Quantity = Input Quantity * IBSRNK/100
Else
Convert IBSRNK to Input UOM.
Output Quantity = Input Quantity + Converted IBSRNK Quantity.
End
If IMSNS = 'R'
Round the Output Quantity.
Endif.
Else
Output Quantity = Input Quantity.
Endif.
The Output Quantity is returned.
Note:
Use Business Functions for getting the Item Master, Item Balance and Unit of Measure Conversions.
^
D3100250 - Calculate Shrinkage Quantity
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szCostCenter | 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
| ||||
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
| ||||
mnInputQuantity | UORG | MATH_NUMERIC | NONE | NONE |
The quantity of units affected by this transaction. | ||||
mnOutputQuantity | TRQT | MATH_NUMERIC | NONE | NONE |
A value that represents the available quantity, which might consist of the on-hand balance minus commitments, reservations, and
| ||||
szUnitOfMeasure | UM | char | NONE | NONE |
A user defined code (00/UM) that identifies the unit of measurement for an amount or quantity. For example, it can represent a barrel, box,
|
B4000460 Free Ptr To Data Structure | ||||
B4000520 Get Item UoM Conversion Factor | ||||
B4000920 Get Item Branch Mfg Data | ||||
X4101 Validate and Retrieve Item Master |
F4101 Item Master | ||||
F4102 Item Branch File |