PAINCICOST – Employee Incident Costs

System
Personnel (PA)
Prefix
PAI
Primary key
COMPANY, EMPLOYEE, ESTABLISHMENT, INCIDENT-NBR, SEQ-NBR
Fields
22
Updated by
10 programs
Referenced by
0 programs

PAINCICOST is the Employee Incident Costs table in Lawson Personnel (prefix PAI). It is indexed by COMPANY, EMPLOYEE, ESTABLISHMENT, INCIDENT-NBR, SEQ-NBR (PAISET1); alternate indexes: PAISET2. It is related 1:1 to CUCODES, PRSYSTEM, PCODES, EMPLOYEE, OSHESTAB, GLMASTER, OSHA and PAEMPLOYEE. It is updated by HR00.1, HR01.1, HR11.1, PA115, PA290, PA372, PA490, PA590 and 2 more. The table has 22 fields, 2 indexes and 10 documented relations.

About PAINCICOST

No description in the Lawson data dictionary.

Fields (22)

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

Field / columnTypeDescription & valuesUpdated by
PAI-COMPANY PK
COMPANY
Numeric 4PA590, PA90.3
PAI-EMPLOYEE PK
EMPLOYEE
Numeric 9Contains the employee number. Each person employed by the company is assigned a unique number. The system uses the employee number to correlate all of the information related to that person.PA590, PA90.3
PAI-ESTABLISHMENT PK
ESTABLISHMENT
Alpha 10Contains the establishment where the incident occurred.PA590, PA90.3
PAI-INCIDENT-NBR PK
INCIDENT_NBR
Numeric 4Contains the incident report number.PA590, PA90.3
PAI-SEQ-NBR PK
SEQ_NBR
Numeric 4An automatically assigned sequence number.PA590, PA90.3
PAI-EFFECT-DATE
EFFECT_DATE
Numeric 8 (yyyymmdd)Contains the date for the incident cost.PA590, PA90.3
PAI-COST-CAT
COST_CAT
Alpha 10Contains the user-defined incident cost category.PA590, PA90.3
PAI-COST-TYPE
COST_TYPE
Alpha 10Contains the user-defined incident cost type.PA590, PA90.3
PAI-COST
COST
Signed 11.2Contains the incident cost.PA590, PA90.3
PAI-EXP-COMPANY
EXP_COMPANY
Numeric 4Contains the distribution expense company where the cost should be posted.PA590, PA90.3
PAI-EXP-ACCT-UNIT
EXP_ACCT_UNIT
Alpha 15Contains the expense accounting unit where the incident cost should be posted.PA590, PA90.3
PAI-EXP-ACCOUNT
EXP_ACCOUNT
Numeric 6Contains the expense account where the incident cost should be posted.PA590, PA90.3
PAI-EXP-SUB-ACCT
EXP_SUB_ACCT
Numeric 4Contains the expense sub account where the incident costs should be posted.PA590, PA90.3
PAI-COMMENT
COMMENT
Alpha 40 (Lower Case)This field contains the comment narrative.PA590, PA90.3
PAI-DATE-STAMP
DATE_STAMP
Numeric 8 (yyyymmdd)This field contains the server date (month, date, and year) of the last change to this record.PA590, PA90.3
PAI-TIME-STAMP
TIME_STAMP
Numeric 6 (hhmmss)Contains the server time (hour, minute, and second) when the record was last changed.PA590, PA90.3
PAI-USER-ID
USER_ID
Alpha 10 (Lower Case)PA590, PA90.3
PAI-CURRENCY-CODE
CURRENCY_CODE
Alpha 5Contains the currency in which the incident cost is recorded.PA590, PA90.3
PAI-CURR-ND
CURR_ND
Numeric 1The number of decimals assigned to a particular account as determined by the account currency.PA590, PA90.3
PAI-BASE-CURRENCY
BASE_CURRENCY
Alpha 5Contains the company's base currency.PA590, PA90.3
PAI-BASE-ND
BASE_ND
Numeric 1The number of decimal positions defined for the company base currency.PA590, PA90.3
PAI-BASE-AMOUNT
BASE_AMOUNT
Signed 15.2Contains the incident cost in the company's base currency.PA590, PA90.3

Indexes (2)

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

IndexKeysFlagsConditionUsed in
PAISET1COMPANY, EMPLOYEE, ESTABLISHMENT, INCIDENT-NBR, SEQ-NBRPrimaryHR00.1, HR01.1, HR11.1, PA115, PA290, PA372, PA490, PA590 +2 more
PAISET2COMPANY, EMPLOYEE, ESTABLISHMENT, INCIDENT-NBR*, EFFECT-DATE*, SEQ-NBR*KeyChangePA290, PA90.3

Relations

One to one (10) — lookups and parents

RelationTableRulesConditionField map
Base CurrencyCUCODESRequiredWhen (PAI-CURRENCY-CODE != Spaces)PAI-BASE-CURRENCYCUC-CURRENCY-CODE
CompanyPRSYSTEMRequiredPAI-COMPANYPRS-COMPANY, SpacesPRS-PROCESS-LEVEL
Cost CategoryPCODESRequiredWhen (PAI-COST-CAT != Spaces)"OC"PCO-TYPE, PAI-COST-CATPCO-CODE
Cost TypePCODESRequiredWhen (PAI-COST-TYPE != Spaces)"OT"PCO-TYPE, PAI-COST-TYPEPCO-CODE
CurrencyCUCODESRequiredWhen (PAI-CURRENCY-CODE != Spaces)PAI-CURRENCY-CODECUC-CURRENCY-CODE
EmployeeEMPLOYEERequiredPAI-COMPANYEMP-COMPANY, PAI-EMPLOYEEEMP-EMPLOYEE
EstablishmentOSHESTABRequiredWhen (PAI-ESTABLISHMENT != Spaces)PAI-COMPANYOTB-COMPANY, PAI-ESTABLISHMENTOTB-ESTABLISHMENT
Expense AcctGLMASTERRequiredWhen (PAI-EXP-ACCT-UNIT != Spaces) Or (PAI-EXP-ACCOUNT != Zeroes)PAI-EXP-COMPANYGLM-COMPANY, PAI-EXP-ACCT-UNITGLM-ACCT-UNIT, PAI-EXP-ACCOUNTGLM-ACCOUNT, PAI-EXP-SUB-ACCTGLM-SUB-ACCOUNT
IncidentOSHARequiredPAI-COMPANYOSH-COMPANY, PAI-EMPLOYEEOSH-EMPLOYEE, PAI-ESTABLISHMENTOSH-ESTABLISHMENT, PAI-INCIDENT-NBROSH-SEQ-NBR
PaemployeePAEMPLOYEERequiredPAI-COMPANYPEM-COMPANY, PAI-EMPLOYEEPEM-EMPLOYEE

Programs

Updated by (10)