1.Functional Description
1.1Purpose
This function will perform Get, Add, Update, Delete, Delete All, Get Next, Add/Update, Terminate, and
Close Cursor functions on the Work Center Rates cache used in the Work Center Rates Master Business
Function.
The calling application is responsible for loading all appropriate key values to the data structure
and identifying the number of keys to use in retrieval/update processes.
'2' Add - add a cache element.
'3' Update - update a cache element.
'4' Delete - delete a cache element.
'5' Delete All - delete all cache elements
'6' Get Next - retrieve the next cache element
'7' Add/Update - will add if element does not exist, will change if it does exist.
'8' Terminate - terminate cache
'9' Close cursor - frees memory for a cache cursor
key values for a Get, Update, Delete, Get Next, and Add/Update.
A zero may be passed to retrieve or update the first record.
1.3Special Logic
There is no special logic within this function.
2.Technical Specifications
2.4Processing
I. Perform setup functions
B. Set DS Cache Error Code = '0';
C. If not successful Set error "032E," "Error Processing Cache".
II. Processing Based on Mode.
2.Retrieve the first element on the cache matching the key values passed as input; the
number of keys to be used is passed in the input parameters, If "0" fetch first element in the
list.
3.Load the values from the retrieved element into the data structure to be passed back to
the calling program.
4.If get fails DS Cache Error Code = '6'.
B.If Process Mode is "2" - ADD (same logic as mode "7").
2.Insert a new cache element with values from data structure.
3.If add fails set error "032E" and set DS Cache Error Code = '4'.
2.Insert a new cache element with values from data structure.
3.If add fails set error "032E" and set DS Cache Error Code = '4'.
2.If delete fails DS Cache Error Code = '5'.
E.If Process Mode is "5" - DELETE ALL:
2.If delete fails DS Cache Error Code = '5'.
cursor should have been set through a previous "Get" action, i.e. process mode "1", if number of
keys is "0" then fetch next record with out using any key).
2.Load the values from the retrieved element into the data structure to be passed back to
the calling program.
3.If there are no more elements close cursor and set DS Cache Error Code = '1'.
G.If Process Mode is "7" - ADD/UPDATE:
2.Insert a new cache element with values from data structure.
3.If add fails set error "032E" and set DS Cache Error Code = '4'.
D3001870 - Cache Process Work Center Rates
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnJobnumber | JOBS | MATH_NUMERIC | NONE | NONE |
The job number (work station ID) which executed the particular job. | ||||
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
| ||||
szCostMethod | LEDG | char | NONE | NONE |
A user defined code (40/CM) that specifies the basis for calculating item costs. Cost methods 01 through 19 are reserved for J.D. Edwards
| ||||
mnDirectLaborFroz | STLF | MATH_NUMERIC | NONE | NONE |
This rate, in cost per hour, is the rate used to calculate the standard labor cost as of the last simulation and update. | ||||
mnDirectLaborSim | XSDL | MATH_NUMERIC | NONE | NONE |
A rate, in cost per person per hour, that the system uses with the Run Labor hours of the associated routing to calculate the standard run
| ||||
mnSetupLaborFroz | STFF | MATH_NUMERIC | NONE | NONE |
This rate, in cost per hour, is the rate used to calculate the standard setup labor cost as of the last simulation and update. | ||||
mnSetupLaborSim | XSSL | MATH_NUMERIC | NONE | NONE |
A rate that the system uses with the Setup Labor Hours of the associated routing to calculate the standard setup labor cost. | ||||
mnIndirectLaborFroz | SIDL | MATH_NUMERIC | NONE | NONE |
This rate, in cost per hour, is the rate used to calculate the standard indirect labor cost as of the last simulation and update. | ||||
mnIndirectLaborSim | XSIL | MATH_NUMERIC | NONE | NONE |
This rate, in cost per hour, is used with the indirect labor hours field of the associated routing to calculate the standard indirect labor cost. | ||||
mnLaborVarOHFroz | STRF | MATH_NUMERIC | NONE | NONE |
This rate, in cost per hour or percent of labor, is the rate used to calculate the standard variable labor overhead cost as of the last
| ||||
mnLaborVarOHSim | XSVO | MATH_NUMERIC | NONE | NONE |
A rate or percent, as determined on Manufacturing Constants, used to calculate the standard variable labor overhead cost. If this field is a
| ||||
mnLaborFixedOHFroz | STRZ | MATH_NUMERIC | NONE | NONE |
This rate, in cost per hour or percent of labor, is the rate used to calculate the standard fixed labor overhead cost as of the last simulation
| ||||
mnLaborFixedOHSim | XSFO | MATH_NUMERIC | NONE | NONE |
A rate or percent, as determined on Manufacturing Constants, used to calculate the standard fixed labor overhead cost. If this field is a rate,
| ||||
mnMachineRunFroz | MSFR | MATH_NUMERIC | NONE | NONE |
This rate, in cost per hour, is the rate used to calculate the standard machine cost as of the last simulation and update. | ||||
mnMachineRunSim | XSMR | MATH_NUMERIC | NONE | NONE |
A rate that the system uses with the Run Machine hours of the associated routing to calculate the standard machine labor cost. | ||||
mnMachineVarOHFroz | MSTF | MATH_NUMERIC | NONE | NONE |
This rate, in cost per hour, is the rate used to calculate the standard machine cost as of the last simulation and update. | ||||
mnMachineVarOHSim | XSMV | MATH_NUMERIC | NONE | NONE |
A rate or percent, as determined on Manufacturing Constants, used to calculate the future standard machine overhead cost. If this field is a
| ||||
mnMachineFixedOHFroz | MSSF | MATH_NUMERIC | NONE | NONE |
This rate, in cost per hour or percent of labor, is the rate used to calculate the standard fixed machine overhead cost as of the last
| ||||
mnMachineFixedOHSim | XSMF | MATH_NUMERIC | NONE | NONE |
A rate or percent, as determined on Manufacturing Constants, used to calculate the standard fixed machine overhead cost. If this field is a
| ||||
mnProductionHours | STAF | MATH_NUMERIC | NONE | NONE |
Future use. The average of the standard time (hours) worked per period at a work center. | ||||
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
| ||||
cActionCode | ACTN | char | NONE | NONE |
A code that specifies the action that is performed. Valid values are: A Add C Change | ||||
nNumberOfKeys | INT01 | integer | NONE | NONE |
Number of Days in Future to Query for Responses Due. | ||||
cProcessMode | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cReturnCursor | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
idCacheCurorID | GENLNG | ID | NONE | NONE |
General purpose ID variable. | ||||
cCacheCodeError | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
cSuppressErrorMessages | EV01 | char | NONE | NONE |
An option that specifies the type of processing for an event. | ||||
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 | MMCU | char | OPT | NONE |
A code that represents a high-level business unit. Use this code to refer to a branch or plant that might have departments or jobs, which
|
None |
None |