1.Functional Description
This function is to be used to update the summary forecast record if the quantity or amount has 
changed.  The application using this function should provide the short item number, branch/plant,  forecast 
date,  forecast type and forecast quantity, original quantity, forecast amount and extended amount.
1.1Purpose
The purpose of this business function is to update or write a summary forecast record in the forecast 
table.  The quantity and the amount fields will be passed.  If this is a new forecast summary, the 
forecast quantity should be updated to both quantity fields and the forecast amount should be updated to 
both amount fields.  If this is an update to an existing summary record, the forecast quantity should 
be added to the summary and the forecast amount should be added to the summary, and the original 
quantity and amounts should not be updated.  Summary records will be created using the calendar year from 
the revision date.
1.2Setup Notes and Prerequisites.
 Pass to the business function both quantity and amount fields along with item, branch/plant, 
requested date, and forecast type.
1.3Special Logic
None.
2.Technical Specifications
Assign local variable CalendarYear the year value from RequestedDate (DRQJ) provided 
by user.
Fetch the Forecast Summary record corresponding to the Short Item Number (ITM), Branch/Plant (MCU), 
Forecast Type (TYPF), and CalendarYear (YR) provided by the user.
If the summary record was not found then
 Insert a new summary record using the forecast quantity for both quantity values and the forecast 
amount for both amount fields (forecast and original).
If the summary record was found then
 If the input forecast values are the negative values of the record's forecast fields then
 Delete the summary record.
 Else
 Add the new forecast quantity and amount values to the existing forecast quantity and amount 
values and update the database record.  The original quantity and original amount fields are not 
updated.  Call GetAuditInfo to update the record with new audit data.
^
D3400150 - Update Forecast Summary
Data Item Data Structure DescriptionI/ORequiredNotes
   ITM             Item Number - Short      IYes
   MCU             Business Unit            IYes
   TYPF             Forecast Type            IYes
   DRQJ             Requested Date            IYes 
   FQT              Forecast Quantity      IYes      This may be a positive or 
negative                                                                                                  
                                                                         
                                                                        quantity.
   FAM             Forecast Amount            IYes        This may be a positive or 
negative                                                                                                  
                                                                                                      
                                                                                                      
                                                                                                      
         amount.
   LITM             2nd Item Number            INo
   AITM             3rd Item Number            INo
   DCTO             Order Type                  INo
   BPFC             Bypass Forcing Y/N      INo
   PID             Program ID                  INo
   DTAI             Error Message ID            ONo
   EV01             Suppress Error MessagesINo      0 = Allow error message 
handling 1 =                                                                                                
                                                 Suppress error message handling
^
| 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.  | ||||
| mnForecastQuantity | FQT | MATH_NUMERIC | NONE | NONE | 
The quantity of units forecasted for production during a planning period.  | ||||
| mnForecastAmount | FAM | MATH_NUMERIC | NONE | NONE | 
The current amount of the forecasted units for a planning period.  | ||||
| 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.  | ||||
| szSecondItemNumber | LITM | char | NONE | NONE | 
A number that identifies the item. The system provides three separate item numbers plus an extensive cross-reference capability to 
  | ||||
| szThirdItemNumber | AITM | char | NONE | NONE | 
The system provides three separate item numbers plus an extensive cross-reference capability to alternate item numbers. These item 
  | ||||
| szOrderType | DCTO | char | NONE | NONE | 
A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
  | ||||
| cBypassForcingYN | BPFC | char | NONE | NONE | 
A code that indicates whether to bypass the Forecast Forcing program (R34610). A Y indicates that the quantity and amount of a forecast 
  | ||||
| szProgramID | PID | char | NONE | NONE | 
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
  | ||||
| B9800100 Get Audit Information | 
| F3460 Forecast File |