GetForecast

GetForecast

Minor Business Rule

Object Name: B3400160

Parent DLL: CMFG

Location: Client/Server

Language: C

1.Functional Description
This function is to be used to get  the  forecast quantity and amounts from the forecast file.  The 
application using this function should provide the short item number, branch/plant,  forecast year, and 

forecast type.


1.1Purpose
The purpose of this business function is to return the forecast quantity and forecast amount from the 
forecast summary record.


1.2Setup Notes and Prerequisites.

• Pass to the business function both quantity and amount fields along with item, branch/plant, 
calendar year, and forecast type.  The quantity and amount will be returned.


1.3Special Logic

None.

2.Technical Specifications

Fetch all Forecast records (F3460) corresponding to the input Short Item (ITM), Branch (MCU), and 
Forecast Type (TYPF) with a Requested Date (DRQJ) that falls in the input Calendar Year (i.e. 1/1/yr <= 

DRQJ <= 12/31/yr).


If no records are found, return error message ID "0002" (Record Invalid). If Suppress Error Message = 
'0' highlight the ITM field. 



^

Data Structure

D3400160 - GetForecast

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 

mnCalendarYearYRMATH_NUMERICNONENONE

The calendar year for this calendar.

mnForecastQuantityFQTMATH_NUMERICNONENONE

The quantity of units forecasted for production during a planning period.

mnForecastAmountFAMMATH_NUMERICNONENONE

The current amount of the forecasted units for a planning period.

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.

Related Functions

None

Related Tables

F3460 Forecast File