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 descriptionType / EDT / enumMandatoryReferencesIn public entities
PurchReqTablePoints to the purchase requisition that this history row describes.Int64
RefRecId
NoPurchReqTable.RecIdNone
ValidFromDate and time from which this history row applies.UtcDateTime
ValidFromDateTime
YesNone
ValidToDate and time until which this history row applies.UtcDateTime
ValidToDateTime
YesNone
BusinessJustificationPoints to the reason (business justification) code for the requisition.Int64
BusinessJustificationRefRecId
NoPurchReqBusinessJustificationCodes.RecIdNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
OriginatorPoints to the worker who raised the requisition.Int64
RefRecId
NoHcmWorker.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProjIdProject identifier linked to the requisition.String (20)
ProjId
NoProjTable.ProjIdNone
ProjIdDataAreaCompany that the project belongs to.String
DataAreaId
NoProjTable.dataAreaIdNone
PurchReqIdIdentifier of the purchase requisition.String (25)
PurchReqId
YesNone
PurchReqNameName of the purchase requisition.String (60)
PurchReqName
YesNone
PurchReqTypeType of requisition: general purchase or project.Enum
PurchReqType (enum)
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RequiredDateDate on which the goods or services are requested.Date
PurchReqRequiredDate
NoNone
SourceDocumentHeaderPoints to the source document header record.Int64
RefRecId
YesSourceDocumentHeader.RecIdNone
StateWorkflow state of the requisition, such as submitted, approved or returned.Enum
PurchReqWorkflowState (enum)
NoNone
StatusStatus of the requisition, such as draft, approved or closed.Enum
PurchReqRequisitionStatus (enum)
NoNone
SubmittedByUser who submitted the requisition.String
PurchReqSubmittedBy
NoNone
SubmittedDateTimeDate and time when the requisition was submitted.UtcDateTime
PurchReqSubmittedDateTime
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TransDateAccounting date of the requisition.Date
PurchReqAccountingDate
NoNone

Indexes (2)

Relations (6)

Each relation joins PurchReqTableHistory to another table on the fields shown.

  • Originator → HcmWorker

    Join on Originator = HcmWorker.RecId

    Many PurchReqTableHistory records → zero or one HcmWorker record

  • ProjTable → ProjTable

    Join on ProjIdDataArea = ProjTable.dataAreaId, ProjId = ProjTable.ProjId

    Many PurchReqTableHistory records → zero or one ProjTable record

  • PurchReqBusinessJustificationCodes → PurchReqBusinessJustificationCodes

    Join on BusinessJustification = PurchReqBusinessJustificationCodes.RecId

    Many PurchReqTableHistory records → zero or one PurchReqBusinessJustificationCodes record

  • PurchReqTable → PurchReqTable

    Join on PurchReqTable = PurchReqTable.RecId

    Many PurchReqTableHistory records → zero or one PurchReqTable record

  • SourceDocumentHeader → SourceDocumentHeader

    Join on SourceDocumentHeader = SourceDocumentHeader.RecId

    Many PurchReqTableHistory records → exactly one SourceDocumentHeader record

  • UserInfo → UserInfo

    Join on SubmittedBy = UserInfo.id

    Many 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.

Email sales@drdynamics.co.uk