1.Functional Description
This business function will Forward or Backward Schedule from the Input Date based on the Stocking
Type 'M' for Mfg Item and 'P' for Purchased Item and Calculate the Output Date. If the Item is Purchased
it will use the Calendar Days Otherwise it will Schedule based on Work days in the Calendar table
(F0007).
1.1Purpose
This function is used to calculate based on the Stocking Type, Lead time and Input date, the Output
date after Back/Forward Scheduling.
1.2Setup Notes and Prerequisites
The Lead Time must be calculated and rounded to nearest whole Number
The Special Handling Code for the Stocking Type from UDC table must be obtained and passed to the
function.
1.3Special Logic
None
2.Technical Specifications
The following actions have to be performed by the Business Function.
1. Initialize Variables and Defaults.
Output Date = Input Date
If Schedule Type = ' ', Schedule Type = 'B'.
If Input LTLV = Null, Input LTLV = 0.
If Input STKT = Blanks, Input STKT = 'P'.
Wk Lead Time = Input LTLV
2. Calculate Output Date
If Input STKT = 'P'
If Input Schedule Type = 'B'
Output Date = Output Date - Wk Lead Time
Else
Output Date = Output Date + Wk Lead Time
Endif
If Input Schedule Type = 'B'
Output Date = the date returned by B3401270
Output Date = the date returned by B3401270
Endif
If Input STKT = 'M'
Call B3100300 with Branch, Output Date, Schedule Type, Wk Lead Time and get Output Date
If Error in B3100300 Call
If Input Schedule Type = 'B'
Output Date = Output Date - Wk Lead Time
Else
Output Date = Output Date + Wk Lead Time
Endif
If Input Date Error Flag <> '1'
Write F3411 record with Output Date from B3100300, Inp ITM, MCU,
MSGT('A'), Inp Date Error Msg Desc, HCLD('A'), DRQJ(Input Date), Input PID, Input UKID
F3411 Unique ID = F3411 Unique ID + 1
Input Date Error Flag = '1'
Endif
Endif
Endif
3. If any Errors, Exit program with Error code = '1' and Error Message = '3143'
D3400540 - MRP, Calculate Schedule Dates for Planning
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cStockingType | STKT | char | NONE | NONE |
A user defined code (41/I) that indicates how you stock an item, for example, as finished goods or as raw materials. The following stocking
| ||||
jdInputDate | DATE01 | JDEDATE | NONE | NONE |
Event point for JDE Date. | ||||
cScheduleType | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
mnLeadTimeInDays | LTLV | MATH_NUMERIC | NONE | NONE |
A value that represents the leadtime for an item at its assigned level in the production process, as defined on Plant Manufacturing Data.
| ||||
cSuppressErrorMessage | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
jdOutputDate | DATE02 | JDEDATE | NONE | NONE |
Event point for JDE Date. | ||||
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
| ||||
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
| ||||
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
| ||||
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
| ||||
mnF3411UniqueID | UKID | MATH_NUMERIC | NONE | NONE |
This field is a unique number used to identify a record in a file. | ||||
szDateErrorMsgDesc | DSC1 | char | NONE | NONE |
Brief information about an item; a remark or an explanation. | ||||
cDateErrorFlag | EV02 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
szJobNumber | JOB | char | NONE | NONE |
Job Number | ||||
mnUniqueKeyIDOffset | MATH01 | MATH_NUMERIC | OPT | NONE |
- - - Good Performance Low Value. | ||||
nNumberofDates | INT01 | integer | OPT | NONE |
Number of Days in Future to Query for Responses Due. |
B3100300 Forward Backward Schedule Dates | ||||
B3401270 Cache, Process MRP Bucketless Dates | ||||
B9800100 Get Audit Information |
F3411 MPS/MRP/DRP Message File |