1.Functional Description
1.1Purpose
The purpose of this function is to load date values into the Date Array based on Work Center, Unit Of
Measure, Capacity Mode and Start Date values entered.
1.2Setup Notes and Prerequisites
1.3Special Logic
2.Technical Specifications
WkNoOfDates = 0
If NumberPastDueDates <> 0, 1, or 2
NumberPastDueDates = 0
End
Allocate memory for the Capacity Load Date Array (max of NumberOfDates elements)
If the memory allocation fails
Exit the function with an error return code
End
WkStartDate = Start Date
Open Table F3313.
If open table fails
Exit the function with an error return code
End
If NumberPastDueDates > 0
Use the F3313 index which has CRSTRT sorted in descending order.
Select records from F3313 using key values Capacity Mode, Work Center, Unit of Measure,
Fetch the first selected record.
If the fetch is successful
WkStartDate = CRSTRT from F3313 record
Fetch the next record
If the fetch is successful
If NumberPastDueDates = 2
Fetch the next record
If the fetch is successful
WkStartDate = CRSTRT from F3313 record
End
End
Select records based on the input values for Work Center, Unit of Measure, WkStartDate(ascending
order), Capacity Mode, and Capacity Type = 10.
While fetch is successful
Fetch the next record from F3313
If the fetch is successful
End
Close Table F3313
^
D3300250 - F3313, Initialize Capacity Load Date Array
Data Item Data Structure DescriptionI/ORequiredNotes
MCU Work Center IY
STRT Start Date I
UM Unit Of Measure IY
CAPM Capacity Mode IY
INT01 Number Of Dates I/OY Input the max number of dates
to load
into the array. The program
returns
the actual number of dates
loaded.
INT02 Number Past Due Dates IN Allowed values are 0, 1, and
2.
Default is 0.
GENLNG Capacity Load Date Array PointerOY
SUPPS Suppress Error Message IY '1' = Suppress error messages
' ' = Allow error messages
DTAI Error Message ID OY ' ' = success
'3143' = Table access error
'4374' = Memory allocation
failed
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szWorkCenter | 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
| ||||
jdStartDate | STRT | JDEDATE | NONE | NONE |
The start date for the order. You can enter this date manually, or have the system calculate it using a backscheduling routine. The routine
| ||||
szUnitOfMeasure | UM | char | NONE | NONE |
A user defined code (00/UM) that identifies the unit of measurement for an amount or quantity. For example, it can represent a barrel, box,
| ||||
cCapacityMode | CAPM | char | NONE | NONE |
A code indicating which planning is being used. Valid values are:
1 Resource Requirements Planning
2 Rough Cut Capacity
| ||||
nNumberOfDates | INT01 | integer | NONE | NONE |
Number of Days in Future to Query for Responses Due. | ||||
idDateArrayPointer | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
cSuppressErrorMessage | SUPPS | char | NONE | NONE |
A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.
0 = allow
| ||||
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
| ||||
nNumberPastDueDates | INT02 | integer | NONE | NONE |
Number of Days in the Past to Query for Quote Requests Received. | ||||
szWorkcenterBranch | WMCU | char | OPT | NONE |
This is the branch/plant to which the work center belongs and must exist in the business unit master (F0006) and branch plant constants file
|
None |
F3313 Capacity Load Table |