F4602CalculateQtyAvailInUOMLevel

F4602 Select Quantity and UOM Level

Major Business Rule

Object Name: B4600390

Parent DLL: CWARE

Location: Client/Server

Language: C

Function Descripiton:
F4602 Calculate Quantity Available in UOM Level 


Purpose:


The purpose of this function is to calculate the quantity of item that is available per the item's 

UOM levels.  The quantity of the item that is hard committed and/or out bound is subtracted from the 

quantity of the item that is on hand,  resulting in the quantity available.


Technical Specifications:

Parameters are   LPBHVRCOM

                       LPVOID

                       LPDSD4600390B

^

Data Structure

D4600390B - F4602 Calculate Quantity Available In UOM Level

Parameter NameData ItemData TypeReq/OptI/O/Both
szInstructionUOMUOMcharNONENONE

A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).

szInstructionUOMGroupUMGPcharNONENONE

A code (system 46/type UG) that identifies a group of units of measure that you want to process as one for putaway, picking, and 
replenishment transactions. You use unit of measure groups to set up movement instructions for putaway,picking, or replenishment.

szUOMLevel1UML1charNONENONE

The item's level 1 unit of measure. You use Unit of Measure Conversion Information (P41002) to define an item's unit of measure structure. 
You define the largest unit of measure in the structure as the level 1 unit of measure. The smallest unit of measure, which is also the primary unit 
of measure, is the highest level in the structure. For example, a unit of measure structure could be as follows:    Level Unit of Measure    1       
Pallet    2       Box, where 10 boxes equal 1 pallet    3       Case, where 5 cases equal 1 box    4       Interpack, where 8 interpacks equal 1 case    5       
Each, where 10 eaches equal 1 interpack  In this example, the level 1 unit of measure is a pallet, and the level 5 unit of measure is an each, 
which is the primary unit of measure. You can have five levels in an item's unit of measure structure.

szUOMLevel2UML2charNONENONE

The item's level 2 unit of measure. You use Unit of Measure Conversion Information (P41002) to define an item's unit of measure structure. 
You define the largest unit of measure in the structure as the level 1 unit of measure. The smallest unit of measure, which is also the primary unit 
of measure, is the highest level in the structure. For example, a unit of measure structure could be as follows:    Level Unit of Measure    1       
Pallet    2       Box, where 10 boxes equal 1 pallet    3       Case, where 5 cases equal 1 box    4       Interpack, where 8 interpacks equal 1 case    5       
Each, where 10 eaches equal 1 interpack  In this example, the level 1 unit of measure is a pallet, and the level 5 unit of measure is an each, 
which is the primary unit of measure. You can have five levels in an item's unit of measure structure.

szUOMLevel3UML3charNONENONE

The item's level 3 unit of measure. You use Unit of Measure Conversion Information (P41002) to define an item's unit of measure structure. 
You define the largest unit of measure in the structure as the level 1 unit of measure. The smallest unit of measure, which is also the primary unit 
of measure, is the highest level in the structure. For example, a unit of measure structure could be as follows:    Level Unit of Measure    1       
Pallet    2       Box, where 10 boxes equal 1 pallet    3       Case, where 5 cases equal 1 box    4       Interpack, where 8 interpacks equal 1 case    5       
Each, where 10 eaches equal 1 interpack  In this example, the level 1 unit of measure is a pallet, and the level 5 unit of measure is an each, 
which is the primary unit of measure. You can have five levels in an item's unit of measure structure.

szUOMLevel4UML4charNONENONE

The item's level 4 unit of measure. You use Unit of Measure Conversion Information (P41002) to define an item's unit of measure structure. 
You define the largest unit of measure in the structure as the level 1 unit of measure. The smallest unit of measure, which is also the primary unit 
of measure, is the highest level in the structure. For example, a unit of measure structure could be as follows:    Level Unit of Measure    1       
Pallet    2       Box, where 10 boxes equal 1 pallet    3       Case, where 5 cases equal 1 box    4       Interpack, where 8 interpacks equal 1 case    5       
Each, where 10 eaches equal 1 interpack  In this example, the level 1 unit of measure is a pallet, and the level 5 unit of measure is an each, 
which is the primary unit of measure. You can have five levels in an item's unit of measure structure.

