Functional Description
Purpose
This function determines if certain quantities in the Item Location table (F41021) are zero for a
specified Item and Branch/Plant. The quantities checked are: Quantity on Hand (PQOH), Quantity on PO
(PREQ), Quantity Soft Commit (PCOM), Quantity Hard Commit (HCOM), Quantity On Other 1 (OT1P), Quantity On
Other 2 (OT2P) and Quantity on Work Order (QOWO).
This function also calculates the Quantity on Order.
Setup Notes and Prerequisites
The Short Item Number (ITM), Branch/Plant (MCU), Location (LOCN) and Lot Number (LOTN) fields are
required parameters.
Technical Specification
This function retrieves the Item Location record for the keys passed in and determines if the above
mentioned quantities are zero. If so, the Quantities Zero Flag is set to '1'.
The Quantity on Order is calculated by adding Quantity on PO (PREQ) and Quantity on WO Receipt
(QWBO).
Edits:
If pqoh, preq, pcom, hcom, ot1p, ot2p and qowo are zero for an item and branch, set the Quantities
zero flag to '1'. Calculate the quantity on order by adding preq and qwbo and returning in TRQT.
Retrievals:
Retrieve the F41021 with the ITM, MCU, LOCN, LOTN passed.
Returns:
See Edits Section above.
^
D4100270 - Calculate Item Search Quantities
Parameters:
Data Item Data Structure DescriptionI/ORequired
ITMShortItemNumberIY
MCUBranchPlantIY
EV01SuppressErrorMessageIN
EV02QuantitiesZeroFlagON
DTAIErrorMessageIDON
TRQTQuantityOnOrderON
LOTNLotNumberIY
LOCNLocationIY
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
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
| ||||
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
| ||||
cSuppressErrorMessage | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cQuantitiesZeroFlag | EV02 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szErrorMessageID | DTAI | char | NONE | NONE |
A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or
| ||||
mnQuantityOnOrder | TRQT | MATH_NUMERIC | NONE | NONE |
A value that represents the available quantity, which might consist of the on-hand balance minus commitments, reservations, and
| ||||
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. | ||||
szLocation | LOCN | char | NONE | NONE |
The storage location from which goods will be moved. |
None |
F41021 Item Location File |