Data entity

PurchPurchaseAgreementHeaderV2Entity

Purchase agreement headers, with one record per purchase agreement ID. It holds the vendor, status, currency, validity dates, default commitment and classification. It also holds payment and delivery settings, default dimensions, the delivery address, workflow status and some country-specific fields.

Entity name
PurchPurchaseAgreementHeaderV2Entity
Public entity name
PurchaseAgreement
OData collection
PurchaseAgreements
Category
Document
Module
Procurement and sourcing
Read-only
No
Data management enabled
Yes
Configuration key
TradeBlanketOrder
Keys
PurchaseAgreementId
Staging table
PurchPurchaseAgreementHeaderV2Staging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/PurchaseAgreements
Dataverse virtual table
mserp_purchpurchaseagreementheaderv2entity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Enabled: you can use it in import and export projects.

Data sources

  • PurchAgreementHeader · root
  • AgreementClassification · InnerJoin to PurchAgreementHeader · read-only
  • Originator (table DirPerson) · OuterJoin to PurchAgreementHeader · read-only
  • CompanyInfo · InnerJoin to PurchAgreementHeader · read-only
  • DefaultLedgerDimensionDAVS (table DimensionSetEntity) · OuterJoin to PurchAgreementHeader · read-only
  • PurchAgreementHeaderDefault · OuterJoin to PurchAgreementHeader
  • AgreementHeaderDefault · OuterJoin to PurchAgreementHeader
  • LogisticsPostalAddressBaseEntity · OuterJoin to AgreementHeaderDefault
  • TMSPurchAgreementHeader · OuterJoin to PurchAgreementHeader
  • PurchAgreementHeaderExt_RU · OuterJoin to PurchAgreementHeader
  • HcmWorkerPrimary (table HcmWorker) · OuterJoin to PurchAgreementHeader · read-only
  • DirPersonPrimary (table DirPerson) · OuterJoin to HcmWorkerPrimary · read-only
  • HcmWorkerSecondary (table HcmWorker) · OuterJoin to PurchAgreementHeader · read-only
  • DirPersonSecondary (table DirPerson) · OuterJoin to HcmWorkerSecondary · read-only
  • FinTag · OuterJoin to PurchAgreementHeader · read-only

Fields (106)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
BuyingLegalEntityRecIdLegal entity that buys under the agreement. It points to the legal entity record.Int64
RefRecId
YesNo (private)CompanyInfo.RecIdPurchAgreementHeader.BuyingLegalEntity
BuyingLegalEntityIdCompany ID of the legal entity. It is the key.String
SelectableDataArea
NoYesCompanyInfo.DataArea
PurchaseAgreementIdIdentifier of the purchase agreement.String (20)
PurchAgreementId
NoYesPurchAgreementHeader.PurchNumberSequence
AgreementVendorAccountNumberVendor account on the agreement. It points to the vendor record.String (20)
VendAccount
YesYesVendTable.AccountNumPurchAgreementHeader.VendAccount
VendorReferenceName of the external contact or reference person.String (60)
PersonName
NoYesAgreementHeaderDefault.ExternalReference
PurchaseAgreementClassificationRecIdClassification of the agreement.Int64
AgreementClassificationRecId
YesNo (private)AgreementClassification.RecIdAgreementHeader.AgreementClassification
PurchaseAgreementClassificationNameName of the agreement classification.String (60)
Name
YesYesAgreementClassification.Name
AgreementStatusStatus of the agreement: on hold, effective or closed.Enum
AgreementState
  • OnHold 0
  • Effective 1
  • Closed 2
NoYesAgreementHeader.AgreementState
CurrencyCodeCurrency code of the agreement.String (3)
CurrencyCode
NoYesCurrency.CurrencyCodeAgreementHeader.Currency
DefaultEffectiveDateDefault effective date for new agreement lines.Date
EffectiveDate
NoYesAgreementHeader.DefaultAgreementLineEffectiveDate
DefaultExpirationDateDefault expiry date for new agreement lines.Date
ExpirationDate
NoYesAgreementHeader.DefaultAgreementLineExpirationDate
DefaultCommitmentTypeDefault commitment type for new lines, such as quantity or value.Enum
CommitmentType
  • ProductQuantity 0
  • ProductVolume 1
  • ProductCategory 2
  • ProductRootCategory 3