szUOMLevel5UML5charNONENONE

The item's level 5 unit of measure. You use Unit of Measure Conversion Information (P41002) to define an item's unit of measure structure. 
You define the largest unit of measure in the structure as the level 1 unit of measure. The smallest unit of measure, which is also the primary unit 
of measure, is the highest level in the structure. For example, a unit of measure structure could be as follows:    Level Unit of Measure    1       
Pallet    2       Box, where 10 boxes equal 1 pallet    3       Case, where 5 cases equal 1 box    4       Interpack, where 8 interpacks equal 1 case    5       
Each, where 10 eaches equal 1 interpack  In this example, the level 1 unit of measure is a pallet, and the level 5 unit of measure is an each, 
which is the primary unit of measure. You can have five levels in an item's unit of measure structure.

szGroupUOM1UGL1charNONENONE

The group unit of measure that has been defined for the items in the level 1 unit of measure in the Unit of Measure groups application 
(P46096).

szGroupUOM2UGL2charNONENONE

The group unit of measure that has been defined for the items in the level 2 unit of measure in the Unit of Measure groups application 
(P46096).

szGroupUOM3UGL3charNONENONE

The group unit of measure that has been defined for the items in the level 3 unit of measure in the Unit of Measure groups application 
(P46096).

szGroupUOM4UGL4charNONENONE

The group unit of measure that has been defined for the items in the level 4 unit of measure in the Unit of Measure groups application 
(P46096).

szGroupUOM5UGL5charNONENONE

The group unit of measure that has been defined for the items in the level 5 unit of measure in the Unit of Measure groups application 
(P46096).

mnPrimaryConvFactor1PPL1MATH_NUMERICNONENONE

The quantity in primary unit of measure for one full unit of this item in the level 1 unit of measure.

mnPrimaryConvFactor2PPL2MATH_NUMERICNONENONE

The quantity in primary unit of measure for one full unit of this item in the level 2 unit of measure.

mnPrimaryConvFactor3PPL3MATH_NUMERICNONENONE

The quantity in primary unit of measure for one full unit of this item in the level 3 unit of measure.

mnPrimaryConvFactor4PPL4MATH_NUMERICNONENONE

The quantity in primary unit of measure for one full unit of this item in the level 4 unit of measure.

mnTotalQtyInPrimaryTQTYMATH_NUMERICNONENONE

The total quantity of an item to be reworked or scrapped as a result of an ECO disposition.

mnQtyHardCommittedHCOMMATH_NUMERICNONENONE

The number of units committed to a specific location and lot.

mnQuantityInboundQTRIMATH_NUMERICNONENONE

A quantity in the primary unit of measure that you expect to add to the location detail after you confirm a putaway or replenishment 
suggestion.

mnQuantityOutboundQTROMATH_NUMERICNONENONE

A quantity in the primary unit of measure that you expect to remove from the location after you confirm a picking or replenishment 
suggestion.

szSelectedUOMLevelUOMcharNONENONE

A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).

mnSelectedPrimConvFactorCONVMATH_NUMERICNONENONE

The factor that the system uses to convert one unit of measure to another unit of measure.

mnQuantityAvailableQAVALMATH_NUMERICNONENONE

A number that indicates the quantity that is available. For example, the available quantity might consist of the on-hand quantity minus 
commitments, reservations, and backorders.  Availability is user defined. You can set up availability in the Branch/Plant Constants program (P41001).  

mnQtyAvailableOutBoundQAVALMATH_NUMERICNONENONE

