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 descriptionType / EDT / enumMandatoryReferencesIn public entities
PurchNumberSequenceIdentifier of the purchase agreement.String (20)
PurchAgreementId
YesPurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntityand 12 more
BuyingLegalEntityLegal entity that buys under the agreement. It points to the legal entity record.Int64
RefRecId
YesCompanyInfo.RecIdPurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntityand 1 more
CLMIntegrationExternalContractIdIdentifier of the matching contract in the external contract management system.String (40)
CLMIntegrationExternalContractId
NoCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntityCLMIntegrationPurchaseAgreementLineEntityand 2 more
CLMIntegrationPurchAgreementOwnershipShows whether the agreement is owned in supply chain management or in an external contract management system.Enum
CLMIntegrationPurchaseAgreementOwnershipType (enum)
NoCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity
InstanceRelationTypeShows which table in a table inheritance hierarchy the record belongs to. System field.Int64
RelationType
NoNone
InterestBasedOnCEB_PSNYes/no flag showing interest is based on the central European bank rate. Used for public sector.Enum
NoYesId
NoYes (enum)
NoPurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity
IsIntegrationShows whether the agreement comes from an integration (none or CLM).Enum
PurchAgreementIntegrationType (enum)
NoNone
MatchingPolicyLine matching policy for the agreement, such as two-way or three-way matching.Enum
PurchMatchingPolicyWithNotSetOption (enum)
NoPurchPurchaseAgreementHeaderV2Entity
MaximumAmount_PSNMaximum amount for the agreement. Used for public sector.Real
AmountCur
NoPurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity
MinimumAmount_PSNMinimum amount for the agreement. Used for public sector.Real
AmountCur
NoPurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity
ParentPurchAgreementID_PSNParent purchase agreement. It points to another record in this table. Used for public sector.Int64
RefRecId
NoPurchAgreementHeader.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PrimaryResponsibleWorkerMain worker responsible for the agreement. It points to a worker record.Int64
HcmWorkerRecId
NoHcmWorker.RecIdPurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity
ProcurementClassification_PSNText classification of the procurement. Used for public sector.String (60)
Description
NoPurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity
PurchAgreementType_PSNType of procedure used, such as full procedure or adapted procedure. Used for public sector.Enum
PurchAgreementType_PSN (enum)
NoPurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity
Purpose_PSNText describing the purpose of the agreement. Used for public sector.String (60)
Description
NoPurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity
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
Renewable_PSNYes/no flag showing whether the agreement can be renewed. Used for public sector.Enum
NoYesId
NoYes (enum)
NoPurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity
SecondaryResponsibleWorkerSecond worker responsible for the agreement. It points to a worker record.Int64
HcmWorkerRecId
NoHcmWorker.RecIdPurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity
ShipCalendarIdIdentifier of the vendor ship calendar used for this agreement.String
PurchVendorShipCalendarId
NoPurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity
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
VendAccountVendor account on the agreement. It points to the vendor record.String (20)
VendAccount
YesVendTable.AccountNumPurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntityand 7 more
VendorDataAreaIdCompany of the vendor account. It is used together with the vendor account to find the vendor.String
DataAreaId
NoVendTable.dataAreaIdPurchPurchaseAgreementHeaderAIEntityPurchPurchaseAgreementLineAIEntity
WorkflowStatus_PSNWorkflow status of the agreement, such as draft, approved or rejected. Used for public sector.Enum
PurchAgreementWorkflowStatus (enum)
NoPurchPurchaseAgreementHeaderV2EntityCLMIntegrationPurchaseAgreementHeaderEntityCLMIntegrationValidationPurchaseAgreementHeaderEntity

Indexes (4)

Relations (6)

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

  • AgreementHeader → AgreementHeader

    Join on RecId = AgreementHeader.RecId

    Zero or one PurchAgreementHeader record → exactly one AgreementHeader record

  • CompanyInfo → CompanyInfo

    Join on BuyingLegalEntity = CompanyInfo.RecId

    Many PurchAgreementHeader records → exactly one CompanyInfo record

  • PurchAgreementHeader_PSN → PurchAgreementHeader

    Join on ParentPurchAgreementID_PSN = PurchAgreementHeader.RecId

    Many PurchAgreementHeader records → zero or one PurchAgreementHeader record

  • VendTable → VendTable

    Join on VendorDataAreaId = VendTable.dataAreaId, VendAccount = VendTable.AccountNum

    Many PurchAgreementHeader records → exactly one VendTable record

  • PrimaryResponsibleWorker → HcmWorker

    Join on PrimaryResponsibleWorker = HcmWorker.RecId

    Many PurchAgreementHeader records → zero or one HcmWorker record

  • SecondaryResponsibleWorker → HcmWorker

    Join on SecondaryResponsibleWorker = HcmWorker.RecId

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

Need help with PurchAgreementHeader in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk