PAACTREAS – This table is used to hold reason codes.

System
Personnel (PA)
Prefix
CRE
Primary key
COMPANY, ACT-REASON-CD, ACTION-CODE
Fields
8
Updated by
3 programs
Referenced by
27 programs

PAACTREAS is the This table is used to hold reason codes. table in Lawson Personnel (prefix CRE). It is indexed by COMPANY, ACT-REASON-CD, ACTION-CODE (CRESET1); alternate indexes: CRESET2, CRESET3, CRESET4 and CRESET5. It is related 1:1 to PERSACTYPE and PRSYSTEM. It is updated by PA57.1, PA57.2 and PA57.3 and referenced by HCRE.1, HR00.1, HR170, HR200, HR51.2, HR51.6, HR70.1, LT101 and 19 more. The table has 8 fields, 5 indexes and 2 documented relations.

About PAACTREAS

This table is used to hold reason codes. The reason codes can be generic and used for any personnel action or defined specifically for one of more personnel actions.

Fields (8)

Column = COBOL field name without the CRE- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored. PK = primary key (present in every index); SETn = leading/alternate key of that index.

Field / columnTypeDescription & valuesUpdated by
#CRE-COMPANY PK
COMPANY
Numeric 4Contains the HR company.PA57.1, PA57.2, PA57.3
#CRE-ACT-REASON-CD PK
ACT_REASON_CD
Alpha 10This is the reason code that can be used for actions with a specific action code or in general.PA57.1, PA57.2, PA57.3
#CRE-DESCRIPTION
DESCRIPTION
Alpha 30 (Lower Case)—PA57.1, PA57.2, PA57.3
#CRE-ACTION-CODE PK
ACTION_CODE
Alpha 10—PA57.1, PA57.2, PA57.3
#CRE-ACTIVE-FLAG
ACTIVE_FLAG
Alpha 1The Active flag of the reason code.
  • 1 Active
  • 2 Inactive
PA57.1, PA57.2, PA57.3
#CRE-DATE-STAMP
DATE_STAMP
Numeric 8 (yyyymmdd)—PA57.1, PA57.2, PA57.3
#CRE-TIME-STAMP
TIME_STAMP
Numeric 6 (hhmmss)—PA57.1, PA57.2, PA57.3
#CRE-USER-ID
USER_ID
Alpha 10 (Lower Case)—PA57.1, PA57.2, PA57.3

Indexes (5)

Keys are listed in index order; ↓ marks a descending key. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
CRESET1
  1. COMPANY
  2. ACT-REASON-CD
  3. ACTION-CODE
PrimaryHCRE.1, HR00.1, HR170, HR200, HR70.1, LT101, LT111, PA105 +11 more
CRESET2
  1. COMPANY
  2. ACTION-CODE
  3. ACT-REASON-CD
PA57.3
CRESET3
  1. COMPANY
  2. ACT-REASON-CD
  3. ACTION-CODE
SubsetWhere (ACTION-CODE = Spaces)HR51.2, HR51.6, PA102, PA13.1, PA13.2, PA52.1, PA52.2, PA52.3 +5 more
CRESET4
  1. COMPANY
  2. ACTION-CODE
  3. ACT-REASON-CD
SubsetWhere (ACTION-CODE != Spaces)HR51.2, HR51.6, LT101, LT111, PA102, PA13.1, PA13.2, PA257 +6 more
CRESET5
  1. COMPANY
  2. ACT-REASON-CD
  3. ACTION-CODE
SubsetWhere (ACTION-CODE != Spaces)PA257, PA57.1, PA57.2

Relations

Relationship map — 1:1 lookups/parents on the left, 1:M children on the right (up to 14 each)
PERSACTYPEPRSYSTEMPAACTREAS

One to one (2) — lookups and parents

RelationTableRulesConditionField map
Action CodePERSACTYPERequiredWhen (CRE-ACTION-CODE != Spaces)
CRE-COMPANY→PAT-COMPANY
CRE-ACTION-CODE→PAT-ACTION-CODE
CompanyPRSYSTEMRequired
CRE-COMPANY→PRS-COMPANY
Spaces→PRS-PROCESS-LEVEL

Programs

Updated by (3)

Referenced by (27)