SendErrorToMessageCenter

Update WC Resource Units

Minor Business Rule

Object Name: B3000820

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description
1.1Purpose
This function will:
Update or add a resource unit (F3007) record for the key passed in.


1.2Setup Notes and Prerequisites

1.3Special Logic

2.Technical Specifications

2.4Processing
2.4.1 Attempt to fetch a work day calendar (F0007) for the requested Branch MMCU, Year YR, Month MT, 
and Shift SHFT. If not found, attempt to find a calendar record with Branch equal to "         ALL".  

If not found, give calendar error.


2.4.2 Attempt to fetch a resource unit record (F3007) for the key (Branch MMCU, Work center MCU, Year 

YR, Month MT, Unit of measure UM, Shift SHFT and Type STYL).  If found, update the record with the 

new resource unit.  If not found, insert a record with the new resource unit.


2.4.3 If the resource record just updated/added had a shift not equal to blank, also update the blank 

"All shifts" record to indicate the new total.


Data Structure

D3000821 - Send Error To Message Center

Parameter NameData ItemData TypeReq/OptI/O/Both
cErrorTypeEV01charREQINPUT

An option that specifies the type of processing for an event.

szErrorMessageKeyEKEYcharREQINPUT

A 4-digit number assigned to all errors. When this number is used in the error message facility (F7 from any form), you may enter a specific 
error message number and press F13 to automatically exit to the revisions program referenced within the text of the error message. This 
function applies only to error messages that refer to items such as user defined codes.

szBranchMMCUcharOPTNONE

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 
represent lower-level business units, subordinate to it. For example:     o Branch/Plant (MMCU)     o Dept A (MCU)     o Dept B (MCU)     o Job 123 
(MCU) Business unit security is based on the higher-level business unit.

mnCalendarMonthMTMATH_NUMERICOPTNONE

A number that corresponds to the month in a calendar year. 

mnCalendarYearYRMATH_NUMERICOPTNONE

The calendar year for this calendar.

Related Functions

B9800100 Get Audit Information

Related Tables

F0007 Workday Calendar
F3007 Work Center Resource Units
UpdateWCResourceUnits

UpdateWCResourceUnits

Update WC Resource Units

Major Business Rule

Object Name: B3000820

Parent DLL: CMFGBASE

Location: Client/Server

Language: C

1.Functional Description
1.1Purpose

This function will:

Update or add a resource unit (F3007) record for the key passed in.


1.2Setup Notes and Prerequisites

1.3Special Logic

2.Technical Specifications

2.4Processing
2.4.1 Attempt to fetch a work day calendar (F0007) for the requested Branch MMCU, Year YR, Month MT, 

and Shift SHFT. If not found, attempt to find a calendar record with Branch equal to "         ALL".  

If not found, give calendar error.


2.4.2 Attempt to fetch a resource unit record (F3007) for the key (Branch MMCU, Work center MCU, Year 

YR, Month MT, Unit of measure UM, Shift SHFT and Type STYL).  If found, update the record with the 

new resource unit.  If not found, insert a record with the new resource unit.


2.4.3 If the resource record just updated/added had a shift not equal to blank, also update the blank 

"All shifts" record to indicate the new total.

Data Structure

D3000820 - Update WC Resource Units


Data Item    Data Structure Description   I/ORequired    Notes

MMCU         Branch                      I         Y


YR         CalendarYear                I          Y 


MT         CalendarMonth                I          Y


UM         UnitofMeasure                I         Y


RU01         ResourUnits                I         Y


WORE           WorkCenterEfficiency          I         N


WORU         WorkCenterUtilization    I         N


PID         ProgramID                I         Y     Application name that is calling 

                                                                 the function.


EV01         SuppressErrorMessages    I         N


DTAI         ErrorMessageID                O         N


MCU         Work Center                I         N


STYL         Business Unit Type          I         Y     (Added 1/27/96).


GENLNG   PPAT Work Field          I         N     (Added 3/9/98)


SHFT         Shift Code                I         N


SHF2         Shift 2                      I        N


SHF3         Shift 3                      I     N


