CheckAvailabilityForKits

Availability Compare Quantities

Major Business Rule

Object Name: B4200500

Parent DLL: CDIST

Location: Client/Server

Language: C

Functional Description

Purpose

The purpose of this function is to determine if the quantity ordered is greater than the quanity 
available then issue error 2716 .   Adjust the Display Qnty Ordered appropriatly.


Setup Notes and Prerequisites

• Use bullet points

Special Logic




Technical Specification


2.2Related Tables 

Table Table Description

2.3Related Business Functions

Source NameFunction Name


2.4Processing 

If    LFIVI InventoryInterfaceFlag == Y
      If  FI CKAV CheckAvailabilityFlag == 1 or 2

           If  ( Display Qty (QNTY) > QAVAL  & Display Qnty != 0  & Credit Order == FALSE)

                 Issue Warning   2716   Qnty Exceeds Avail



^

Data Structure

D4200500 - Check Availability For Kits

Special Input Expected
IVIInventoryInterfaceFlagsend in LFIVI

CKAVCheckAvailabilitysend in from FI CKAV

QNTYQuantityPerDisplaysend in GC QNTY (display)

QAVALQuantityAvailablesend in GC QAVAL

ERRCCreditOrderFlag

SOBKQtyBackOrdered

ERRCSuppressErrorMsg


Special Output Returned

DTAIErrorMsgID

ERRCErrorCode


^

Parameter NameData ItemData TypeReq/OptI/O/Both
cInvInterfaceFlagIVIcharNONENONE

A code that identifies the type of interface to the Inventory Management system. Valid values are:    Y The dollar or unit value of any activity 
containing this line type will be reflected in inventory. The system also edits the item that you enter to ensure that it is a valid item. Y is the 
default.    A The system recognizes the number that you enter as a G/L account number. The system uses this code in purchasing only.    B The 
system performs edits when using format 4 in purchase order entry.        The system retrieves price data from the inventory tables, but does not 
update the quantity on the purchase order. This code is valid only when you have set the G/L Interface field to Y (yes). Budget checking is 
fully functional when you use this interface code.    D The item in this line is an inventory item that will not affect availability or quantities.    N The 
item is not an inventory item. To verify whether the item exists in the Item Master file, use Inventory Interface N in conjunction with the flag, Edit 
the Item Master for Non-Stock Items.

cCheckAvailabilityCKAVcharNONENONE

A code that specifies whether the system performs availability checking.  You might want to turn on availability checking for certain items.  
For other items, if you assume that an adequate supply is available, leave availability checking turned off.  For PeopleSoft World, valid values 
are: Y The system performs availability checking. N The system does not perform availability checking.  For PeopleSoft EnterpriseOne, a 
check mark indicates that availability checking is turned on.

mnQtyPerDisplayQNTYMATH_NUMERICNONENONE

ab 
Special Input Expected

QNTYab QuantityPerDisplay


Significant Data Values

send in GC QNTY (display)



^

mnQtyAvailableQAVLMATH_NUMERICNONENONE

The number of on-hand units minus the number of units committed to prior orders.

cCreditOrderFlagERRCcharNONENONE


Special Input Expected

ERRCab CreditOrderFlag


^

mnQtyBackOrderedSOBKMATH_NUMERICNONENONE

The number of units backordered in Sales Order Management or in Work Order Processing, using either the entered or the primary unit of 
measure defined for this item.

szErrorMsgIDDTAIcharNONENONE


Special Output Returned

DTAIab ErrorMsgID




^

cErrorCodeERRCcharNONENONE


Special Output Returned

ERRCab ErrorCode





^

cSuppressErrorMsgERRCcharNONENONE


Special Input Expected

ERRCab SuppressErrorMsg


^

Related Functions

None

Related Tables

None