Functional Description
Purpose
This function calculates the Quantity Available and Quantity Committed, given the user defined
availability.
Setup Notes and Prerequisites
The Short Item Number (ITM) and Branch/Plant (MCU) must be passed in, as well as the user defined
availability from the F41001. Use business function GetUserDefinedAvailability (B4100010) to retrieve
these fields.
Special Logic
Technical Specification
This function calculates Quantity Available and Quantity Committed. It calls GetSafetyStock
(B4100010) to retrieve Safety Stock, Potency Control and Grade Control from the Item Branch table (F4102). If
either the Lot or Potency control is set to 'Y', or the Lot Number is not blank, the Lot Master table
(F4108) will be retrieved. The Lot Potency (LOTP), Lot Grade (LOTG) and Lot Expiration Date (MMEJ)
will be retrieved.
The From and Thru Lots, Grade, Potency and Date ranges will
be compared to see how they compare to the information from the Lot Master. If the record passed in
is within the range, the Quantity Available and Quantity Committed fields are calculated based upon
the user defined availability.
Quantity Available is calculated as follows:
Quantities Added (DAxx = '+')
DA08:PO Receipt (LIPREQ)
DA09:WO Receipt (LIQWBO)
DA10:PO Other 1 (LIOT1A)
DA12:In Inspection (LIQTIN)
DA13:In Transit (LIQTTR)
DA14:In Operation 1 (LIQTO1)
DA15:In Operation 2 (LIQTO2)
Quantities Subtracted (DAxx = '-')
DA01:Soft Commit (LIPCOM)
DA02:SO Hard Commit (LIHCOM)
DA03:Future Commit (LIFCOM)
DA04:WO Hard Commit (LIQOWO)
DA05:SO Other 1 (LIOT1P)
DA06:SO Other 2 (LIOT2P)
DA07:Held (LIPQOH - Used only if F41021 Lot Status is not equal to ' ')
availability. The calculation is as follows:
Quantities Added
DA01:Soft Commit (LIPCOM)
DA02:SO Hard Commit (LIHCOM)
DA03:Future Commit (LIFCOM)
DA04:WO Hard Commit (LIQOWO)
D4100010C - Calculate Quantity Available
Parameters:
Data Item Data Structure DescriptionI/ORequired
MCUBranch/PlantIY
ITMShort Item NumberIY
LOCNLocationIN
LOTNLot NumberIN
PQOHQty On HandIN
PREQQty PO ReceiptIN
PBCKQty On BackorderIN
PCOMQty Soft CommitIN
HCOMQty Hard CommitIN
FCOMQty Future CommitIN
QOWOQty WO Hard CommitIN
QTTRQty In TransitIN
QTINQty In InspectionIN
QTO1Qty In Operation 1IN
QTO2Qty In Operation 2IN
OT1PSO Other 1IN
OT2PSO Other 2IN
OT1APO Other 1IN
SAFESafety StockI/ON
QCOMMQuantity CommittedO
QWBOQty WO ReceiptO
QROUTQty In RoutingO
QAVALQty AvailableO
PBINPrimary BinIN
LOTSLot StatusI/ON
ERRCReturn CodeO
OT1YPotency ControlI/ON
OT2YGrade ControlI/ON
FRMPFrom PotencyI/ON
THRPThru PotencyI/ON
FRGDFrom GradeI/ON
THGDThru GradeI/ON
EXDPDays Before ExpirationIN
LOTGLot GradeI/ON
LOTPLot PotencyI/ON
MMEJExpiration DateI/ON
UOM1Primary UOMIY
UOM2Secondary UOMIY
DA01Soft CommitIY
DA02Hard CommitIY
DA03Future CommitIY
DA04WO Hard CommitIY
DA05SO Other 1IY
DA06SO Other 2IY
DA07On HoldIY
DA08Purchase OrderIY
DA09Work OrderIY
DA10Other POIY
DA11Safety StockIY
DA12In InspectionIY
DA13TransitIY
DA14In Operation 1IY
DA15Operation 2IY
CONVConversion FactorIN
TFLAStandardUomConversionIY
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnIdentifiershortitem_1 | ITM | MATH_NUMERIC | NONE | NONE |
Data Item ab Data Structure Descriptionab ab I/Oab Requiredab Notesab
| ||||
szBranch_2 | 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
| ||||
szLot_1 | LOTN | char | NONE | NONE |
A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics. | ||||
szLocation_1 | LOCN | char | NONE | NONE |
The storage location from which goods will be moved. | ||||
cLotStatusCode_1 | LOTS | char | NONE | NONE |
A user defined code (41/L) that indicates the status of the lot. If you leave this field blank, it indicates that the lot is approved. All other codes
| ||||
cPrimaryBin_1 | PBIN | char | NONE | NONE |
A code that indicates whether this is the primary or secondary location for this item within this stocking location. Valid values are:
P Primary
| ||||
mnSoftCommitSOWO_1 | PCOM | MATH_NUMERIC | NONE | NONE |
The number of units soft committed to sales orders or work orders in the primary units of measure. | ||||
mnHardCommitSalesOrder_1 | HCOM | MATH_NUMERIC | NONE | NONE |
The number of units committed to a specific location and lot. | ||||
mnFutureCommit_1 | FCOM | MATH_NUMERIC | NONE | NONE |
The quantity on sales order whose requested shipment date is beyond the standard commitment period that has been specified in the
| ||||
mnHardCommitWorkOrder_1 | QOWO | MATH_NUMERIC | NONE | NONE |
The number of units hard committed to work orders in the primary unit of measure. | ||||
mnOnSalesOrderOther1_1 | OT1P | MATH_NUMERIC | NONE | NONE |
The first of two quantities that can be specified as additional offsets (subtractions from on-hand) in the determination of quantities available
| ||||
mnOnSalesOrderOther2_1 | OT2P | MATH_NUMERIC | NONE | NONE |
The second of two quantities that can be specified as additional offsets (subtractions from on-hand) in the determination of quantities
| ||||
mnOnHand_1 | PQOH | MATH_NUMERIC | NONE | NONE |
The number of units that are physically in stock. The system displays the quantity on-hand in the primary unit of measure. | ||||
mnOnPurchaseOrder_1 | PREQ | MATH_NUMERIC | NONE | NONE |
The number of units specified on the purchase order in primary units of measure. | ||||
mnOnWorkOrderReceipt_1 | QWBO | MATH_NUMERIC | NONE | NONE |
The number of units on work orders in primary units of measure. | ||||
mnOnPurchaseOrderOther1_1 | OT1A | MATH_NUMERIC | NONE | NONE |
The quantity that appears on documents such as bid requests, which are not formal commitments to buy on the part of your organization. | ||||
mnInInspection_1 | QTIN | MATH_NUMERIC | NONE | NONE |
The quantity currently being inspected. This quantity has been received, but is not considered on hand. | ||||
mnInTransit_1 | QTTR | MATH_NUMERIC | NONE | NONE |
The quantity currently in transit from the supplier. | ||||
mnInOperation1_1 | QT01 | MATH_NUMERIC | NONE | NONE |
Quantity field in the Batch Receiver Destination Quantity table (F4012Z) that is used to process multiple ship to locations. This function is
| ||||
mnInOperation2_1 | QT02 | MATH_NUMERIC | NONE | NONE |
Quantity field in the Batch Receiver File - Destination Quantity (F4012Z) that is used to process multiple ship to locations. This is only a
| ||||
mnFromPotency_2 | FRMP | MATH_NUMERIC | NONE | NONE |
A number that indicates the minimum potency or percentage of active ingredients acceptable for an item.
The system displays a warning
| ||||
mnThruPotency_2 | THRP | MATH_NUMERIC | NONE | NONE |
A number that indicates the maximum potency or percentage of active ingredients that is acceptable for an item.
The system displays a
| ||||
szFromGrade_2 | FRGD | char | NONE | NONE |
A user defined code (40/LG) that indicates the minimum grade that is acceptable for an item.
The system displays a warning message if
| ||||
szThruGrade_2 | THGD | char | NONE | NONE |
A user defined code (40/LG) that indicates the maximum grade that is acceptable for an item.
The system displays a warning message if
| ||||
mnDaysBeforeExpiration_1 | EXDP | MATH_NUMERIC | NONE | NONE |
The number of days allowed before expiration for an item where it still can be used or sold to a specific customer. When negative, this
| ||||
mnAvailable_1 | QAVAL | MATH_NUMERIC | NONE | NONE |
A number that indicates the quantity that is available.
For example, the available quantity might consist of the on-hand quantity minus
| ||||
mnCommitted_1 | QCOMM | MATH_NUMERIC | NONE | NONE |
The total quantity that is committed to a specific location. The total quantity is the sum of all quantities that have been sold or committed
| ||||
mnSafetyStock_2 | SAFE | MATH_NUMERIC | NONE | NONE |
The quantity of stock kept on hand to cover high-side variations in demand. | ||||
cPotencyControl_2 | OT1Y | char | NONE | NONE |
A code that indicates whether you control the item by potency. | ||||
cGradeControl_2 | OT2Y | char | NONE | NONE |
A code that indicates whether you control the item by grade. | ||||
szLotGrade_1 | LOTG | char | NONE | NONE |
A code that indicates the grade of a lot. The grade is used to indicate the quality of the lot. Examples include the following:
A1 Premium
| ||||
mnLotPotency_1 | LOTP | MATH_NUMERIC | NONE | NONE |
A code that indicates the potency of the lot expressed as a percentage of active or useful material (for example, the percentage of alcohol
| ||||
jdExpirationDate_1 | MMEJ | JDEDATE | NONE | NONE |
The date on which a lot of items expires.
The system automatically enters this date if you have specified the shelf life days for the item on
| ||||
mnInRouting_1 | QROUT | MATH_NUMERIC | NONE | NONE |
The total number of items that are in route. The total is the sum of all quantities that are considered to be in transit but are not presently on
| ||||
mnOnReceipt_1 | QOREC | MATH_NUMERIC | NONE | NONE |
The total number of items that are on receipt for a specific location. The total is the sum of all quantities of an item that are on order and in
| ||||
mnOnBackOrder_1 | PBCK | MATH_NUMERIC | NONE | NONE |
The number of units backordered in primary units of measure. | ||||
cReturnCode_1 | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szPrimaryUnitOfMeasure | UOM1 | char | NONE | NONE |
A user defined code (00/UM) that identifies the unit of measure that the system uses to express the quantity of an item, for example, EA
| ||||
szSecondaryUnitOfMeasure | UOM2 | char | NONE | NONE |
A user defined code (00/UM) that indicates an alternate unit of measure for the item. | ||||
cUDQtySoftCommit | DA01 | char | NONE | NONE |
Code telling the system whether the number of units soft committed to sales orders or work orders should be included in the item availability
| ||||
cUDQtySOHardCommit | DA02 | char | NONE | NONE |
Code telling the system whether the number of units hard committed to a specific location and lot for sales orders is included in the item
| ||||
cUDQtyFutureCommit | DA03 | char | NONE | NONE |
Code telling the system to include the quantity on any sales order whose requested shipment date is beyond the specific commitment
| ||||
cUDQtyWOHardCommit | DA04 | char | NONE | NONE |
Code telling the system whether the number of units hard committed to a specific location and lot for work orders is included in the item
| ||||
cUDQtySOOther1 | DA05 | char | NONE | NONE |
Code indicating whether the system includes the quantity specified as an additional reduction in the item availability calculation. Valid
| ||||
cUDQtySOOther2 | DA06 | char | NONE | NONE |
Code indicating whether the system includes this quantity as an additional reduction in the item availablity calculation. Valid codes
| ||||
cUDQtyOnHold | DA07 | char | NONE | NONE |
Code telling the system to include the number of units on hold in the item availability calculation. Valid codes are:
Blank No effect on the
| ||||
cUDQtyPOReceipts | DA08 | char | NONE | NONE |
Code telling the system whether to include the number of units on purchase orders in the item availability calculation. Valid codes are:
| ||||
cUDQtyWOReceipts | DA09 | char | NONE | NONE |
Code telling the system to include the number of units on work orders in the item availability calculation. Valid codes are:
Blank No effect on
| ||||
cUDQtyPOOther1 | DA10 | char | NONE | NONE |
Code indicating whether the system includes the number of units on other purchase orders in the item availability calculation. Valid codes
| ||||
cUDQtySafetyStock | DA11 | char | NONE | NONE |
Code indicating whether the system includes the number of units reserved as safety stock in the item availability calculation. Valid codes
| ||||
cUDQtyInInspection | DA12 | char | NONE | NONE |
Code telling the system to include the number of units in inspection in the item availability calculation. Valid codes are:
Blank No effect on
| ||||
cUDQtyInTransit | DA13 | char | NONE | NONE |
Code telling the system to include the number of units in transit in the item availability calculation. Valid codes are:
Blank No effect on the
| ||||
cUDQtyInOperation1 | DA14 | char | NONE | NONE |
Code telling the system to include the number of units in one operation of the receipt routing process in the item availability calculation. You
| ||||
cUDQtyInOperation2 | DA15 | char | NONE | NONE |
Code telling the system to include the number of units in one operation of the receipt routing process in the item availability calculation. You
| ||||
mnConversionFactor | CONV | MATH_NUMERIC | NONE | NONE |
The factor that the system uses to convert one unit of measure to another unit of measure. | ||||
szStandardUOMFlag | TFLA | char | NONE | NONE |
From F4101 (Item Master)ab
| ||||
mnProjectHardCommit | PJCM | MATH_NUMERIC | OPT | NONE |
The number of units committed to a specified location and lot for a project. |
B4000420 Analyze Grade Range. | ||||
B4000430 Analyze Potency Range | ||||
B4000520 Get Item UoM Conversion Factor |
F4102 Item Branch File | ||||
F4108 Lot Master |