SHF4         Shift 4                      I         N


SHF5         Shift 5                      I         N


SHF6         Shift 6                      I         N


RU02         Resource Units 2          I         N


RU03         Resource Units 3          I         N


RU04         Resource Units 4          I         N


RU05         Resource Units 5          I         N


RU06         Resource Units 6          I         N


EV01         Mfg Constants Shift 1    I         N


SHF2         Mfg Constants Shift 2    I         N


SHF3         Mfg Constants Shift 3    I         N


SHF4         Mfg Constants Shift 4    I         N


SHF5         Mfg Constants Shift 5    I         N


SHF6         Mfg Constants Shift 6    I         N



^

Parameter NameData ItemData TypeReq/OptI/O/Both
szBranchMMCUcharNONENONE

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 
represent lower-level business units, subordinate to it. For example:     o Branch/Plant (MMCU)     o Dept A (MCU)     o Dept B (MCU)     o Job 123 
(MCU) Business unit security is based on the higher-level business unit.

mnYearYRMATH_NUMERICNONENONE

The calendar year for this calendar.

mnMonthMTMATH_NUMERICNONENONE

A number that corresponds to the month in a calendar year. 

szUnitOfMeasureUMcharNONENONE

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, 
cubic meter, liter, hour, and so on.

mnResourceUnitsRU01MATH_NUMERICNONENONE

A number that specifies a quantity that the system uses to calculate capacity. You can enter this number as units, currency, hours, floor 
space, or so on.

mnWorkCenterEfficiencyWOREMATH_NUMERICNONENONE

A user defined value that indicates how efficiently a work center operates. This value usually refers to staff efficiency. When you enter a 
value in this field, and the Modify Cost by Work Center Efficiency field in the Job Shop Manufacturing Constants table (F3009) is set to Y, the 
system creates a new cost component (B4) from the cost calculated from the direct labor cost (B1). For example, if the constant is set to Y, the value 
of this field is 80%, and the direct labor cost is 10, the system creates a B4 cost component for 2 in the Item Cost Component Add-Ons table 
(F30026). The Refresh Resource Units program also uses this value as a default when calculating rated capacity. Enter percents as whole 
numbers. For example, enter 80% as 80.00. Note: The system expects that the routing times entered for each operator are the actual times it 
takes to complete an operation. Efficiency does not affect total cost. Efficiency does reassign some of the costs into different cost 
components. Efficiency does not change the duration or backscheduling of a work order.

mnWorkCenterUtilizationWORUMATH_NUMERICNONENONE

A percentage that indicates how intensively a work center is being used. This value usually refers to machine use. It is the ratio of the direct 
time charged for production activities to the planned hours. The Refresh Resource Units program also uses this value as a default when 
calculating rated capacity. Enter percents as whole numbers. For example, enter 80% as 80.00.

szProgramIdPIDcharNONENONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

cSuppressErrorMessagesERRcharNONENONE

The Data Field Error Code field is simply a generic data field to pass an error condition flag.  This field is one of the fields that make up the 
external parameter data structure of the Data Dictionary Server.

szErrorMessageIDDTAIcharNONENONE

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 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

szWorkCenterMCUcharNONENONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

szBusinessUnitTypeSTYLcharNONENONE

A user defined code (00/MC) that identifies the classification of the business unit.

idGenericLongGENLNGIDOPTNONE

General purpose ID variable.

cShiftCodeSHFTcharOPTNONE

A user defined code (00/SH) that identifies daily work shifts. In payroll systems, you can use a shift code to add a percentage or amount to 
the hourly rate on a timecard. For payroll and time entry: If an employee always works a shift for which a shift rate differential is applicable, 
enter that shift code on the employee's master record. When you enter the shift on the employee's master record, you do not need to enter the 
code on the timecard when you enter time. If an employee occasionally works a different shift, you enter the shift code on each applicable 
timecard to override the default value.

cShift2SHF2charOPTNONE

A user defined code (system 06, type SH) that identifies a secondary daily work shift. In manufacturing systems, up to six shift levels can be 
defined (each with a unique shift code assigned). The shift code is the identifier associated with a particular shift. Resource units for a Work 
Center can be broken down by the shift code.

