PAYDEDUCTN – Employee Payment Deductions

System
Payroll (PR)
Prefix
PYD
Primary key
COMPANY, EMPLOYEE, CHECK-ID, DED-CODE, EDM-SEQ-NBR, REPORT-ENTITY, BUS-NBR-GRP, QC-ENT-NBR-GRP, PROCESS-LEVEL, WORK-STATE
Fields
33
Updated by
135 programs
Referenced by
34 programs

PAYDEDUCTN is the Employee Payment Deductions table in Lawson Payroll (prefix PYD). It is indexed by COMPANY, EMPLOYEE, CHECK-ID, DED-CODE, EDM-SEQ-NBR, REPORT-ENTITY, BUS-NBR-GRP, QC-ENT-NBR-GRP, PROCESS-LEVEL, WORK-STATE (PYDSET1); alternate indexes: PYDSET3, PYDSET6 and PYDSET7. It is related 1:1 to PRSYSTEM, DEDCODE, EMDEDMASTR, EMPLOYEE, PAYMASTR, PRQCENTGRP, PRTAXAUTH and PRSTATE and 1:M to PRDEDDTL and QUARTDED. It is updated by BN100, BN101, BN102, BN103, BN104, BN105, BN145, BN150 and 127 more and referenced by BN232, BN330, BN340, HR170, HR70.1, PR125, PR141, PR142 and 26 more. The table has 33 fields, 4 indexes and 11 documented relations.

About PAYDEDUCTN

This file contains employee deduction information associated with Employee Payment file records. PR140 (Earnings and Deduction Calculation) is the primary program that updates this file. For efficiency, one Employee Payment Deductions file record stores information for up to ten Employee Deduction file records. If an Employee Payment file record has more than ten Employee Deduction file records associated with it, the system creates another Employee Payment Deductions file record with a different sequence number. PR199 (Payroll Close) rolls the information in the Employee Payment Deductions file records into D type Employee Payroll YTD Summary file records. The Benefits system uses this file to total employee deduction amounts for defined contribution plans for third-party administrator reporting.

Fields (33)

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

Field / columnTypeDescription & valuesUpdated by
PYD-COMPANY PK
COMPANY
Numeric 4BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +3 more
PYD-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.BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +3 more
PYD-CHECK-ID PK
CHECK_ID
Numeric 12Contains the payment identification number. When you create a payment deduction record, the system moves the payment identification number into this field to serve as the link between the Employee Payment file record and the Employee Payment Deductions file record.BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +4 more
PYD-DED-CODE PK
DED_CODE
Alpha 4Contains the employee deduction.BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +3 more
PYD-PROCESS-LEVEL PK
PROCESS_LEVEL
Alpha 5This field contains the tax reporting process level.BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +3 more
PYD-WORK-STATE PK
WORK_STATE
Alpha 2Identifies the state in which the workers' compensation plan is affective.BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +3 more
PYD-PAYROLL-YEAR
PAYROLL_YEAR
Numeric 4Contains the year portion of the payment date.BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +4 more
PYD-QUARTER
QUARTER
Numeric 1Contains the quarter number associated with the payment date. 1 2 3 4BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +4 more
PYD-EDM-SEQ-NBR PK
EDM_SEQ_NBR
Numeric 4Contains the employee deduction sequence number.BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +3 more
PYD-DED-AMT
DED_AMT
Signed 13.2Contains the deduction amount taken on a payment. The system rolls the deduction amount into the employee's year-to-date deduction amount.BN66.1, HR70.1, PR140, PR189, PR195, PR197, PR50.2, PR51.1 +10 more
PYD-TAX-WAGES
TAX_WAGES
Signed 13.2Contains the taxable wages for a payment. The system uses this field to calculate a withholding type deduction. The system rolls the taxable wages into the employee's year-to-date wage amount.BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +4 more
PYD-WAGE-AMOUNT
WAGE_AMOUNT
Signed 13.2Contains the sum of all wage amounts from time records for pay codes tied to this pay summary group.BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +4 more
PYD-EXCESS
EXCESS
Signed 13.2Contains the total amount of wages that exceed the defined limit of wages subject to unemployment taxes.BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +4 more
PYD-GARN-OBJ-ID
GARN_OBJ_ID
Numeric 12Assigned when an employee garnishment table (PREMPGARN) is added and deductions are created. This ID links the employee deductions to this garnishment (case number/file number). If the same deduction is created for this employee, this ID along with the sequence number keeps the record unique.BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +3 more
PYD-REPORT-ENTITY PK
REPORT_ENTITY
Alpha 5Contains the report entity. Report Entity is the Process Level or Company that this Process Level reports to for tax reporting. If the Process Level itself is independent then the independent Process Level is the Report Entity. If the Process Level is non independent and is associated to a independent head Process Level then the independent head Process Level is the Report Entity. If the Process Level is non independent and is not associated to a independent head Process Level then the Company is the Report Entity.BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +3 more
PYD-BUS-NBR-GRP PK
BUS_NBR_GRP
Alpha 4Contains the business number group.BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +3 more
PYD-QC-ENT-NBR-GRP PK
QC_ENT_NBR_GRP
Alpha 4Contains the Quebec enterprise number group.BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +3 more
PYD-OBJ-ID
OBJ_ID
Numeric 12This is the object identifier. It is used to relate commitments or posted transactions back to the originating subsystems. Each subsystem record that is updated as a commitment or posted transaction is assigned an object identifier. The object identifier is maintained in the subsystem files and in the Activity Commitments Detail and Activity Transaction files. The object identifier is a unique key used to drill back from Activity Management to the subsystems.BN66.1, PR140, PR189, PR195, PR80.1, PR80.4, PR85.1, PR89.1 +1 more
PYD-CURRENCY-CODE
CURRENCY_CODE
Alpha 5This field contains the company base currency code established in Company (GL10.1 ).BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +3 more
PYD-CURR-ND
CURR_ND
Numeric 1The number of decimals assigned to a particular account as determined by the account currency.BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +3 more
PYD-CHECK-DATE
CHECK_DATE
Numeric 8 (yyyymmdd)The payment date.BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +3 more
PYD-PER-END-DATE
PER_END_DATE
Numeric 8 (yyyymmdd)Identifies period end date in distribution record; used during PR198 to relieve salary encumbrance commitments for pay period (updated from TIMERECORD.PER-END-DATE).BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +4 more
PYD-BALANCE-TYPE
BALANCE_TYPE
Alpha 1" "
  • A Ascending
  • D Descending
BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +3 more
PYD-TAX-FLAG
TAX_FLAG
Alpha 1" " = Non-tax
  • T Tax
  • S Tax Status
BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +3 more
PYD-HM-PROCESS-LEV
HM_PROCESS_LEV
Alpha 5BN305, BN66.1, HR11.1, HR11.2, HR11.4, HR28.1, HR511, LT101 +35 more
PYD-COUNTRY-CODE
COUNTRY_CODE
Alpha 2The country code. Required for VAT and intrastat reporting. Must be defined in IN01.1 (Country Maintenance).BN66.1, PR140, PR189, PR195, PR560, PR582, PR80.1, PR80.4 +3 more
PYD-NI-CODE
NI_CODE
Alpha 1
PYD-DIRECTOR
DIRECTOR
Alpha 1
PYD-TAX-CODE
TAX_CODE
Alpha 10This field contains a code representing specific tax information. This must be valid Tax Code.
PYD-TAX-BASIS
TAX_BASIS
Alpha 1
PYD-PERIOD-NBR
PERIOD_NBR
Numeric 3
PYD-CONTRACTED-OUT
CONTRACTED_OUT
Alpha 1
PYD-OT-PLAN-CODE
OT_PLAN_CODE
Alpha 4Identifies pay plan in effect for employee when PRDISTRIB record was created from PR197 (PRPRD).BN66.1, PR140, PR189, PR195, PR80.1, PR80.4, PR89.1, PRAT.1

Indexes (4)

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

IndexKeysFlagsConditionUsed in
PYDSET1COMPANY, EMPLOYEE, CHECK-ID, DED-CODE, EDM-SEQ-NBR, REPORT-ENTITY, BUS-NBR-GRP, QC-ENT-NBR-GRP, PROCESS-LEVEL, WORK-STATEPrimaryBN100, BN101, BN102, BN103, BN104, BN105, BN145, BN150 +22 more (list truncated in source)
PYDSET3COMPANY, EMPLOYEE, DED-CODE, EDM-SEQ-NBR, CHECK-ID, REPORT-ENTITY, BUS-NBR-GRP, QC-ENT-NBR-GRP, PROCESS-LEVEL, WORK-STATEBN66.1, PR139, PR140, PR189, PR192, PR195, PR274, PR297 +6 more
PYDSET6COMPANY, HM-PROCESS-LEV, EMPLOYEE, CHECK-ID, DED-CODE, EDM-SEQ-NBR, REPORT-ENTITY, BUS-NBR-GRP, QC-ENT-NBR-GRP, PROCESS-LEVEL, WORK-STATEKeyChange
PYDSET7COMPANY, PAYROLL-YEAR, PER-END-DATE, TAX-CODE, EMPLOYEE, CHECK-ID, DED-CODE, EDM-SEQ-NBR, REPORT-ENTITY, BUS-NBR-GRP, QC-ENT-NBR-GRP, PROCESS-LEVEL, WORK-STATE

Relations

One to one (9) — lookups and parents

RelationTableRulesConditionField map
CompanyPRSYSTEMRequiredPYD-COMPANYPRS-COMPANY (PRSSET1), SpacesPRS-PROCESS-LEVEL
Deduct CodeDEDCODERequiredPYD-COMPANYDDC-COMPANY, PYD-DED-CODEDDC-DED-CODE
Emp Ded CodeEMDEDMASTRRequiredPYD-COMPANYEDM-COMPANY, PYD-EMPLOYEEEDM-EMPLOYEE, PYD-DED-CODEEDM-DED-CODE, PYD-EDM-SEQ-NBREDM-SEQ-NBR
EmployeeEMPLOYEERequiredPYD-COMPANYEMP-COMPANY, PYD-EMPLOYEEEMP-EMPLOYEE
PaymentPAYMASTRRequiredPYD-COMPANYPYM-COMPANY, PYD-EMPLOYEEPYM-EMPLOYEE, PYD-CHECK-IDPYM-CHECK-ID
Process LevelPRSYSTEMRequiredPYD-COMPANYPRS-COMPANY, PYD-PROCESS-LEVELPRS-PROCESS-LEVEL
PrqcentgrpPRQCENTGRPNot RequiredPYD-COMPANYPQC-COMPANY, PYD-PROCESS-LEVELPQC-PROCESS-LEVEL, PYD-QC-ENT-NBR-GRPPQC-QC-ENT-NBR-GRP
Tax IdPRTAXAUTHRequiredWhen DDC-CALC-TYPE = "T"DDC-TAX-ID-CODEPRX-TAX-ID-CODE
Work StatePRSTATERequiredWhen PYD-WORK-STATE != SpacesPYD-WORK-STATEPSA-STATE

One to many (2) — child tables

RelationTableRulesConditionField map
PrdeddtlPRDEDDTLPYD-OBJ-IDPDE-PYD-OBJ-ID, PDE-TAX-STATUS
QuartdedQUARTDEDPYD-COMPANYQTD-COMPANY, PYD-COUNTRY-CODEQTD-COUNTRY-CODE, PRS-PAYROLL-YEARQTD-PAYROLL-YEAR, PYD-EMPLOYEEQTD-EMPLOYEE, PYD-DED-CODEQTD-DED-CODE, QTD-QUARTER, QTD-REPORT-ENTITY, QTD-BUS-NBR-GRP, QTD-QC-ENT-NBR-GRP, QTD-PROCESS-LEVEL, QTD-WORK-STATE, QTD-PENSION

Programs

Updated by (135)

Referenced by (34)