PAEMPCOSTS – Employee Costs

System
Personnel (PA)
Prefix
EMC
Primary key
COMPANY, EMPLOYEE, COURSE, DATE, COST-TYPE, COST-CAT
Fields
17
Updated by
3 programs
Referenced by
1 program

PAEMPCOSTS is the Employee Costs table in Lawson Personnel (prefix EMC). It is indexed by COMPANY, EMPLOYEE, COURSE, DATE, COST-TYPE, COST-CAT (EMCSET1); alternate indexes: EMCSET2. It is related 1:1 to GLMASTER, CUCODES, PCODES, PRSYSTEM, EMPLOYEE and PAEMPLOYEE and 1:M to PACOURSE. It is updated by HR11.1, PA115 and TR12.1 and referenced by TR210. The table has 17 fields, 2 indexes and 9 documented relations.

About PAEMPCOSTS

Contains employee cost and account reference information. TR12.1 (Employee Costs) is the primary program that updates this file.

Fields (17)

Column = COBOL field name without the EMC- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.

Field / columnTypeDescription & valuesUpdated by
EMC-COMPANY PK
COMPANY
Numeric 4Contains the company number.TR12.1
EMC-EMPLOYEE PK
EMPLOYEE
Numeric 9Contains the employee number.TR12.1
EMC-COURSE PK
COURSE
Alpha 10Contains the course code.TR12.1
EMC-COST-TYPE PK
COST_TYPE
Alpha 10Contains the specific cost classification.TR12.1
EMC-DATE PK
DATE
Numeric 8 (yyyymmdd)Contains the date of the cost.TR12.1
EMC-COST-CAT PK
COST_CAT
Alpha 10Contains the general cost classification.TR12.1
EMC-COST
COST
Signed 11.2Contains the amount of the cost.TR12.1
EMC-DIST-COMPANY
DIST_COMPANY
Numeric 4Contains the distribution company to which a cost could be posted.TR12.1
EMC-DST-ACCT-UNIT
DST_ACCT_UNIT
Alpha 15Contains the general ledger accounting unit to which the amount could be posted.TR12.1
EMC-DST-ACCOUNT
DST_ACCOUNT
Numeric 6Contains the general ledger account to which the amount could be posted.TR12.1
EMC-DST-SUB-ACCT
DST_SUB_ACCT
Numeric 4Contains the general ledger subaccount to which the amount could be posted.TR12.1
EMC-COST-DESIGNATR
COST_DESIGNATR
Alpha 1Indicates whether the cost is actual or budgeted.
  • A Actual
  • B Budget
TR12.1
EMC-CURRENCY-CODE
CURRENCY_CODE
Alpha 5Contains the currency in which the cost is recorded.TR12.1
EMC-CURR-ND
CURR_ND
Numeric 1The number of decimals assigned to a particular account as determined by the account currency.TR12.1
EMC-BASE-CURRENCY
BASE_CURRENCY
Alpha 5Contains the training system's base currency.TR12.1
EMC-BASE-ND
BASE_ND
Numeric 1Indicates the number of decimal positions defined for the training system's base currency.TR12.1
EMC-BASE-AMOUNT
BASE_AMOUNT
Signed 15.2Contains the cost in the training system's base currency.TR12.1

Indexes (2)

Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
EMCSET1COMPANY, EMPLOYEE, COURSE, DATE, COST-TYPE, COST-CATPrimaryHR11.1, PA115, TR12.1, TR210
EMCSET2COURSE, COMPANY, EMPLOYEE, COST-TYPE, COST-CAT, DATETR210

Relations

One to one (8) — lookups and parents

RelationTableRulesConditionField map
AccountsGLMASTERNot RequiredValid When (EMC-DIST-COMPANY != Zeroes) And (EMC-DST-ACCT-UNIT != Spaces) And (EMC-DST-ACCOUNT != Zeroes)EMC-DIST-COMPANYGLM-COMPANY, EMC-DST-ACCT-UNITGLM-ACCT-UNIT, EMC-DST-ACCOUNTGLM-ACCOUNT, EMC-DST-SUB-ACCTGLM-SUB-ACCOUNT
Base CurrencyCUCODESRequiredWhen EMC-CURRENCY-CODE != SpacesEMC-BASE-CURRENCYCUC-CURRENCY-CODE
CategoryPCODESNot RequiredValid When EMC-COST-CAT != Spaces"MC"PCO-TYPE, EMC-COST-CATPCO-CODE
CompanyPRSYSTEMRequiredEMC-COMPANYPRS-COMPANY, SpacesPRS-PROCESS-LEVEL
CurrencyCUCODESRequiredWhen EMC-CURRENCY-CODE != SpacesEMC-CURRENCY-CODECUC-CURRENCY-CODE
EmployeeEMPLOYEERequiredEMC-COMPANYEMP-COMPANY, EMC-EMPLOYEEEMP-EMPLOYEE
PaemployeePAEMPLOYEERequiredEMC-COMPANYPEM-COMPANY, EMC-EMPLOYEEPEM-EMPLOYEE
TypePCODESRequiredWhen EMC-COST-TYPE != Spaces"MT"PCO-TYPE, EMC-COST-TYPEPCO-CODE

One to many (1) — child tables

RelationTableRulesConditionField map
CoursePACOURSERequiredEMC-COURSECRS-COURSE, CRS-EFFECTIVE-DATE

Programs

Updated by (3)

Referenced by (1)