cShift3SHF3charOPTNONE

A user defined code (system 06, type SH) that identifies a secondary daily work shift. In manufacturing systems, up to six shift levels can be 
defined (each with a unique shift code assigned). The shift code is the identifier associated with a particular shift. Resource units for a Work 
Center can be broken down by the shift code.

cShift4SHF4charOPTNONE

A user defined code (system 06, type SH) that identifies a secondary daily work shift. In manufacturing systems, up to six shift levels can be 
defined (each with a unique shift code assigned). The shift code is the identifier associated with a particular shift. Resource units for a Work 
Center can be broken down by the shift code.

cShift5SHF5charOPTNONE

A user defined code (system 06, type SH) that identifies a secondary daily work shift. In manufacturing systems, up to six shift levels can be 
defined (each with a unique shift code assigned). The shift code is the identifier associated with a particular shift. Resource units for a Work 
Center can be broken down by the shift code.

cShift6SHF6charOPTNONE

A user defined code (system 06, type SH) that identifies a secondary daily work shift. In manufacturing systems, up to six shift levels can be 
defined (each with a unique shift code assigned). The shift code is the identifier associated with a particular shift. Resource units for a Work 
Center can be broken down by the shift code.

mnResourceUnits2RU02MATH_NUMERICOPTNONE

A number that specifies a quantity that the system uses to calculate capacity. You can enter this number as units, currency, hours, floor 
space, or so on.

mnResourceUnits3RU03MATH_NUMERICOPTNONE

A number that specifies a quantity that the system uses to calculate capacity. You can enter this number as units, currency, hours, floor 
space, or so on.

mnResourceUnits4RU04MATH_NUMERICOPTNONE

A number that specifies a quantity that the system uses to calculate capacity. You can enter this number as units, currency, hours, floor 
space, or so on.

mnResourceUnits5RU05MATH_NUMERICOPTNONE

A number that specifies a quantity that the system uses to calculate capacity. You can enter this number as units, currency, hours, floor 
space, or so on.

mnResourceUnits6RU06MATH_NUMERICOPTNONE

A number that specifies a quantity that the system uses to calculate capacity. You can enter this number as units, currency, hours, floor 
space, or so on.

cMfgConstShift1EV01charOPTNONE

An option that specifies the type of processing for an event.

cMfgConstShift2SHF2charOPTNONE

A user defined code (system 06, type SH) that identifies a secondary daily work shift. In manufacturing systems, up to six shift levels can be 
defined (each with a unique shift code assigned). The shift code is the identifier associated with a particular shift. Resource units for a Work 
Center can be broken down by the shift code.

cMfgConstShift3SHF3charOPTNONE

A user defined code (system 06, type SH) that identifies a secondary daily work shift. In manufacturing systems, up to six shift levels can be 
defined (each with a unique shift code assigned). The shift code is the identifier associated with a particular shift. Resource units for a Work 
Center can be broken down by the shift code.

cMfgConstShift4SHF4charOPTNONE

A user defined code (system 06, type SH) that identifies a secondary daily work shift. In manufacturing systems, up to six shift levels can be 
defined (each with a unique shift code assigned). The shift code is the identifier associated with a particular shift. Resource units for a Work 
Center can be broken down by the shift code.

cMfgConstShift5SHF5charOPTNONE

A user defined code (system 06, type SH) that identifies a secondary daily work shift. In manufacturing systems, up to six shift levels can be 
defined (each with a unique shift code assigned). The shift code is the identifier associated with a particular shift. Resource units for a Work 
Center can be broken down by the shift code.

cMfgConstShift6SHF6charOPTNONE

A user defined code (system 06, type SH) that identifies a secondary daily work shift. In manufacturing systems, up to six shift levels can be 
defined (each with a unique shift code assigned). The shift code is the identifier associated with a particular shift. Resource units for a Work 
Center can be broken down by the shift code.

Related Functions

B9800100 Get Audit Information

Related Tables

F0007 Workday Calendar
F3007 Work Center Resource Units