CalculateAvailability

Calculate Availability

Major Business Rule

Object Name: B4101220

Parent DLL: COPBASE

Location: Client/Server

Language: C

Data Structure

D4101220 - Calculate Availability

Parameter NameData ItemData TypeReq/OptI/O/Both
mnShortItemNumberITMMATH_NUMERICOPTNONE

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

szBranchPlantMCUcharOPTNONE

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.

szLocationLOCNcharOPTNONE

The storage location from which goods will be moved.

szLotNumberLOTNcharOPTNONE

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

mnFromPotencyFRMPMATH_NUMERICOPTNONE

A number that indicates the minimum potency or percentage of active ingredients acceptable for an item. The system displays a warning 
message if you try to purchase or issue items that do not meet the minimum acceptable potency. The system does not allow you to sell items 
that do not meet the minimum acceptable potency.

mnThruPotencyTHRPMATH_NUMERICOPTNONE

A number that indicates the maximum potency or percentage of active ingredients that is acceptable for an item. The system displays a 
warning message if you try to purchase or issue items that have a potency that exceeds the maximum potency acceptable. The system does 
not allow you to sell items that have a potency that exceeds the maximum potency acceptable.

szFromGradeFRGDcharOPTNONE

A user defined code (40/LG) that indicates the minimum grade that is acceptable for an item. The system displays a warning message if 
you try to purchase or issue items with grades that do not meet the minimum grade acceptable. The system does not allow you to sell items 
with grades that do not meet the minimum acceptable level.

szThruGradeTHGDcharOPTNONE

A user defined code (40/LG) that indicates the maximum grade that is acceptable for an item. The system displays a warning message if 
you try to purchase or issue items with grades that exceed the maximum grade acceptable. The system does not allow you to sell items with 
grades that exceed the maximum grade acceptable.

mnDaysBeforeExpiredEXDPMATH_NUMERICOPTNONE

The number of days allowed before expiration for an item where it still can be used or sold to a specific customer.  When negative, this 
number indicates the number of days after expiration for an item where it still can be used or sold to a specific customer. For example, if the 
expiration date for item 1001 is 06/01/98:     o A value of 15 in Days Before Expiration means that this specific customer only accepts this item up to 
05/15/98.     o A value of -15 in Days Before Expiration means that this specific customer accepts this item up to 06/15/98.

szPrimaryUOMUOM1charOPTNONE

A user defined code (00/UM) that identifies the unit of measure that the system uses to express the quantity of an item, for example, EA 
(each) or KG (kilogram).

szSecondaryUOMUOM2charOPTNONE

A user defined code (00/UM) that indicates an alternate unit of measure for the item.

cSuppressErrorMessagesEV01charOPTNONE

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

mnQuantityCommittedQCOMMMATH_NUMERICOPTNONE

The total quantity that is committed to a specific location. The total quantity is the sum of all quantities that have been sold or committed 
from the following:     o Soft Committed to Sales Orders     o Hard Committed to Sales Orders     o Soft Committed to Work Orders     o Hard 
Committed to Work Orders 

mnQtyOnWOReceiptQWBOMATH_NUMERICOPTNONE

The number of units on work orders in primary units of measure.

mnQuantityInRoutingQROUTMATH_NUMERICOPTNONE

The total number of items that are in route. The total is the sum of all quantities that are considered to be in transit but are not presently on 
hand.

mnQuantityAvailableQAVALMATH_NUMERICOPTNONE

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).  

szErrorMessageIDDTAIcharOPTNONE

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.

mnIndexCDLMATH_NUMERICOPTNONE

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

mnInInspection_1QTINMATH_NUMERICOPTNONE

The quantity currently being inspected.  This quantity has been received, but is not considered on hand.

mnInTransit_1QTTRMATH_NUMERICOPTNONE

The quantity currently in transit from the supplier.

mnInOperation1_1QTO1MATH_NUMERICOPTNONE

The quantity which is currently at a user-defined operation within the dock-to-stock process.  The quantity has been received, but may or 
may not be considered to be on hand.

