1.Functional Description
1.1Purpose
This function will write detail forecast records (F3460) for Large Customers
1.2Setup Notes and Prerequisites
1.3Special Logic
2.Technical Specifications
If the Quantity is not equal to zero
Or the Amount is not equal to zero
Retrieve the detail forecast record (F3460) with the following key:
ShortItemNumberMFITM
BranchMFMCU
ForecastTypeMFTYPF
SoldToMFAN8
Find the next date in the fiscal date pattern that is greater than or
equal to the input RequestedDate
Move the date into MFDRQJ
If the requested date is beyond the end of the fiscal patterns
end processing for this item and get out of update 'A' forecast
records
End
If a record was found and
SummarizeForecasts is not equal to 2
Update the record
Quantity add toMFFQT
Amount add toMFFAM
MFFQTMFUORG
MFFAMMFAEXP
Get the following from GetAuditInfo
CurrentDateMFUMPJ
CurrentTimeMFTDAY
UserMFUSER
Terminal NumberMFJOBN
Program IDMFPID
Add the quantity and amount to the GrandTotalQuantity and Amount
Else
If SummarizeForecasts is not equal to 2
write the detail record
ShortItemNumberMFITM
SecondItemNumberMFLITM
ThirdItemNumberMFAITM
BranchMFMCU
SoldToMFAN8
'FR'MFDCTO
ForecastTypeMFTYPF
ZerosMFYR
QuantityMFFQT
AmountMFFAM
MFFQTMFUORG
MFFAMMFAEXP
'N'MFBPFC
Get the following from GetAuditInfo
CurrentDateMFUMPJ
CurrentTimeMFTDAY
UserMFUSER
Terminal NumberMFJOBN
Program IDMFPID
Add the quantity and amount to the GrandTotal Quantity and
Amount
End
End
If SummarizeForecasts is not equal to blanks
Call CreateSummaryForecasts (B3400790)
ShortItemNumberShortItemNumber
BranchBranch
ForecastTypeForecastType
QuantityOriginalQuantity
AmountOriginalAmount
QuantityForecastQuantity
AmountForecastAmount
SoldToSoldTo
MFDRQJCompareDate
RetrieveCatCodesRetrieveCatCodes
SummaryCodeSummaryCode
LinkListPtrLinkListPtr
ProgramIDProgramID
Set output LinkListPtr = LinkListPtr from B3400790
End
D3400780 - Update A Forecast Records
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
| ||||
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
| ||||
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
| ||||
mnQuantity | UORG | MATH_NUMERIC | NONE | NONE |
The quantity of units affected by this transaction. | ||||
mnAmount | AEXP | MATH_NUMERIC | NONE | NONE |
The number of units multiplied by the unit price. | ||||
mnSoldTo | 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
| ||||
idDatePatterns | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
jdRequestedDate | DRQJ | JDEDATE | NONE | NONE |
The date that an item is scheduled to arrive or that an action is scheduled for completion. | ||||
cSummarizeForecasts | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
mnGrandTotalAmount | FAM | MATH_NUMERIC | NONE | NONE |
The current amount of the forecasted units for a planning period. | ||||
mnGrandTotalQuantity | FQT | MATH_NUMERIC | NONE | NONE |
The quantity of units forecasted for production during a planning period. | ||||
cRetrieveCatCodes | EV02 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szSummaryCode | KVER | char | NONE | NONE |
A user defined code (40/KY) that indicates the type of summary forecast. | ||||
idLinkListPtr | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
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
| ||||
jdCompareDate | DRQJ | JDEDATE | NONE | NONE |
The date that an item is scheduled to arrive or that an action is scheduled for completion. | ||||
szTypeTransaction | TYTN | char | OPT | NONE |
The qualifier used to identify a specific type of transaction. | ||||
cBeforeImageProcessing | BIPROC | char | OPT | NONE |
This flag controls image processing in interoperability transactions. |
B3400790 Create Summary Forecasts | ||||
B9800100 Get Audit Information |
F3460 Forecast File |