1.Functional Description
1.1Purpose
This function will read the Detail Forecast file (F3460) equal to the short item number, branch, and
type passed in and delete all records with that key. It will also remove from the year summary record
in the file the quantity and amount for the record deleted.
1.2Setup Notes and Prerequisites
1.3Special Logic
2.Technical Specifications
1.If ProgramID is equal to R3465
SETTL on the Forecast file (F3460) with a key of Short Item, Branch, Forecast Type,and
BeginDate.
Else
SETTL on the Forecast file (F3460) with a key of Short Item, Branch, Forecast Type,
BeginDate.
and Customer Number
End
2.If ProgramID is equal to R3465
Read all records in the file with the key of Short Item, Branch, and Forecast Type.
Else
Read all records in the file with the key of Short Item, Branch, Forecast Type and
Customer Number
End
If the requested date of the record read is less than or equal to End Date.
Delete the record
Read the next record
Else
Stop reading records
End
^
D3400750 - DeleteDetailForecasts
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
| ||||
jdBeginDate | DRQJ | JDEDATE | NONE | NONE |
The date that an item is scheduled to arrive or that an action is scheduled for completion. | ||||
jdEndDate | DRQJ | JDEDATE | NONE | NONE |
The date that an item is scheduled to arrive or that an action is scheduled for completion. | ||||
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
| ||||
mnCustomerNumber | 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 |