1.Functional Description
1.1Purpose
This function reads Capacity Load records (F3313) for the input Work Center with the specified
Capacity Quantity Type (CQT) and accumulates the load values into the Capacity Load Array by bucket dates.
These quantities are accumulated for all Work Centers within a Dispatch Group so that load records can
be created for the Dispatch Group.
1.2Setup Notes and Prerequisites
The calling application must call B3300140, RRP, Initialize Bucket Dates, before calling this
function. The Bucket Date Array pointer returned by B3300140 must be passed as input to this function.
The calling application must call B3300150 (RRP, Calculate Rated Capacity) and B3300160 (RRP,
Calculate Loaded Capacity) to allocate and load the Rated and Loaded Capacity arrays.
1.3Special Logic
2.Technical Specifications
Select records from F3313 using key values CRCAPM = CapacityMode, CRMCU = WorkCenter,
CRUM = UnitOfMeasure, CRCQT = QuantityType
Do while the F3313 fetch is successful
Fetch the next F3313 record
If successful
If CRSTRT = 0 or CRSTRT = 1
CRSTRT = BucketDateArray[1]
Else
If CRSTRT = 2
CRSTRT = BucketDateArray[2]
End
End
the date that is found.
CapacityLoadArray[B] = CapacityLoadArray[B] + CRTRQT
End
End
End
^
D3300180 - CRP, Accumulate Dispatch Group Load
Data Item Data Structure DescriptionI/ORequiredNotes
CAPM Capacity Mode IY
MCU Work Center IY
UM Unit Of Measure IY
CQT Quantity Type IY
GENLNG Bucket Date Array Ptr IY From B3300140
GENLNG Capacity Load Array Ptr IY From B3300150 or B3300160
EV01 Clear Load Array IY '1' = zero the Capacity Load
Array
before processing
' ' = do not clear the array
INT01 Number Of Periods IY
SUPPS Suppress Error Message I '1' = Suppress runtime error
message handling
' ' = Allow runtime error
message
DTAI Error Message ID O " " = Success
"3143" = Table access error
"4363" = Null Pointer
^
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cCapacityMode | CAPM | char | NONE | NONE |
A code indicating which planning is being used. Valid values are:
1 Resource Requirements Planning
2 Rough Cut Capacity
| ||||
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
| ||||
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,
| ||||
szCapacityType | CQT | char | NONE | NONE |
A code that distinguishes different quantities generated in the Capacity Planning system. | ||||
idBucketDateArrayPtr | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
idCapacityLoadArrayPtr | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
iNumberOfPeriods | INT01 | integer | NONE | NONE |
Number of Days in Future to Query for Responses Due. | ||||
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
| ||||
cClearLoadArray | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
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 |