NoYesAgreementHeader.DefaultAgreementLineType
DefaultLedgerDimensionDefault financial dimension values for the agreement.Int64
LedgerDefaultDimensionValueSet
NoNo (private)DimensionAttributeValueSet.RecIdAgreementHeader.DefaultDimension
DefaultLedgerDimensionDisplayValueDefault dimensions shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
ExternalDocumentReferenceReference to an external document.String (60)
AgreementDocumentExternalReference
NoYesAgreementHeader.DocumentExternalReference
DocumentTitleTitle of the agreement document.String (20)
AgreementDocumentTitle
NoYesAgreementHeader.DocumentTitle
LanguageIdLanguage of the agreement.String (7)
LanguageId
NoYesLanguageTable.LanguageIdAgreementHeader.Language
PreparerRecIdPerson recorded as the reference for the agreement.Int64
RefRecId
NoNo (private)DirPerson.RecIdAgreementHeader.Originator
PreparerPersonPartyNumberUnique ID of the party. It is the key of the table.String (40)
DirPartyNumber
NoYesDirPartyTable.PartyNumber
IsInterestBasedOnCentralEuropeanBankYes/no flag showing interest is based on the central European bank rate. Used for public sector.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesPurchAgreementHeader.InterestBasedOnCEB_PSN
MaximumContractAmountMaximum amount for the agreement. Used for public sector.Real
AmountCur
NoYesPurchAgreementHeader.MaximumAmount_PSN
MinimumContractAmountMinimum amount for the agreement. Used for public sector.Real
AmountCur
NoYesPurchAgreementHeader.MinimumAmount_PSN
ProcurementClassificationText classification of the procurement. Used for public sector.String (60)
Description
NoYesPurchAgreementHeader.ProcurementClassification_PSN
PurchasingProcedureTypeType of procedure used, such as full procedure or adapted procedure. Used for public sector.Enum
PurchAgreementType_PSN
  • Other 0
  • Complete 1
  • MAPA 2
NoYesPurchAgreementHeader.PurchAgreementType_PSN
PurchasingPurposeText describing the purpose of the agreement. Used for public sector.String (60)
Description
NoYesPurchAgreementHeader.Purpose_PSN
IsAgreementRenewableYes/no flag showing whether the agreement can be renewed. Used for public sector.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesPurchAgreementHeader.Renewable_PSN
AgreementWorkflowStatusWorkflow status of the agreement, such as draft, approved or rejected. Used for public sector.Enum
PurchAgreementWorkflowStatus
  • Draft 1
  • Submitted 2
  • Approved 4
  • PendingApproval 3
  • NotSubmitted 10
  • Rejected 5
  • ChangeRequested 6
  • Pending 8
  • Cancellation 9
  • PendingCompletion 11
  • Completed 12
  • PendingCancellation 13
  • None 14
  • Returned 15