mnInOperation2_1QTO2MATH_NUMERICOPTNONE

The quantity which is currently at a user-defined operation within the dock-to-stock process.  The quantity has been received, but may or 
may not be considered to be on hand.

mnOnBackOrder_1PBCKMATH_NUMERICOPTNONE

The number of units backordered in primary units of measure.

mnOnPurchaseOrder_1PREQMATH_NUMERICOPTNONE

The number of units specified on the purchase order in primary units of measure.

cUDQtySoftCommitDA01charOPTNONE

Code telling the system whether the number of units soft committed to sales orders or work orders should be included in the item availability 
calculation. Valid codes are: Blank  No effect on the quantity available    -      Reduces the quantity available (default)

cUDQtyHardCommitDA02charOPTNONE

Code telling the system whether the number of units hard committed to a specific location and lot for sales orders is included in the item 
availability calculation. Valid codes are: Blank   No effect on the quantity available    -  Reduces the quantity available (default)

cUDQtyFutureCommitDA03charOPTNONE

Code telling the system to include the quantity on any sales order whose requested shipment date is beyond the specific commitment 
days. The valid codes are: Blank  No effect on the quantity available    -      Reduces the quantity available (default)

cUDQtyWOHardCommitDA04charOPTNONE

Code telling the system whether the number of units hard committed to a specific location and lot for work orders is included in the item 
availability calculation. Valid codes are:    Blank  No effect on the quantity available    -      Reduces the amount available (default))

cUDQtySOOther1DA05charOPTNONE

Code indicating whether the system includes the quantity specified as an additional reduction in the item availability calculation. Valid 
codes are: Blank  No effect on the quantity available    -        Reduces the quantity available (default)

cUDQtySOOther2DA06charOPTNONE

Code indicating whether the system includes this quantity as an additional reduction in the item availablity calculation. Valid codes 
are: Blank  No effect on the quantity available    -        Reduces the quantity available (default)

cUDQtyOnHoldDA07charOPTNONE

Code telling the system to include the number of units on hold in the item availability calculation. Valid codes are: Blank  No effect on the 
quantity available    -        Reduces the quantity available (default)

cUDQtyPOReceiptsDA08charOPTNONE

Code telling the system whether to include the number of units on purchase orders in the item availability calculation. Valid codes are:    
Blank  No effect on the quantity available (default)    +      Increases the quantity available

cUDQtyWOReceiptsDA09charOPTNONE

Code telling the system to include the number of units on work orders in the item availability calculation. Valid codes are: Blank  No effect on 
the quantity available (default)    +      Increases the quantity available

cUDQtyPOOther1DA10charOPTNONE

Code indicating whether the system includes the number of units on other purchase orders in the item availability calculation. Valid codes 
are: Blank  No effect on the quantity available (default)    +      Increases the quantity available

cUDQtySafetyStockDA11charOPTNONE

Code indicating whether the system includes the number of units reserved as safety stock in the item availability calculation. Valid codes 
are: Blank  No effect on the quantity available (default)    -      Reduces the quantity available

cUDQtyInInspectionDA12charOPTNONE

Code telling the system to include the number of units in inspection in the item availability calculation. Valid codes are: Blank  No effect on 
the quantity available (default)    +      Increases the quantity available

cUDQtyInTransitDA13charOPTNONE

Code telling the system to include the number of units in transit in the item availability calculation. Valid codes are:    Blank No effect on the 
quantity available (default)    +       Increases the quantity available

cUDQtyInOperation1DA14charOPTNONE

Code telling the system to include the number of units in one operation of the receipt routing process in the item availability calculation. You 
define which operation from receipt routing corresponds to this field. Valid codes are: Blank  No effect on the quantity available (default)    +     
Increases the quantity available

cUDQtyInOperation2DA15charOPTNONE

Code telling the system to include the number of units in one operation of the receipt routing process in the item availability calculation. You 
define which operation from receipt routing corresponds to this field. Valid codes are: Blank  No effect on the quantity available (default)    +     
Increases the quantity available

