CalculateDemandQuantity

Calculate Demand Quantity

Minor Business Rule

Object Name: N40R0170

Parent DLL: CDMDSCH

Location: Client/Server

Language: NER

Data Structure

D40R0170A - Calculate Demand Quantity

Parameter NameData ItemData TypeReq/OptI/O/Both
szCostCenterMCUcharREQINPUT

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.

mnAddressNumberSoldToAN8MATH_NUMERICREQINPUT

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

mnAddressNumberShipToSHANMATH_NUMERICREQINPUT

The address number of the location to which you want to ship this order. The address book provides default values for customer address, 
including street, city, state, zip code, and country.

mnIdentifierShortItemITMMATH_NUMERICREQINPUT

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

szUnitOfMeasureAsInputUOMcharREQINPUT

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

mnDemandUniqueKeyDEIDMATH_NUMERICREQINPUT

A system-generated number that identifies a demand record.

szDemandTypeDETYPcharREQINPUT

A code that specifies whether the demand is firm or planned. The demand type is used to determine how the system processes demand.

cCalcAheadBehindABFIRMcharREQINPUT

An option that determines whether you can adjust the demand by modifying either the quantity that you have already shipped (also known 
as "ahead amount") or the quantity that you need to ship (also known as "behind amount") in relation to the customer's requirements. If you 
activate this option, then you can adjust the demand before you create the sales order.

cDecrementCUMDECCUMcharREQINPUT

An option that specifies whether the system increases or decreases CUM quantities when updating the CUM quantity shipped. If you do not 
choose this option, the system increases CUM quantities. 

cRoundToStdPackFirmRNDSTDPKcharREQINPUT

An option that determines whether the system rounds up firm quantities to the pack quantity for a standard carton. For example, assuming 
that you have chosen this option, if a customer, whose standard pack quantity is a carton of 500 items, requests a reduced shipment of 475 
items, then the supplier must still ship 500 items.

jdFenceDateERQSHPDJJDEDATEREQINPUT

The end date in a range of shipment dates that the customer specifies. For example, the customer might request the supplier to ship 500 
pieces between the first day and last day of the month.

jdDateRequestedShipRQSJJDEDATEREQINPUT

Requested ship date.

mnRequestedShipQtyRQSHPQTYMATH_NUMERICREQBOTH

The quantity of items that the customer has requested you to ship.

mnCumQuantityShippedCUMSMATH_NUMERICOPTBOTH

The cumulative quantity that was shipped for a Sold To or a Ship To location.

mnAheadBehindAmtAHDBHDMATH_NUMERICOPTBOTH

The number of items that represent either an excess or shortage of goods that have been shipped to the customer. The system calculates 
this number by subtracting the value in the CUM Required field from the value in the CUM Shipped field.

cFirstRecordFIRSTRECcharOPTBOTH

An option that indicates the first occurrence of a record.

cCreateScheduleCRTSCHcharOPTOUTPUT

An option that determines whether the system runs the Create Demand Schedule program (R40R010) after changes have been made to 
demand information. When the system runs the Create Demand Schedule program, it uses the version that is specified in the processing 
options for the Demand Maintenance program (P40R10). If you choose this option, the system runs the Create Demand Schedule program. 

cSuppressErrorMessageSUPPScharREQINPUT

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.

szErrorCodeDTAIcharOPTOUTPUT

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.

Related Functions

None

Related Tables

None