1.Functional Description
1.1Purpose
This function will perform Load, Delete, Update, Get, and Clear functions on the Forecasts cache used
in the Numetrix Inbound Forecast UBE (R34A485). On a Create process, an identifier for the cache
(hCache handle) is passed back to the calling program for subsequent calls to this function. This cache
is required so that records may be sorted in the order Item Number, Branch, Forecast Type, Date,
Customer Number so that deletes can be handled efficiently.
1.2Setup Notes and Prerequisites
The calling application is responsible for loading all appropriate key values to the data structure
and identifying the number of keys to use in retrieval/update processes. The application must also
store the hCache pointers passed back from the "Create" process and pass these pointers back to the
business function on the other process modes which require them (see technical specifications below).
1.3Special Logic
There is no special logic within this function.
2.Technical Specifications
2.4Processing
Main Processing:
Cache Layout:.
AliasData ItemNotes
Index
ITMShort Item Number
MCUBranch
TYPFForecast Type
DRQJDate Requested
AN8Address Number
Text
FQTForecast Quantity
I. Perform setup functions
B.Initialize return code to success.
failure.
E.If Process Mode is "5" - DELETE ALL:
G.If Process Mode is "7" - ADD/UPDATE:
^
D34A1040B - Cache Process Forecasts
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnShortItemNumber | ITM | MATH_NUMERIC | OPT | NONE |
An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item
| ||||
szBranch | MCU | char | OPT | 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 | OPT | NONE |
A user defined code (34/DF) that indicates one of the following:
o The forecasting method used to calculate the numbers displayed about
| ||||
jdDateRequested | DRQJ | JDEDATE | OPT | NONE |
The date that an item is scheduled to arrive or that an action is scheduled for completion. | ||||
mnAddressNumber | AN8 | MATH_NUMERIC | OPT | NONE |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
| ||||
mnForecastQuantity | FQT | MATH_NUMERIC | OPT | NONE |
The quantity of units forecasted for production during a planning period. | ||||
nNumberOfKeys | INT01 | integer | OPT | NONE |
Number of Days in Future to Query for Responses Due. | ||||
cProcessMode | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
cCacheCodeError | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
cSuppressErrorMessage | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
szErrorMessageID | DTAI | char | OPT | 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
| ||||
mnJobNumber | JOBS | MATH_NUMERIC | OPT | NONE |
The job number (work station ID) which executed the particular job. | ||||
cReturnCursor | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
idCursor | GENLNG | ID | OPT | NONE |
General purpose ID variable. |
None |
None |