Table
PurchReqTableHistory
Purchase requisition history
Keeps a time-stamped history of purchase requisition headers. Each row copies values such as name, type, requested date, state, status, project and submission details, for a validity period. It links to the original requisition.
- Table name
PurchReqTableHistory- Module
Procurement and sourcing- Table group
TransactionHeader- Table type
Regular- Data per company
No- Configuration key
PurchReq- Primary index
RecId- Replacement key
PurchReqTableIdx- Key fields
PurchReqTable, ValidFrom, ValidTo- Model
Foundation
Fields (26)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PurchReqTablePoints to the purchase requisition that this history row describes. | Int64RefRecId | No | PurchReqTable.RecId | None |
ValidFromDate and time from which this history row applies. | UtcDateTimeValidFromDateTime | Yes | None | |
ValidToDate and time until which this history row applies. | UtcDateTimeValidToDateTime | Yes | None | |
BusinessJustificationPoints to the reason (business justification) code for the requisition. | Int64BusinessJustificationRefRecId | No | PurchReqBusinessJustificationCodes.RecId | None |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
OriginatorPoints to the worker who raised the requisition. | Int64RefRecId | No | HcmWorker.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProjIdProject identifier linked to the requisition. | String (20)ProjId | No | ProjTable.ProjId | None |
ProjIdDataAreaCompany that the project belongs to. | StringDataAreaId | No | ProjTable.dataAreaId | None |
PurchReqIdIdentifier of the purchase requisition. | String (25)PurchReqId | Yes | None | |
PurchReqNameName of the purchase requisition. | String (60)PurchReqName | Yes | None | |
PurchReqTypeType of requisition: general purchase or project. | EnumPurchReqType (enum) | 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 | |
RequiredDateDate on which the goods or services are requested. | DatePurchReqRequiredDate | No | None | |
SourceDocumentHeaderPoints to the source document header record. | Int64RefRecId | Yes | SourceDocumentHeader.RecId | None |
StateWorkflow state of the requisition, such as submitted, approved or returned. | EnumPurchReqWorkflowState (enum) | No | None | |
StatusStatus of the requisition, such as draft, approved or closed. | EnumPurchReqRequisitionStatus (enum) | No | None | |
SubmittedByUser who submitted the requisition. | StringPurchReqSubmittedBy | No | None | |
SubmittedDateTimeDate and time when the requisition was submitted. | UtcDateTimePurchReqSubmittedDateTime | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TransDateAccounting date of the requisition. | DatePurchReqAccountingDate | No | None |
Indexes (2)
PurchReqTableIdxReplacement keyPurchReqTable,ValidFrom,ValidToUnique, alternate key.
SourceDocumentHeaderIdxNot unique.
Relations (6)
Each relation joins PurchReqTableHistory to another table on the fields shown.
Originator→HcmWorkerJoin on
Originator = HcmWorker.RecIdMany PurchReqTableHistory records → zero or one HcmWorker record
ProjTable→ProjTableJoin on
ProjIdDataArea = ProjTable.dataAreaId,ProjId = ProjTable.ProjIdMany PurchReqTableHistory records → zero or one ProjTable record
PurchReqBusinessJustificationCodes→PurchReqBusinessJustificationCodesJoin on
BusinessJustification = PurchReqBusinessJustificationCodes.RecIdMany PurchReqTableHistory records → zero or one PurchReqBusinessJustificationCodes record
PurchReqTable→PurchReqTableJoin on
PurchReqTable = PurchReqTable.RecIdMany PurchReqTableHistory records → zero or one PurchReqTable record
SourceDocumentHeader→SourceDocumentHeaderJoin on
SourceDocumentHeader = SourceDocumentHeader.RecIdMany PurchReqTableHistory records → exactly one SourceDocumentHeader record
UserInfo→UserInfoJoin on
SubmittedBy = UserInfo.idMany PurchReqTableHistory records → zero or one UserInfo record
Get this data out
No public entity reads from PurchReqTableHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with PurchReqTableHistory in a report, an integration or a migration? Talk to Dr Dynamics.