mnConversionFactorCONVMATH_NUMERICOPTNONE

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

szStandardUOMFlagTFLAcharOPTNONE

Allows you to bypass the item-specific unit of measure and use the standard unit of measure. Valid values are:    blank Use the item-specific 
unit of measure    1       Bypass the item-specific unit of measure and use the standard unit of measure

mnWOSoftCommitQtyFUN1MATH_NUMERICOPTNONE

The number of units soft committed to Work Orders in the primary unit of measure.

mnWOHardCommitQtyQOWOMATH_NUMERICOPTNONE

The number of units hard committed to work orders in the primary unit of measure.

mnFutureCommitQtyFCOMMATH_NUMERICOPTNONE

The quantity on sales order whose requested shipment date is beyond the standard commitment period that has been specified in the 
Inventory Constants for that branch.  As an example, if you normally ship most orders within 90  days, then an order for an item with a requested 
ship date a year from now would have its quantity reflected in this field.

mnCostForWOReceiptPAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostForQtyAvailablePAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostForQtyOnHandPAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostForSoftCommittedPAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostForHardCommittedPAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostForQtyOnHoldPAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostForQtyOnPOPAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostForQtyInTransitPAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostForWOSoftCommitPAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostForWOHardCommitPAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostForFutureCommitPAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

jdBeginDateTRDJJDEDATEOPTNONE

The date that an order was entered into the system. This date determines which effective level the system uses for inventory pricing.

jdEndDateTRDJJDEDATEOPTNONE

The date that an order was entered into the system. This date determines which effective level the system uses for inventory pricing.

cPrimaryLocnWithinDateRangeEV01charOPTNONE

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

cCostLevelCLEVcharOPTNONE

A code that indicates whether the system maintains one overall inventory cost for the item, a different cost for each branch/plant, or a 
different cost for each location and lot within a branch/plant. The system maintains inventory costs in the Inventory Cost table (F4105). Valid codes 
are:    1   Item level    2   Item/Branch level    3   Item/Branch/Location level

szCostingMethodLEDGcharOPTNONE

A user defined code (40/CM) that specifies the basis for calculating item costs. Cost methods 01 through 19 are reserved for J.D. Edwards 
use.

mnQuantityInBoundQTRIMATH_NUMERICOPTNONE

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_NUMERICOPTNONE

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

mnCostForQtyInBoundPAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostForQtyOutBoundPAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostForCommittedQtyPAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnSaleOrderQtyOther1OT1PMATH_NUMERICOPTNONE

The first of two quantities that can be specified as additional offsets (subtractions from on-hand) in the determination of quantities available 
for sale.  (Primary unit of measure)

mnSaleOrderQtyOther2OT2PMATH_NUMERICOPTNONE

The second of two quantities that can be specified as additional offsets (subtractions from on-hand) in the determination of quantities 
available for sale.  (Primary unit of measure)

mnCostInRoutingPAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostInOperation1PAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostInOperation2PAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostForSOOther1PAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostForSOOther2PAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostForBackOrderPAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnCostForInspectionQtyPAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

mnOnPurchaseOrderOther1OT1AMATH_NUMERICOPTNONE

The quantity that appears on documents such as bid requests, which are not formal commitments to buy on the part of your organization.

mnSafetyStockSAFEMATH_NUMERICOPTNONE

The quantity of stock kept on hand to cover high-side variations in demand.

mnOnReceiptQORECMATH_NUMERICOPTNONE

The total number of items that are on receipt for a specific location. The total is the sum of all quantities of an item that are on order and in 
route for a location.

szLotGradeLOTGcharOPTNONE

A code that indicates the grade of a lot. The grade is used to indicate the quality of the lot. Examples include the following:    A1   Premium 
grade    A2   Secondary grade  The grade for a lot is stored in the Lot Master table (F4108).

cLotStatusCodeLOTScharOPTNONE

