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.

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 10PA57.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 marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
CRESET1COMPANY, ACT-REASON-CD, ACTION-CODEPrimaryHCRE.1, HR00.1, HR170, HR200, HR70.1, LT101, LT111, PA105 +11 more
CRESET2COMPANY, ACTION-CODE, ACT-REASON-CDPA57.3
CRESET3COMPANY, ACT-REASON-CD, ACTION-CODESubsetWhere (ACTION-CODE = Spaces)HR51.2, HR51.6, PA102, PA13.1, PA13.2, PA52.1, PA52.2, PA52.3 +5 more
CRESET4COMPANY, ACTION-CODE, ACT-REASON-CDSubsetWhere (ACTION-CODE != Spaces)HR51.2, HR51.6, LT101, LT111, PA102, PA13.1, PA13.2, PA257 +6 more
CRESET5COMPANY, ACT-REASON-CD, ACTION-CODESubsetWhere (ACTION-CODE != Spaces)PA257, PA57.1, PA57.2

Relations

One to one (2) — lookups and parents

RelationTableRulesConditionField map
Action CodePERSACTYPERequiredWhen (CRE-ACTION-CODE != Spaces)CRE-COMPANYPAT-COMPANY, CRE-ACTION-CODEPAT-ACTION-CODE
CompanyPRSYSTEMRequiredCRE-COMPANYPRS-COMPANY, SpacesPRS-PROCESS-LEVEL

Programs

Updated by (3)

Referenced by (27)