CompareForecastDates

Compare Forecast Dates

Minor Business Rule

Object Name: B3400140

Parent DLL: CMFG

Location: Client/Server

Language: C

1.Functional Description
This function is to be used to determine if the forecast date has changed to the date of an existing 
forecast record.  The application using this function should provide the short item number, 

branch/plant, original forecast date, new forecast date, forecast type, and address number.


1.1Purpose
The purpose of this business function is to prevent changes to the requested date if the new date 
already exists in the forecast table.  Both the new date and the original date will be passed.  An error 

should be returned if the date already exists for this forecast type, item, and branch.


1.2Setup Notes and Prerequisites.

• Pass to the business function both dates along with item, branch/plant, forecast type, and address 
number.

• An error message will be passed to the business function blank.
• The business function should return a blank in the error if the new date does not exist, error ID 
"1021" if the date does exist.


1.3Special Logic

None.

2.Technical Specifications

Initialize the DS Error Message ID to " ".
Fetch the F3460  record corresponding to the Branch (MCU), Item Number (ITM), Forecast Type (TYPF), 

New Forecast Date (DTE), and Address Number (AN8) values provided as input.


If the record is found, return an error message.

    Assign DS Error Message ID = "1021"



^

Data Structure

D3400140 - Compare Forecast Dates

Parameter NameData ItemData TypeReq/OptI/O/Both
mnShortItemNumberITMMATH_NUMERICNONENONE

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

szBranchMCUcharNONENONE

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.

szForecastTypeTYPFcharNONENONE

A user defined code (34/DF) that indicates one of the following:     o The forecasting method used to calculate the numbers displayed about 
the item     o The actual historical information about the item 

jdRequestedDateDRQJJDEDATENONENONE

The date that an item is scheduled to arrive or that an action is scheduled for completion.

jdNewDateDTEJDEDATENONENONE

You can enter a date with or without slashes (/) or dashes (-) as separators. If you leave a date entry field blank, the system supplies the 
current date.

szErrorMessageIDDTAIcharNONENONE

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.

cSuppressErrorMessagesEV01charNONENONE

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

mnAddressNumberAN8MATH_NUMERICNONENONE

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

Related Functions

None

Related Tables

F3460 Forecast File