Functional Description
Purpose
Verify that there are no records in the Average Cost Work File (F41051) for the Item, Branch,
Location, and Lot combination passed in. If a record exist in F41051, then an Error Code is assigned a (1),
otherwise is assigned a (0). MODE is (1): use Item and Branch as the keys to verify if the record
exist. MODE is (2): use Item, Branch, Location, and Lot to verify if the record exist. If the
SuppressErrorMessage is equal to (1), set an error message on when record exists. This function should be
called prior to deleting an Item Branch record
Setup Notes and Prerequisites
The From Short Item Number (ITM) and To Short Item Number (ITM) are required parameters. The Branch
parameters are optional.
Special Logic
Technical Specification
Edits:
Need to do a fetch to the Item Cost Work file (F41051) by Item Number and Branch if the mode is equal
to a 1 or by Item, Branch, Location and Lot if the mode is equal to a 2. If a record exist move a
'1' Error Code. If there is not a record move a ''o Error Code. If SuppressErrorMessage equal to a 1
set on error message '3679'
Retrievals:
None
Returns:
Error Code equal to Y if record exist, N if it does not.
^
D4100200 - Verify Item In Work File
Parameters:
Data Item Data Structure DescriptionI/ORequired
ITMShortItemNumber
MCUBranchPlant
EV01SuppressErrorMessage
EV02ErrorCode
LOCNLocation
LOTNLot
MODEMode
^
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. | ||||
cErrorCode | EV02 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szLocation | LOCN | char | NONE | NONE |
The storage location from which goods will be moved. | ||||
szLot | LOTN | char | NONE | NONE |
A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics. | ||||
cMode | MODE | char | NONE | NONE |
The processing mode used in Purchase Order Consolidator to signify when specific orders are being processed. |
None |
F41051 Average Cost Work file |