Table
PurchReqTable
Purchase requisitions
Holds one row per purchase requisition header, identified by the requisition number (PurchReqId). It records who prepared and submitted it, its status, type and purpose, requested date, and any hold or project link. It links to the buying legal entity, a business justification code and a source document header.
- Table name
PurchReqTable- Module
Procurement and sourcing- Table group
WorksheetHeader- Table type
Regular- Data per company
No- Configuration key
PurchReq- Primary index
RecId- Replacement key
PurchReqIdx- Key fields
PurchReqId- Model
Foundation
Fields (29)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PurchReqIdPurchase requisition number; the key of the table. | String (25)PurchReqId | Yes | PurchaseRequisitionHeaderV2EntityUbuyPurchaseRequisitionHeaderEntityPurchReqApprovalHeaderEntityand 11 more | |
BusinessJustificationRecord ID of the business justification code chosen as the reason for the requisition. | Int64BusinessJustificationRefRecId | No | PurchReqBusinessJustificationCodes.RecId | PurchaseRequisitionHeaderV2EntityUbuyPurchaseRequisitionHeaderEntityPurchReqTableBiEntity |
CompanyInfoDefaultRecord ID of the buying legal entity for the requisition. | Int64RefRecId | No | CompanyInfo.RecId | PurchaseRequisitionHeaderV2EntityUbuyPurchaseRequisitionHeaderEntityPurchReqTableBiEntity |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | PurchReqTableBiEntity | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | PurchReqTableBiEntity | |
HoldExplanationText that explains why the requisition is on hold. | String (566)PurchReqHoldExplanation | No | PurchaseRequisitionHeaderV2EntityUbuyPurchaseRequisitionHeaderEntityPurchReqTableBiEntity | |
IsModifiedYes/No flag showing that the requisition has been changed. | EnumVersioningIsModifiedNoYes (enum) | No | PurchReqTableBiEntity | |
IsWorkflowToBeResubmittedYes/No flag showing that the workflow needs to be submitted again. | EnumNoYesIdNoYes (enum) | No | PurchReqTableBiEntity | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | PurchReqTableBiEntity | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | PurchReqTableBiEntity | |
OnHoldYes/No flag showing that the requisition is on hold. | EnumPurchReqHoldStatusNoYes (enum) | No | PurchaseRequisitionHeaderV2EntityUbuyPurchaseRequisitionHeaderEntityPurchReqTableBiEntity | |
OriginatorRecord ID of the worker who prepared the requisition. | Int64PurchReqPreparerRefRecId | Yes | HcmWorker.RecId | PurchaseRequisitionHeaderV2EntityUbuyPurchaseRequisitionHeaderEntityPurchReqTableBiEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProjIdProject ID linked to the requisition. | String (20)ProjId | No | ProjTable.ProjId | PurchaseRequisitionHeaderV2EntityUbuyPurchaseRequisitionHeaderEntityPurchReqTableBiEntity |
ProjIdDataAreaCompany of the linked project; used with the project ID. | StringDataAreaId | No | ProjTable.dataAreaId | PurchReqTableBiEntity |
PurchReqNameName given to the requisition. | String (60)PurchReqName | Yes | PurchaseRequisitionHeaderV2EntityUbuyPurchaseRequisitionHeaderEntityPurchReqApprovalHeaderEntityand 2 more | |
PurchReqTypeType of requisition: general purchase or project. | EnumPurchReqType (enum) | No | PurchReqTableBiEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | PurchReqApprovalHeaderEntityPurchReqTableBiEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | PurchReqTableBiEntity | |
RequiredDateDate by which the requisition items are requested. | DatePurchReqRequiredDate | No | PurchaseRequisitionHeaderV2EntityUbuyPurchaseRequisitionHeaderEntityPurchReqTableBiEntity | |
RequisitionPurposePurpose of the requisition: consumption or replenishment. | EnumRequisitionPurpose (enum) | No | PurchaseRequisitionHeaderV2EntityUbuyPurchaseRequisitionHeaderEntityPurchReqTableBiEntity | |
RequisitionStatusStatus of the requisition, such as draft, in review, approved, rejected, cancelled, closed or budget reserved. | EnumPurchReqRequisitionStatus (enum) | No | PurchaseRequisitionHeaderV2EntityUbuyPurchaseRequisitionHeaderEntityPurchReqTableBiEntity | |
SourceDocumentHeaderRecord ID of the source document header linked to the requisition. | Int64RefRecId | No | SourceDocumentHeader.RecId | PurchReqTableBiEntity |
SubmittedByUser who submitted the requisition. | StringPurchReqSubmittedBy | No | PurchReqTableBiEntity | |
SubmittedDateTimeDate and time when the requisition was submitted. | UtcDateTimePurchReqSubmittedDateTime | No | PurchReqTableBiEntity | |
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 | PurchaseRequisitionHeaderV2EntityUbuyPurchaseRequisitionHeaderEntityPurchReqTableBiEntity | |
UbuyOrderProgressStatusProgress of the order from requisition created through purchase order stages to received and invoiced. | EnumUbuyOrderProgressStatus (enum) | No | UbuyPurchaseRequisitionHeaderEntity |
Indexes (3)
PurchReqIdxReplacement keyUnique, alternate key.
ProjTableIdxNot unique.
SourceDocumentHeaderIdxSourceDocumentHeader,PartitionNot unique.
Relations (7)
Each relation joins PurchReqTable to another table on the fields shown.
CompanyInfoDefault→CompanyInfoJoin on
CompanyInfoDefault = CompanyInfo.RecIdMany PurchReqTable records → zero or one CompanyInfo record
Originator→HcmWorkerJoin on
Originator = HcmWorker.RecIdMany PurchReqTable records → exactly one HcmWorker record
ProjTable→ProjTableJoin on
ProjIdDataArea = ProjTable.dataAreaId,ProjId = ProjTable.ProjIdMany PurchReqTable records → zero or one ProjTable record
PurchReqBusinessJustificationCodes→PurchReqBusinessJustificationCodesJoin on
BusinessJustification = PurchReqBusinessJustificationCodes.RecIdMany PurchReqTable records → zero or one PurchReqBusinessJustificationCodes record
SourceDocumentHeader→SourceDocumentHeaderJoin on
SourceDocumentHeader = SourceDocumentHeader.RecIdMany PurchReqTable records → zero or one SourceDocumentHeader record
SubmittedBy→UserInfoJoin on
SubmittedBy = UserInfo.idMany PurchReqTable records → zero or one UserInfo record
PurchReqId→PurchReqTableJoin on
PurchReqId = PurchReqTable.PurchReqIdCardinality not set in the metadata.
Get this data out
Tables are not exposed directly. These public entities read from PurchReqTable; use one of them in Power BI, Power Platform or a data management project.
PurchaseRequisitionHeaderV2Entity· 12 fields from this tableUbuyPurchaseRequisitionHeaderEntity· 13 fields from this tablePurchReqApprovalHeaderEntity· 3 fields from this tablePurchReqTableBiEntity· 25 fields from this tableHcmContractorV2Entity· 1 field from this tablePurchaseRequisitionLineCDSV2Entity· 1 field from this tablePurchaseRequisitionLineV2Entity· 1 field from this tableHcmContractorEntity· 1 field from this tableHcmEmploymentContractorEntity· 1 field from this tablePurchaseRequisitionLineCDSEntity· 1 field from this tablePurchaseRequisitionLineEntity· 1 field from this tableUbuyPurchaseRequisitionLineEntity· 1 field from this tableUbuyRequisitionWorkflowApproverEntity· 1 field from this tablePurchReqApprovalAttachedLineEntity· 0 fields from this tablePurchReqApprovalLineEntity· 2 fields from this table
Need help with PurchReqTable in a report, an integration or a migration? Talk to Dr Dynamics.