1.Functional Description
This business function will read the Forecast table (F3460) and write the Forecast Quantity to the
MRP Item Quantity Cache. Quantities are written to the cache with Quantity Type 'FQU' (Forecast Qty
Unadjusted).
1.1Purpose
This function is used to obtain data from the F3460 table for the MRP Planning Program P3482. The
function will return error codes necessary. The adjustments to the forecast quantities based on time
fence rules will not be done in this function. Instead, B3400400 will do this.
1.2Setup Notes and Prerequisites
The MRP Item Quantity Cache is managed by business function B3401290.
1.3Special Logic
None
2.Technical Specifications
The following actions have to be performed by the Business Function.
1. Open Tables
Open table F3460.
If Error in Opening the Table, Exit the function with an Error code = '1'
2. Load the Forecast Data in the Arrays
Wk Exit Flag = '0'
Wk From Date = Input From Date ($$FBEG)
End If
If Input Consolidation Branch = " "
Wk Cache Branch = Input Branch
Else
Wk Cache Branch = Input Consolidation Branch
End If
Date <= MFDRQJ <= Input Thru Date($$ENDD) And MFFQT >0.
Fetch the record from F3460
If Fetch Failed
Break
EndIf
If Input Generation Type($$GEN) = '2' and Input Master Planning Code(SVMPST) =
'5'
If MFTYPF <> Input MPS Forecast Type($$MTYF)
Continue
Endif
Else
If MFTYPF <> Input ForecastTypes 1-5($$TYPF1-5)
Continue
Endif
Endif
Branch, MFDRQJ, and QuantityType = 'FQU'
Add MFFQT to the record Quantity and,
Wk Cache Branch, MFDRQJ, 'FQU', and MFFQT
EndWhile
3. Close all Tables
Close F3460
Exit the function with Error Code = 0
D3400380 - MRP, Write Forecast Qty To Cache
Data Item Data Structure DescriptionI/ORequiredNotes
JOB Job Number IY Used when accessing cache
bsfn.
ITM Short Item Number IY SVITM
MCU Branch IY SVMCU
EFFF From Date I $$BEG Beg Date $$FBEG
EFFT Thru Date I $$ENDD End Date
MPST Master Planning Code IY SVMPST From Item bal F4102
EV01 Generation Type IY PO $$GEN from Process Options
TYPF Forecast Type 1 I $$TYPF1 from Process Options
TYPF Forecast Type 2 I $$TYPF2 from Process Options
TYPF Forecast Type 3 I $$TYPF3 from Process Options
TYPF Forecast Type 4 I $$TYPF4 from Process Options
TYPF Forecast Type 5 I $$TYPF5 from Process Options
TYPF MPS Forecast Type I $$MTYF from Process Option
EV01 Suppress Error Message I ' ' - Display Errors '1' -
Suppress Error Messages
ERRC Error Code O '0' - Success (Default) '1' -
Error in function
DTAI Error Message ID O Blanks - Success '3143' -
Errors
DATE04 Forecast Beginning Date I $$FBDT
EV03 Forecast Consumption Flag I '1' for Forecast Consumption
Processing is On. ($$FCP)
MPSP Time Fence Rule I $$SFOG
MCU Consolidation Branch I If " " then use Input Branch
else use
this.
^
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
| ||||
jdFromDate | EFFF | JDEDATE | NONE | NONE |
A date that indicates one of the following:
o When a component part goes into effect on a bill of material
o When a routing step goes into
| ||||
cMasterPlanningCode | MPST | char | NONE | NONE |
A code that indicates how Master Production Schedule (MPS), Material Requirements Planning (MRP), or Distribution Requirements
| ||||
cGenerationType | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szForecastType1 | 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
| ||||
szForecastType2 | 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
| ||||
szForecastType3 | 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
| ||||
szForecastType4 | 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
| ||||
szForecastType5 | 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
| ||||
szMPSForecastType | 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
| ||||
cSuppressErrorMessage | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cErrorCode | ERRC | char | NONE | NONE |
This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document
| ||||
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
| ||||
szJobNumber | JOB | char | NONE | NONE |
Job Number | ||||
jdThruDate | EFFT | JDEDATE | NONE | NONE |
A date that indicates one of the following:
o When a component part is no longer in effect on a bill of material
o When a routing step is no
| ||||
jdForecastBeginningDate | DATE04 | JDEDATE | NONE | NONE |
Event point for JDE Date. | ||||
cForecastConsumptionFlag | EV03 | char | NONE | NONE |
A radio button that specifies the level at which trace/track result is to be displayed. Select the Detail to display all transactions except IB, IX,
| ||||
cTimeFenceRule | MPSP | char | NONE | NONE |
A code (system 34, table TF) that the system uses in conjunction with the Planning Time Fence Days field to determine how forecast
| ||||
szConsolidationBranch | 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
| ||||
cForecastIncluded | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
jdGenerationDate | DATE01 | JDEDATE | OPT | NONE |
Event point for JDE Date. | ||||
cMode | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
jdPlanDate | PLDT | JDEDATE | OPT | NONE |
A value that identifies the planned date. | ||||
jdStartDate | DTE | JDEDATE | OPT | NONE |
You can enter a date with or without slashes (/) or dashes (-) as separators.
If you leave a date entry field blank, the system supplies the
| ||||
nNoOfBucketlessDates | INT01 | integer | OPT | NONE |
Number of Days in Future to Query for Responses Due. | ||||
cIncludeShippedQuantities | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
cNumberOfBranches | INT01 | integer | OPT | NONE |
Number of Days in Future to Query for Responses Due. | ||||
szComputerID | CTID | char | OPT | NONE |
cSupplyDemandExists | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
cInterplantConsumesForecast | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
jdBeginDate | DTE | JDEDATE | OPT | NONE |
You can enter a date with or without slashes (/) or dashes (-) as separators.
If you leave a date entry field blank, the system supplies the
| ||||
cPotencyControlFlag | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
mnStandardPotency | STDP | MATH_NUMERIC | OPT | NONE |
The percentage of active ingredients normally found in an item. | ||||
cPotencyUnitFlag | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
szUnitOfMeasurePrimary | UOM1 | char | OPT | NONE |
A user defined code (00/UM) that identifies the unit of measure that the system uses to express the quantity of an item, for example, EA
| ||||
nNumberOfPastDuePeriods | INT01 | integer | OPT | NONE |
Number of Days in Future to Query for Responses Due. | ||||
cConsolidationMethod | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
szStandardUOMConversion | TFLA | char | OPT | NONE |
Allows you to bypass the item-specific unit of measure and use the standard unit of measure. Valid values are:
blank Use the item-specific
| ||||
szDecreaseSOQtyDesc | DSC1 | char | OPT | NONE |
Brief information about an item; a remark or an explanation. | ||||
szIncreaseSOQtyDesc | DSC1 | char | OPT | NONE |
Brief information about an item; a remark or an explanation. | ||||
szDeferSODesc | DSC1 | char | OPT | NONE |
Brief information about an item; a remark or an explanation. | ||||
szCancelSODesc | DSC1 | char | OPT | NONE |
Brief information about an item; a remark or an explanation. | ||||
szExpediteSODesc | DSC1 | char | OPT | NONE |
Brief information about an item; a remark or an explanation. | ||||
cWarningMessageFlag | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
mnF3411UniqueKeyID | UKID | MATH_NUMERIC | OPT | NONE |
This field is a unique number used to identify a record in a file. | ||||
cMRPItemDisplayCode | MRPD | char | OPT | NONE |
This code may be used as an additional field to select Item information to print on reports. Once values are loaded into this field, The
| ||||
szDateBranch | 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
| ||||
szProgramId | PID | char | OPT | NONE |
The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry
| ||||
mnUniqueKeyIDOffset | MATH01 | MATH_NUMERIC | OPT | NONE |
- - - Good Performance Low Value. | ||||
cSalesOrderIncluded | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
cProjectPlanning | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
mnSequenceNumber | SEQN | MATH_NUMERIC | OPT | NONE |
A number used to organize the table into a logical group for online viewing and reporting. | ||||
szUserId | USER | char | OPT | NONE |
The code that identifies a user profile. | ||||
jdMessageTimeFenceDate | DATE01 | JDEDATE | OPT | NONE |
Event point for JDE Date. | ||||
cCustomerAddressRltnship | FCCR | char | OPT | NONE |
|
B3401290 Cache, Process MRP Item Quantities |
F3460 Forecast File |