Functional Description
Purpose
This function retrieves the quantity available for the Item, Branch/Plant and Lot Number retrieved.
This function will call the C4102A function based on wheter the Quantity On Hold flag for User Defined
Availablity is a '-' or not for the branch.
Setup Notes and Prerequisites
The Short Item Number (ITM), Branch/Plant (MCU) and Lot Number (LOTN) are required parameters.
Special Logic
Technical Specification
This function calls Calculate Quantity Available (B4100010) and the quantity available is returned.
Edits:
1.) Call GetBranchPlant with the Branch sent in
If the field DA01 (quantity on hold) from the branch plant record is a
'-' return zeros in Quantity Available
Else
Call CalculateQuantityAvailable (C4102A.C) passing the following:
ItemNumber(ITM)
Branch(MCU)
Lot(LOTN)
LotStatus(LOTS)
The QuantityAvailable will be passed back.
Retrievals:
Returns:
1.) Quantity Available
D4100160 - Get Quantity Available
Parameters:
Data Item Data Structure DescriptionI/ORequired
MCUBranchPlant
ITMIdentifierShortItem
LOTNLot
LOCNLocation
LOTSLotStatusCode
QAVALQuantityAvailable
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szBranchPlant | 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
| ||||
mnShortItemNumber | 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
| ||||
szLotNumber | LOTN | char | NONE | NONE |
A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics. | ||||
cLotStatus | 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
| ||||
mnQuantityAvailable | 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
| ||||
szLocation | LOCN | char | NONE | NONE |
The storage location from which goods will be moved. |
B4100010 Calculate Qty Available |
F41021 Item Location File |