CalculateDemandForecastDates

Calculate Demand Forecast Dates

Minor Business Rule

Object Name: N40R0230

Parent DLL: CDMDSCH

Location: Client/Server

Language: NER

Data Structure

D40R0230A - Calculate Demand Forecast Dates

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.

szDemandPeriodDEPERcharREQINPUT

A code (40R/PD) that identifies the period of time for a demand record.

cMonthBeginEndMTHBGEDcharREQINPUT

An option that specifies whether the customer sends forecast dates at the beginning or the end of the month. If you do not choose this 
option, then the system processes information based on the customer sending forecast dates at the beginning of the month.

cMonthCalcRuleMTHCALCcharOPTINPUT

A code that specifies how the system calculates the frequency of demand.  Valid values are: Blank The system calculates the frequency of 
demand by calendar month.  For example, demand begins on the first day of the month and ends on the last day of the month. 1 The system 
calculates the frequency of demand by a day of the week.  For example, demand occurs every Tuesday. 2 The system calculates the 
frequency of demand by the first occurrence of a particular day within the month.  For example, demand occurs on the first Monday of every month.

cAnchorDOWANCHDOWcharOPTINPUT

A code that specifies the day of the week that the system applies to the anchor rule when the system generates forecast records. Valid 
values are: Blank Sunday 1 Monday 2 Tuesday 3 Wednesday 4 Thursday 5 Friday 6 Saturday

cFiscalDatePatternDTPNcharOPTINPUT

A code that identifies date patterns. You can use one of 15 codes. You must set up special codes (letters A through N) for 4-4-5, 13-period 
accounting, or any other date pattern unique to your environment. An R, the default, identifies a regular calendar pattern.

jdBeginDateBEGINDJJDEDATEREQBOTH

The date on which a process starts.

jdEndDateENDDJJDEDATEOPTBOTH

An ending date.

mnNumberOfWorkDaysNOWRKDAYMATH_NUMERICOPTOUTPUT

The number of working days in a calendar period.

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