CalculateBOAndCancelledQuantity

Calculate Backordered and Cancelled Quantities

Minor Business Rule

Object Name: B4200440

Parent DLL: CDIST

Location: Client/Server

Language: C

This function calculates the correct Quantity Backordered and Quantity Cancelled that should appear on the invoice^

Data Structure

D4200440 - Calculate Back Order and Cancelled Quantities

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

mnQuantityCancelledSOCNMATH_NUMERICNONENONE

The number of units canceled in Sales Order or Work Order Processing, using either the entered or the primary unit of measure defined for 
this item. In manufacturing, this can also be the number of units scrapped to date.

cInvoicePrintedFlagRESLcharNONENONE

Indicates what should happen in the event the available quantity of an ordered item is less than the quantity ordered.  A B indicates that the 
quantity that cannot be shipped is to be backordered.  A C indicates that the quantity that cannot be shipped is to be cancelled.  In general, 
the program will automatically supply a B if the following are true:     o Our organization permits backorders.     o The customer permits 
backorders.     o The nature of the item is such that backorders are allowed.

cPrintBackorderOrCancelQtyEV01charNONENONE

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

cPrintOnceBackorderOrCancelEV02charNONENONE

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

mnOutputQuantityBackorderedPQ01MATH_NUMERICNONENONE

An array comprised of 14 amount fields, each of which represents the quantity in primary units which were on hand at the end of a specific 
period for a specific item.

mnOutputQuantityCancelledPQ02MATH_NUMERICNONENONE

An array comprised of 14 amount fields, each of which represents the quantity in primary units which were on hand at the end of a specific 
period for a specific item.

Related Functions

None

Related Tables

None