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"
^
D3400140 - Compare Forecast Dates
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnShortItemNumber | ITM | MATH_NUMERIC | NONE | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
szBranch | MCU | char | NONE | NONE |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szForecastType | TYPF | char | NONE | NONE |
A user defined code (34/DF) that indicates one of the following:
o The forecasting method used to calculate the numbers displayed about
| ||||
jdRequestedDate | DRQJ | JDEDATE | NONE | NONE |
The date that an item is scheduled to arrive or that an action is scheduled for completion. | ||||
jdNewDate | DTE | JDEDATE | NONE | NONE |
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
| ||||
szErrorMessageID | DTAI | char | NONE | NONE |
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
| ||||
cSuppressErrorMessages | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
mnAddressNumber | AN8 | MATH_NUMERIC | NONE | NONE |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
|
None |
F3460 Forecast File |