A user defined code (41/L) that indicates the status of the lot. If you leave this field blank, it indicates that the lot is approved. All other codes 
indicate that the lot is on hold. You can assign a different status code to each location in which a lot resides on Item/Location Information or 
Location Lot Status Change.

cPrimaryBinPBINcharOPTNONE

A code that indicates whether this is the primary or secondary location for this item within this stocking location. Valid values are:    P Primary 
storage location    S Secondary storage location  Note:  You can only have one storage area marked as primary within each branch or 
warehouse. In some cases, the system uses the primary storage area as the default.

cPotencyControlOT1YcharOPTNONE

A code that indicates whether you control the item by potency.

cGradeControlOT2YcharOPTNONE

A code that indicates whether you control the item by grade.

jdExpirationDateMMEJJDEDATEOPTNONE

The date on which a lot of items expires. The system automatically enters this date if you have specified the shelf life days for the item on 
Item Master Information or Item Branch/Plant Information. The system calculates the expiration date by adding the number of shelf life days to 
the date that you receive the item. You can commit inventory based on the lot expiration date for items. You choose how the system commits 
inventory for an item on Item Master Information or Item Branch/Plant Information.

mnDaysBeforeExpirationEXDPMATH_NUMERICOPTNONE

The number of days allowed before expiration for an item where it still can be used or sold to a specific customer.  When negative, this 
number indicates the number of days after expiration for an item where it still can be used or sold to a specific customer. For example, if the 
expiration date for item 1001 is 06/01/98:     o A value of 15 in Days Before Expiration means that this specific customer only accepts this item up to 
05/15/98.     o A value of -15 in Days Before Expiration means that this specific customer accepts this item up to 06/15/98.

mnLotPotencyLOTPMATH_NUMERICOPTNONE

A code that indicates the potency of the lot expressed as a percentage of active or useful material (for example, the percentage of alcohol 
in a solution). The actual potency of a lot is defined in the Lot Master table (F4108).

cTruncOrRoundEV01charOPTNONE

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

cNoFetchLoopEV01charOPTNONE

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

cReturnCode_1EV01charOPTNONE

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

mnQtyOnHandPQOHMATH_NUMERICOPTNONE

The number of units that are physically in stock. The system displays the quantity on-hand in the primary unit of measure.

mnSoftCommittedPCOMMATH_NUMERICOPTNONE

The number of units soft committed to sales orders or work orders in the primary units of measure.

mnHardCommittedHCOMMATH_NUMERICOPTNONE

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

mnQuantityHeldQTYTMATH_NUMERICOPTNONE

The number of units which have passed through the Sales Update process. In Workorder Processing, this field identifies the total quantity 
completed or consumed on a workorder to date basis.

mnKeysCDLMATH_NUMERICOPTNONE

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

cIsQuantityAvailableEV01charOPTNONE

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

mnCheckQuantityAvailableQAVALMATH_NUMERICOPTNONE

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).  

mnProjectHardCommitPJCMMATH_NUMERICOPTNONE

The number of units committed to a specified location and lot for a project.

mnCostForProjectHardCommitPAIDMATH_NUMERICOPTNONE

The extended cost or price value of an inventory transaction for an inventory item.

szLotGroupLOTGRPcharOPTNONE

Lot Group is the name of a user defined list of allowed non-blank lot status codes.  Entry of a Lot Group name in the Processing Option will 
allow this Application to process lots whose lot status code is defined within the specified Lot Group Name.  

szOrderTypeDCTOcharOPTNONE

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

cLPExistEV01charOPTNONE

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

mnQuantityOnLPMATH01MATH_NUMERICOPTNONE

- - - Good Performance Low Value. 

mnDualQuantityOnLPDQTYMATH_NUMERICOPTNONE

The number of units (for the unit of measure) that is not contained in the unit of measure structure. For dual units of measure, the system 
tracks both the primary quantity and the secondary quantity. Depending on how the picking processing option is set, the system tracks either the 
primary unit of measure or the secondary unit of measure for a unit of measure structure.

Related Functions

None

Related Tables

None