Table

PurchAgreementHeaderHistory

Purchase agreement confirmation history

Holds the confirmation history of purchase agreement headers. It stores the agreement number, the vendor and the buying legal entity. It also stores several fields used for public sector, such as minimum and maximum amounts, purpose and renewal. The table has no defined key.

Table name
PurchAgreementHeaderHistory
Module
Procurement and sourcing
Table group
TransactionHeader
Table type
Regular
Data per company
No
Configuration key
TradeBlanketOrder
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation
Extends
AgreementHeaderHistory

Fields (16)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
BuyingLegalEntityPoints to the company (legal entity) record that is buying under the agreement.Int64
RefRecId
YesCompanyInfo.RecIdPurchPurchaseAgreementConfirmationHeaderEntity
InstanceRelationTypeShows which table in a table inheritance hierarchy the record belongs to. System field.Int64
RelationType
NoNone
InterestBasedOnCEB_PSNYes/No flag showing whether interest is based on the central European bank rate. Used for public sector.Enum
NoYesId
NoYes (enum)
NoPurchPurchaseAgreementConfirmationHeaderEntity
MaximumAmount_PSNUpper amount limit for the agreement; currency not stated in the metadata. Used for public sector.Real
AmountCur
NoPurchPurchaseAgreementConfirmationHeaderEntity
MinimumAmount_PSNLower amount limit for the agreement; currency not stated in the metadata. Used for public sector.Real
AmountCur
NoPurchPurchaseAgreementConfirmationHeaderEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProcurementClassification_PSNShort text that classifies the procurement. Used for public sector.String (60)
Description
NoPurchPurchaseAgreementConfirmationHeaderEntity
PurchNumberSequenceThe purchase agreement number that this history record relates to.String (20)
PurchAgreementId
YesPurchPurchaseAgreementConfirmationHeaderEntityPurchPurchaseAgreementConfirmationLineEntity
Purpose_PSNShort text that states the purpose of the agreement. Used for public sector.String (60)
Description
NoPurchPurchaseAgreementConfirmationHeaderEntity
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)
NoPurchPurchaseAgreementConfirmationHeaderEntity
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
VendAccountAccount number of the vendor on the agreement. It links to the vendor record together with the vendor company.String (20)
VendAccount
YesVendTable.AccountNumPurchPurchaseAgreementConfirmationHeaderEntityPurchPurchaseAgreementConfirmationLineEntity
VendorDataAreaIdCompany (data area) of the vendor record. It is used with the vendor account to find the vendor.String
DataAreaId
YesVendTable.dataAreaIdNone

Indexes (2)

Relations (3)

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

  • AgreementHistory → AgreementHeaderHistory

    Join on RecId = AgreementHeaderHistory.RecId

    Zero or one PurchAgreementHeaderHistory record → exactly one AgreementHeaderHistory record

  • CompanyInfo → CompanyInfo

    Join on BuyingLegalEntity = CompanyInfo.RecId

    Many PurchAgreementHeaderHistory records → exactly one CompanyInfo record

  • VendTable → VendTable

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

    Many PurchAgreementHeaderHistory records → exactly one VendTable record

Get this data out

Tables are not exposed directly. These public entities read from PurchAgreementHeaderHistory; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk