Table
PurchAgreementHeader
Purchase agreement
Holds the header of a purchase agreement. The key is the agreement number plus the buying legal entity. It links to the vendor, the responsible workers and a parent agreement. It also has public sector fields and fields for contract management integration.
- Table name
PurchAgreementHeader- Module
Procurement and sourcing- Table group
WorksheetHeader- Table type
Regular- Data per company
No- Configuration key
TradeBlanketOrder- Primary index
None- Replacement key
PurchNumberSequenceIdx- Key fields
PurchNumberSequence, BuyingLegalEntity- Model
Foundation- Extends
AgreementHeader
Fields (26)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PurchNumberSequenceIdentifier of the purchase agreement. | String (20)PurchAgreementId | Yes | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntityand 12 more | |
BuyingLegalEntityLegal entity that buys under the agreement. It points to the legal entity record. | Int64RefRecId | Yes | CompanyInfo.RecId | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntityand 1 more |
CLMIntegrationExternalContractIdIdentifier of the matching contract in the external contract management system. | String (40)CLMIntegrationExternalContractId | No | CLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntityCLMIntegrationPurchaseAgreementLineEntityand 2 more | |
CLMIntegrationPurchAgreementOwnershipShows whether the agreement is owned in supply chain management or in an external contract management system. | EnumCLMIntegrationPurchaseAgreementOwnershipType (enum) | No | CLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity | |
InstanceRelationTypeShows which table in a table inheritance hierarchy the record belongs to. System field. | Int64RelationType | No | None | |
InterestBasedOnCEB_PSNYes/no flag showing interest is based on the central European bank rate. Used for public sector. | EnumNoYesIdNoYes (enum) | No | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity | |
IsIntegrationShows whether the agreement comes from an integration (none or CLM). | EnumPurchAgreementIntegrationType (enum) | No | None | |
MatchingPolicyLine matching policy for the agreement, such as two-way or three-way matching. | EnumPurchMatchingPolicyWithNotSetOption (enum) | No | PurchPurchaseAgreementHeaderV2Entity | |
MaximumAmount_PSNMaximum amount for the agreement. Used for public sector. | RealAmountCur | No | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity | |
MinimumAmount_PSNMinimum amount for the agreement. Used for public sector. | RealAmountCur | No | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity | |
ParentPurchAgreementID_PSNParent purchase agreement. It points to another record in this table. Used for public sector. | Int64RefRecId | No | PurchAgreementHeader.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PrimaryResponsibleWorkerMain worker responsible for the agreement. It points to a worker record. | Int64HcmWorkerRecId | No | HcmWorker.RecId | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity |
ProcurementClassification_PSNText classification of the procurement. Used for public sector. | String (60)Description | No | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity | |
PurchAgreementType_PSNType of procedure used, such as full procedure or adapted procedure. Used for public sector. | EnumPurchAgreementType_PSN (enum) | No | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity | |
Purpose_PSNText describing the purpose of the agreement. Used for public sector. | String (60)Description | No | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity | |
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 | |
Renewable_PSNYes/no flag showing whether the agreement can be renewed. Used for public sector. | EnumNoYesIdNoYes (enum) | No | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity | |
SecondaryResponsibleWorkerSecond worker responsible for the agreement. It points to a worker record. | Int64HcmWorkerRecId | No | HcmWorker.RecId | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity |
ShipCalendarIdIdentifier of the vendor ship calendar used for this agreement. | StringPurchVendorShipCalendarId | No | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity | |
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 | |
VendAccountVendor account on the agreement. It points to the vendor record. | String (20)VendAccount | Yes | VendTable.AccountNum | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntityand 7 more |
VendorDataAreaIdCompany of the vendor account. It is used together with the vendor account to find the vendor. | StringDataAreaId | No | VendTable.dataAreaId | PurchPurchaseAgreementHeaderAIEntityPurchPurchaseAgreementLineAIEntity |
WorkflowStatus_PSNWorkflow status of the agreement, such as draft, approved or rejected. Used for public sector. | EnumPurchAgreementWorkflowStatus (enum) | No | PurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity |
Indexes (4)
CompanyInfoIdxNot unique.
PurchNumberSequenceIdxReplacement keyPurchNumberSequence,BuyingLegalEntityUnique, alternate key.
VendTableIdxNot unique.
CLMIntegrationExternalContractIdxCLMIntegrationExternalContractIdNot unique.
Relations (6)
Each relation joins PurchAgreementHeader to another table on the fields shown.
AgreementHeader→AgreementHeaderJoin on
RecId = AgreementHeader.RecIdZero or one PurchAgreementHeader record → exactly one AgreementHeader record
CompanyInfo→CompanyInfoJoin on
BuyingLegalEntity = CompanyInfo.RecIdMany PurchAgreementHeader records → exactly one CompanyInfo record
PurchAgreementHeader_PSN→PurchAgreementHeaderJoin on
ParentPurchAgreementID_PSN = PurchAgreementHeader.RecIdMany PurchAgreementHeader records → zero or one PurchAgreementHeader record
VendTable→VendTableJoin on
VendorDataAreaId = VendTable.dataAreaId,VendAccount = VendTable.AccountNumMany PurchAgreementHeader records → exactly one VendTable record
PrimaryResponsibleWorker→HcmWorkerJoin on
PrimaryResponsibleWorker = HcmWorker.RecIdMany PurchAgreementHeader records → zero or one HcmWorker record
SecondaryResponsibleWorker→HcmWorkerJoin on
SecondaryResponsibleWorker = HcmWorker.RecIdMany PurchAgreementHeader records → zero or one HcmWorker record
Get this data out
Tables are not exposed directly. These public entities read from PurchAgreementHeader; use one of them in Power BI, Power Platform or a data management project.
PurchPurchaseAgreementHeaderV2Entity· 15 fields from this tableCLMIntegrationPurchaseAgreementHeaderEntity· 16 fields from this tableCLMIntegrationValidationPurchaseAgreementHeaderEntity· 16 fields from this tablePurchPurchaseAgreementHeaderAIEntity· 3 fields from this tablePurchPurchaseAgreementLineV2Entity· 2 fields from this tableBudgetReservationAgreementLineEntity_PSN· 3 fields from this tableCFMPurchAgreementPaymentOrderEntity· 1 field from this tableCLMIntegrationPurchaseAgreementLineEntity· 3 fields from this tablePurchCommitmentLineEntity· 1 field from this tablePurchPurchaseAgreementLineEntity· 1 field from this tablePurchPurchaseAgreementConfirmationLineEntity· 0 fields from this tableSalesAgreementConfirmationLineEntity· 0 fields from this tableCLMIntegrationValidateInsertPurchaseAgreementLineEntity· 3 fields from this tableCLMIntegrationValidateUpdateDeletePurchaseAgreementLineEntity· 3 fields from this tablePurchaseAgreementLineNoteEntity· 1 field from this tablePurchPurchaseAgreementLineAIEntity· 3 fields from this tablePurchPurchaseAgreementLineFulfillmentEntity· 1 field from this table
Need help with PurchAgreementHeader in a report, an integration or a migration? Talk to Dr Dynamics.