NoYesPurchAgreementHeader.WorkflowStatus_PSN
BuyerGroupIdBuyer group that is used by default.String
ItemBuyerGroupId
NoYesInventBuyerGroup.GroupPurchAgreementHeaderDefault.BuyerGroup
VendorPaymentMethodNameVendor method of payment that is used by default.String
VendPaymMode
NoYesVendPaymModeTable.PaymModePurchAgreementHeaderDefault.MethodOfPayment
VendorPaymentMethodSpecificationNamePayment specification that is used by default.String
VendPaymSpec
NoYesVendPaymModeSpec.SpecificationPurchAgreementHeaderDefault.PaymentSpecification
PurchaseOrderPoolIdPurchase pool that is used by default.String
PurchPoolId
NoYesPurchPool.PurchPoolIdPurchAgreementHeaderDefault.PurchasePool
VendorBankAccountIdIdentifier of the vendor bank account. Used for public sector.String
BankAccountID
NoYesVendBankAccount.AccountIDPurchAgreementHeaderDefault.VendBankAccountID_PSN
InvoiceVendorAccountNumberVendor account that invoices are sent to by default.String (20)
VendInvoiceAccount
NoYesVendTable.AccountNumPurchAgreementHeaderDefault.VendorInvoiceAccount
CashDiscountCodeDefault cash discount code, pointing to the cash discount record.String
CashDiscCode
NoYesCashDisc.CashDiscCodeAgreementHeaderDefault.CashDiscountCode
ContactPersonIdDefault contact person ID, pointing to the contact record.String (20)
ContactPersonId
NoYesContactPerson.ContactPersonIdAgreementHeaderDefault.ContactPerson
DeliveryModeCodeDefault mode of delivery, pointing to the delivery mode record.String
DlvModeId
NoYesDlvMode.CodeAgreementHeaderDefault.DeliveryMode
DeliveryTermsCodeDefault terms of delivery, pointing to the delivery terms record.String
DlvTermId
NoYesDlvTerm.CodeAgreementHeaderDefault.DeliveryTerm
ChargeVendorGroupIdDefault charges group, pointing to the charges group record.String
MarkupGroupId
NoYesMarkupGroup.GroupIdAgreementHeaderDefault.MiscChargeGroup
PaymentScheduleNameDefault payment schedule, pointing to the payment schedule record.String (30)
PaymSchedId
NoYesPaymSched.NameAgreementHeaderDefault.PaymentSchedule
PaymentTermsNameDefault terms of payment, pointing to the payment terms record.String (100)
PaymTermId
NoYesPaymTerm.PaymTermIdAgreementHeaderDefault.PaymentTerms
ProjectIdDefault project ID, pointing to the project record.String (20)
ProjId
NoYesProjTable.ProjIdAgreementHeaderDefault.Project
ShippingCarrierIdShipping carrier code, pointing to the carrier record.String (20)
TMSCarrierCode
NoYesTMSCarrier.CarrierCodeTMSPurchAgreementHeader.CarrierCode
ShippingCarrierServiceGroupIdCarrier group code, pointing to the carrier group record.String (20)
TMSCarrierGroupCode
NoYesTMSCarrierGroup.CarrierGroupCodeTMSPurchAgreementHeader.CarrierGroupCode
ShippingCarrierServiceIdCarrier service code. It is matched together with the carrier.String (20)
TMSCarrierServiceCode
NoYesTMSCarrierService.CarrierServiceCodeTMSPurchAgreementHeader.CarrierServiceCode
TransportationModeIdTransportation mode, pointing to the mode record.String (20)
TMSModeCode
NoYesTMSMode.ModeCodeTMSPurchAgreementHeader.ModeCode
TransportationRoutePlanIdRoute plan code, pointing to the route plan record.String (20)
TMSRouteConfigCode
NoYesTMSRouteConfig.RouteConfigCodeTMSPurchAgreementHeader.RouteConfigCode
TransportationTemplateIdTransportation template, pointing to the template record.String (20)
TMSTransportationTemplateId
NoYesTMSTransportationTemplate.TransportationTemplateIdTMSPurchAgreementHeader.TransportationTemplateId
DeliveryNameDefault name used for delivery.String (100)
LogisticsDeliveryName
NoYesAgreementHeaderDefault.DeliveryName
DeliveryPostalAddressRecIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoNo (private)LogisticsPostalAddress.RecId
DeliveryAddressLocationIdUnique ID of the location. It is the key of the table.String (40)
LogisticsLocationId
NoYesLogisticsLocation.LocationId
IsDeliveryAddressAgreementSpecificYes or no value showing whether the delivery address is a one-time address for this agreement.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYescomputed
FormattedDeliveryAddressThe full address as one formatted text.String (250)
LogisticsAddressing
NoYesLogisticsPostalAddress.Address
DeliveryAddressZipCodeZIP or postal code, as text.String
LogisticsAddressZipCodeId
NoYesLogisticsPostalAddress.ZipCode
DeliveryBuildingComplimentExtra building detail, such as an entrance or floor.String (60)
LogisticsAddressBuildingCompliment
NoYesLogisticsPostalAddress.BuildingCompliment
DeliveryAddressCityName of the city, as text.String (60)
LogisticsAddressCityName
NoYesLogisticsPostalAddress.City
DeliveryCityInKanaCity name written in Kana; used for Japan.String (60)
AssetCityKana_JP
NoYesLogisticsPostalAddress.CityKana_JP
DeliveryAddressCountryRegionIdThe country or region of the address.String
LogisticsAddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdLogisticsPostalAddress.CountryRegionId
DeliveryAddressCountryRegionISOCodeISO code of the country or region of the address.String (2)
LogisticsAddressCountryRegionISOCode
NoYesNone
DeliveryAddressCountyIdCounty code of the address. It depends on the country and state.String (30)
LogisticsAddressCountyId
NoYesLogisticsAddressCounty.CountyIdLogisticsPostalAddress.County
DeliveryAddressDescriptionName or description of the location.String (60)
LogisticsDescription
NoYesLogisticsLocation.Description
DeliveryAddressDistrictNameName of the district, as text.String (60)
LogisticsAddressDistrictName
NoYesLogisticsPostalAddress.DistrictName
DeliveryAddressDunsNumberThe DUNS number, up to nine characters long. It is the key of the table.String (9)
LogisticsDunsNumber
NoYesDirDunsNumber.DunsNumber
DeliveryAddressLatitudeGeographic latitude of the address.Real
LogisticsAddressLatitude
NoYesLogisticsPostalAddress.Latitude
IsDeliveryAddressPrivateShows whether the address is private (Yes or No).Enum
LogisticsIsPrivate
NoYes

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.IsPrivate
DeliveryAddressLongitudeGeographic longitude of the address.Real
LogisticsAddressLongitude
NoYesLogisticsPostalAddress.Longitude
DeliveryAddressPostBoxPost office box number.String (20)
LogisticsAddressPostBox
NoYesLogisticsPostalAddress.PostBox
DeliveryAddressStateIdState or province code of the address.String
LogisticsAddressStateId
NoYesLogisticsAddressState.StateIdLogisticsPostalAddress.State
DeliveryAddressStreetStreet name of the address.String (250)
LogisticsAddressStreet
NoYesLogisticsPostalAddress.Street
DeliveryStreetInKanaStreet name written in Kana; used for Japan.String (250)
AssetStreetKana_JP
NoYesLogisticsPostalAddress.StreetKana_JP
DeliveryAddressStreetNumberStreet or house number.String (20)
LogisticsAddressStreetNumber
NoYesLogisticsPostalAddress.StreetNumber
DeliveryValidFromDate and time from which the address is effective.UtcDateTime
EffectiveDateTime
NoNo (private)LogisticsPostalAddress.ValidFrom
DeliveryValidToDate and time when the address expires.UtcDateTime
ExpirationDateTime
NoNo (private)LogisticsPostalAddress.ValidTo
DeliveryAddressTimeZoneTime zone of the address.Enum
Timezone

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.TimeZone
DeliveryPostalAddressSystem record ID of the default delivery postal address.Int64
LogisticsPostalAddressRecId
NoNo (private)LogisticsPostalAddress.RecIdAgreementHeaderDefault.DeliveryPostalAddress
AgreementHeaderRecIdSystem record ID of the agreement this default row belongs to.Int64
AgreementHeaderRecId
NoNo (private)AgreementHeader.RecIdAgreementHeaderDefault.AgreementHeader
CommissionAgreementShows whether this is a commission agreement: none, purchase by commissioner or sale by commissioner.Enum
AgencyAgreement_RU
  • None 0
  • PurchaseCommission 1
  • SaleCommission 2
NoYesAgreementHeaderExt_RU.AgencyAgreement
AgreementSumTotal sum of the agreement.Real
AgreementAmount_RU
NoYesAgreementHeaderExt_RU.AgreementAmount
AgreementDateDate of the agreement.Date
AgreementDate_RU
NoYesAgreementHeaderExt_RU.AgreementDate
SubjectOfAnAgreementFree text describing what the agreement is about.String (-1)
AgreementSubject_RU
NoYesAgreementHeaderExt_RU.AgreementSubject
AgreementVatAmountVAT amount of the agreement.Real
AgreementVatAmount_RU
NoYesAgreementHeaderExt_RU.AgreementVatAmount
MobilePhoneMobile phone number for the agreement contact.String (20)
PhoneMobile
NoYesAgreementHeaderExt_RU.CellularPhone
CreditLimitMaximum credit allowed for this agreement (in accounting currency).Real
CreditMaxMST
NoYesAgreementHeaderExt_RU.CreditMax
InventoryProfileInventory profile linked to the agreement.String
InventProfileId_RU
NoYesInventProfile_RU.InventProfileIdAgreementHeaderExt_RU.InventProfileId
KindOfActivityKind of activity, such as basic, commission agent, principal's agent or bailee.Enum
InventProfileType_RU
  • NotSpecified 0
  • General 1
  • CommissionAgent 41
  • CommissionPrincipalAgent 43
  • Bailee 44
NoYesAgreementHeaderExt_RU.InventProfileType
LineOfBusinessLine of business linked to the agreement.String
LineOfBusinessId
NoYesLineOfBusiness.LineOfBusinessIdAgreementHeaderExt_RU.LineOfBusinessId
PaymDayPayment day setting linked to the agreement.String
PaymDayId
NoYesPaymDay.PaymDayIdAgreementHeaderExt_RU.PaymDayId
TelephoneTelephone number for the agreement contact.String (20)
Phone
NoYesAgreementHeaderExt_RU.Phone
ExtensionTelephone extension number.String
PhoneLocal
NoYesAgreementHeaderExt_RU.PhoneLocal
FaxFax number for the agreement contact.String (20)
TeleFax
NoYesAgreementHeaderExt_RU.TeleFax
TelexNumberTelex number for the agreement contact.String (20)
Telex
NoYesAgreementHeaderExt_RU.Telex
InternetAddressInternet address for the agreement contact.String (255)
URL
NoYesAgreementHeaderExt_RU.Url
AmountDifferenceInTaxAccountingYes or no flag for amount difference in tax accounting.Enum
TaxAmountDifference_RU
NoYes

Platform enum: values not in the metadata extract.

NoYesAgreementHeaderExt_RU.TaxAmountDifference
ExcludeFromReserveInBusinessAccountingYes or no flag to leave this agreement out of the reserve in business accounting.Enum
ExcludeReserveCalc_RU
NoYes

Platform enum: values not in the metadata extract.

NoYesAgreementHeaderExt_RU.ExcludeReserveCalc
ExcludeFromReserveInTaxAccountingYes or no flag to leave this agreement out of the reserve in tax accounting.Enum
ExcludeReserveCalc_RU
NoYes

Platform enum: values not in the metadata extract.

NoYesAgreementHeaderExt_RU.ExcludeReserveCalcTax
VATChargeShows whether VAT is charged from vendor funds or from own funds.Enum
VATChargeSource_RU
  • VendorFunds 0
  • OwnFunds 1
NoYesPurchAgreementHeaderExt_RU.VATChargeSource
VATOperationCodeVAT operation code for the agreement, taken from the VAT operation codes table.String
VATOperationCode_RU
NoYesVATOperationCodeTable_RU.OperationCodePurchAgreementHeaderExt_RU.VATOperationCode
PostingProfileVendor posting profile that the agreement uses.String
VendPostingProfile
NoYesVendLedger.PostingProfilePurchAgreementHeaderExt_RU.VendPostingProfile
PostingProfileWithPrepaymentJournalVoucherVendor posting profile used for the prepayment journal voucher.String
VendPostingProfile
NoYesVendLedger.PostingProfilePurchAgreementHeaderExt_RU.VendPrepaymentPostingProfile
PurchaseResponsibleWorker who is responsible for purchasing on this agreement. Points to a worker record.Int64
WorkerPurchResponsible_RU
NoYesHcmWorker.RecIdPurchAgreementHeaderExt_RU.WorkerPurchResponsible
PrimaryResponsibleWorkerRecIdMain worker responsible for the agreement. It points to a worker record.Int64
HcmWorkerRecId
NoNo (private)HcmWorker.RecIdPurchAgreementHeader.PrimaryResponsibleWorker
SecondaryResponsibleWorkerRecIdSecond worker responsible for the agreement. It points to a worker record.Int64
HcmWorkerRecId
NoNo (private)HcmWorker.RecIdPurchAgreementHeader.SecondaryResponsibleWorker
PrimaryResponsibleWorkerNameFull name of the party.String (160)
DirPartyName
YesYesDirPartyTable.Name
SecondaryResponsibleWorkerNameFull name of the party.String (160)
DirPartyName
YesYesDirPartyTable.Name
ShipCalendarIdIdentifier of the vendor ship calendar used for this agreement.String
PurchVendorShipCalendarId
NoYesPurchAgreementHeader.ShipCalendarId
FinTagDisplayValueLong text showing the tag values together in a readable form.String (-1)
FinTagDisplayValue
YesYesFinTag.DisplayValue
MatchingPolicyLine matching policy for the agreement, such as two-way or three-way matching.Enum
PurchMatchingPolicyWithNotSetOption
  • NotSet 0
  • ThreeWayMatch 1
  • TwoWayMatch 2
  • NoMatch 3
NoYesPurchAgreementHeader.MatchingPolicy

Foreign keys (41)

Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.

Need help with PurchPurchaseAgreementHeaderV2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk