GetLotMasterByLotNumber

Get Lot Master By Lot Number

Minor Business Rule

Object Name: B4000610

Parent DLL: COPBASE

Location: Client/Server

Language: C

This function gets a record from the Lot Master Table (F4108) using the the following key strucutre:  Lot Number, Short Item Number, an 
Branch Plant. You must always pass a Lot Number to the function. However, the Short Item Number and Branch Plant are optional.  This function 

returns an address pointer to the row fetched int he F4108 Table.  The address pointer idF4108LongRowPtr must be deallocated.  


NOTE1:  If you are calling this from an application, you must have a generic long hidden field to hold the pointer that is returned from this 

function.  

NOTE2:  If you called this function from an application, you must call the business function FREEPTRTODATASTRUCTURE.  Pass the value 

in the hidden field to FreePtrToDataStructure. 

NOTE3:  If you are calling this function from another business function, you then have a choice either to call FreePtrToDataStructure in your 

application or in the business function.

^

Data Structure

D4000610 - Get Lot Master By Lot Number

Parameter NameData ItemData TypeReq/OptI/O/Both
szLotLOTNcharNONENONE

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

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.

idF4108LongRowPtrGENLNGIDNONENONE

General purpose ID variable.

mnIndexCDLMATH_NUMERICNONENONE

The length of the user defined code. It cannot be greater than 10 characters.

mnKeysCDLMATH_NUMERICNONENONE

The length of the user defined code. It cannot be greater than 10 characters.

cCallTypeEV01charNONENONE

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

cReturnF4108PointerEV02charNONENONE

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

cErrorCodeERRcharNONENONE

The Data Field Error Code field is simply a generic data field to pass an error condition flag.  This field is one of the fields that make up the 
external parameter data structure of the Data Dictionary Server.

Related Functions

None

Related Tables

F4108 Lot Master