A number that indicates the quantity that is available. For example, the available quantity might consist of the on-hand quantity minus 
commitments, reservations, and backorders.  Availability is user defined. You can set up availability in the Branch/Plant Constants program (P41001).  

cSuppressErrorMessageSUPPScharNONENONE

A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.        0 = allow 
runtime error message handling.        1 = suppress runtime error message handling.

szErrorMessageIDDTAIcharNONENONE

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 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

mnQtyAvailableInBoundQAVALMATH_NUMERICNONENONE

A number that indicates the quantity that is available. For example, the available quantity might consist of the on-hand quantity minus 
commitments, reservations, and backorders.  Availability is user defined. You can set up availability in the Branch/Plant Constants program (P41001).  

mnConvertedQtyAvailTQTYMATH_NUMERICOPTNONE

The total quantity of an item to be reworked or scrapped as a result of an ECO disposition.

mnConvertedQtyAvailInBoundTQTYMATH_NUMERICOPTNONE

The total quantity of an item to be reworked or scrapped as a result of an ECO disposition.

mnConvertedQtyAvailOutBoundTQTYMATH_NUMERICOPTNONE

The total quantity of an item to be reworked or scrapped as a result of an ECO disposition.

mnPutRequestQuantityTQTYMATH_NUMERICOPTNONE

The total quantity of an item to be reworked or scrapped as a result of an ECO disposition.

Related Functions

None

Related Tables

F4602 Location Detail Information
F4602VerifyInstructionUOM

F4602VerifyInstructionUOM

F4602 Select Quantity and UOM Level

Major Business Rule

Object Name: B4600390

Parent DLL: CWARE

Location: Client/Server

Language: C

Function Descripiton:
F4602 Verify Instruction UOM


Purpose:


The purpose of this function retrieve and verify the UOM information to be used for the item.  When 

retrieving UOM default infomation, the function determines whether the UOM informaiton is 1) for a 

group, or 2)for an individual item.


Technical Specifications:

Parameters are   LPBHVRCOM

                       LPVOID

                       LPDSD4600390A

Data Structure

D4600390A - F4602 Verify Instruction UOM

Parameter NameData ItemData TypeReq/OptI/O/Both
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.

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

szInstructionUOMUOMcharNONENONE

A user defined code (00/UM) that indicates the quantity in which to express an inventory item, for example, CS (case) or BX (box).

szInstructionUOMGroupUMGPcharNONENONE

A code (system 46/type UG) that identifies a group of units of measure that you want to process as one for putaway, picking, and 
replenishment transactions. You use unit of measure groups to set up movement instructions for putaway,picking, or replenishment.

szLocationLOCNcharNONENONE

The storage location from which goods will be moved.

szLotNumberLOTNcharNONENONE

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

mnLocationSeqNumberLDSQMATH_NUMERICNONENONE

The sequence number that identifies a record in the Location Detail table (F4602). The system uses this number to distinguish between the 
diffferent pallets, cases, and so forth, for the same item in the same location.

mnLicensePlateNumberSTUNMATH_NUMERICNONENONE

A number that uniquely identifies goods in specific location detail information. Location detail contains a storage unit number if you turn on 
license plate tracking in the Item/UOM Profile (P46011) for the item's level 1  unit of measure. The system assigns a storage unit number to a 
storage unit when it creates a request or suggestion

mnPrimaryConvFactorCONVMATH_NUMERICNONENONE

The factor that the system uses to convert one unit of measure to another unit of measure.

cSuppressErrorMsgEV01charNONENONE

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

szErrorMessageIDDTAIcharNONENONE

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 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

cUseLotLocationToSelectEV01charOPTNONE

UseLotLocationToSelect:
'1' = Use Location Only to do the select

'2' = Use Location and Lot Number to do the select

^

mnRollupQtyAvailPrimaryQTYMATH_NUMERICOPTNONE

The number of units associated with an asset.

Related Functions

None

Related Tables

F4602 Location Detail Information