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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
BuyingLegalEntityPoints to the company (legal entity) record that is buying under the agreement. | Int64RefRecId | Yes | CompanyInfo.RecId | PurchPurchaseAgreementConfirmationHeaderEntity |
InstanceRelationTypeShows which table in a table inheritance hierarchy the record belongs to. System field. | Int64RelationType | No | None | |
InterestBasedOnCEB_PSNYes/No flag showing whether interest is based on the central European bank rate. Used for public sector. | EnumNoYesIdNoYes (enum) | No | PurchPurchaseAgreementConfirmationHeaderEntity | |
MaximumAmount_PSNUpper amount limit for the agreement; currency not stated in the metadata. Used for public sector. | RealAmountCur | No | PurchPurchaseAgreementConfirmationHeaderEntity | |
MinimumAmount_PSNLower amount limit for the agreement; currency not stated in the metadata. Used for public sector. | RealAmountCur | No | PurchPurchaseAgreementConfirmationHeaderEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProcurementClassification_PSNShort text that classifies the procurement. Used for public sector. | String (60)Description | No | PurchPurchaseAgreementConfirmationHeaderEntity | |
PurchNumberSequenceThe purchase agreement number that this history record relates to. | String (20)PurchAgreementId | Yes | PurchPurchaseAgreementConfirmationHeaderEntityPurchPurchaseAgreementConfirmationLineEntity | |
Purpose_PSNShort text that states the purpose of the agreement. Used for public sector. | String (60)Description | No | PurchPurchaseAgreementConfirmationHeaderEntity | |
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 | PurchPurchaseAgreementConfirmationHeaderEntity | |
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 | |
VendAccountAccount number of the vendor on the agreement. It links to the vendor record together with the vendor company. | String (20)VendAccount | Yes | VendTable.AccountNum | PurchPurchaseAgreementConfirmationHeaderEntityPurchPurchaseAgreementConfirmationLineEntity |
VendorDataAreaIdCompany (data area) of the vendor record. It is used with the vendor account to find the vendor. | StringDataAreaId | Yes | VendTable.dataAreaId | None |
Indexes (2)
CompanyInfoIdxNot unique.
VendTableIdxNot unique.
Relations (3)
Each relation joins PurchAgreementHeaderHistory to another table on the fields shown.
AgreementHistory→AgreementHeaderHistoryJoin on
RecId = AgreementHeaderHistory.RecIdZero or one PurchAgreementHeaderHistory record → exactly one AgreementHeaderHistory record
CompanyInfo→CompanyInfoJoin on
BuyingLegalEntity = CompanyInfo.RecIdMany PurchAgreementHeaderHistory records → exactly one CompanyInfo record
VendTable→VendTableJoin on
VendorDataAreaId = VendTable.dataAreaId,VendAccount = VendTable.AccountNumMany 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.
PurchPurchaseAgreementConfirmationHeaderEntity· 9 fields from this tablePurchPurchaseAgreementConfirmationLineEntity· 2 fields from this table
Need help with PurchAgreementHeaderHistory in a report, an integration or a migration? Talk to Dr Dynamics.