Table
PayrollEarningExternalReporting
Earning external reporting
Holds external reporting settings for an earning code, by country or region and by validity period. It stores the Form W-2 box label and box number, which relate to the United States.
- Table name
PayrollEarningExternalReporting- Module
Cross-module and platform- Table group
Reference- Table type
Regular- Data per company
No- Configuration key
PayrollAdministration- Primary index
None- Replacement key
EarningExternalReporting_AK1- Key fields
EarningCode, CountryRegionId, ValidFrom, ValidTo- Model
PersonnelManagement
Fields (10)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
EarningCodePoints to the earning code that this reporting setting is for. | Int64PayrollEarningCodeRecId | Yes | PayrollEarningCode.RecId | None |
CountryRegionIdThe country or region that this reporting setting applies to. | StringLogisticsAddressCountryRegionId | No | LogisticsAddressCountryRegion.CountryRegionId | None |
ValidFromFirst date on which this record is valid. | DateValidFromDate | No | None | |
ValidToLast date on which this record is valid. | DateValidToDate | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
W2BoxLabelText label shown for the Form W-2 box. | StringPayrollW2BoxLabel | No | None | |
W2BoxNumberThe Form W-2 box number, chosen from a short list of values such as 10, 11, 12 or 14. | EnumPayrollW2BoxNumber (enum) | No | None |
Indexes (1)
EarningExternalReporting_AK1Replacement keyEarningCode,CountryRegionId,ValidFrom,ValidToUnique, alternate key.
Relations (2)
Each relation joins PayrollEarningExternalReporting to another table on the fields shown.
LogisticsAddressCountryRegion→LogisticsAddressCountryRegionJoin on
CountryRegionId = LogisticsAddressCountryRegion.CountryRegionIdMany PayrollEarningExternalReporting records → exactly one LogisticsAddressCountryRegion record
PayrollEarningCode→PayrollEarningCodeJoin on
EarningCode = PayrollEarningCode.RecIdMany PayrollEarningExternalReporting records → exactly one PayrollEarningCode record
Get this data out
No public entity reads from PayrollEarningExternalReporting. Its data is only reachable through the application, a custom entity or a database export.
Need help with PayrollEarningExternalReporting in a report, an integration or a migration? Talk to Dr Dynamics.