VerifyItemInWorkFile

Verify Item In Work File

Minor Business Rule

Object Name: B4100200

Parent DLL: COPBASE

Location: Client/Server

Language: C

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.




^

Data Structure

D4100200 - Verify Item In Work File

Parameters:
Data Item Data Structure DescriptionI/ORequired

ITMShortItemNumber

MCUBranchPlant

EV01SuppressErrorMessage

EV02ErrorCode

LOCNLocation

LOTNLot

MODEMode



^

Parameter NameData ItemData TypeReq/OptI/O/Both
mnShortItemNumberITMMATH_NUMERICNONENONE

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

szBranchPlantMCUcharNONENONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

cSuppressErrorMessageEV01charNONENONE

An option that specifies the type of processing for an event.

cErrorCodeEV02charNONENONE

An option that specifies the type of processing for an event.

szLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szLotLOTNcharNONENONE

A number that identifies a lot or a serial number. A lot is a group of items with similar characteristics.

cModeMODEcharNONENONE

The processing mode used in Purchase Order Consolidator to signify when specific orders are being processed.

Related Functions

None

Related Tables

F41051 Average Cost Work file