Table
PurchaseOrderResponseHeaderHistory
Purchase order response history
Keeps earlier versions of purchase order response headers. Each row is valid for a period (ValidFrom to ValidTo) and links to the current response header. It stores the same order, vendor, delivery and payment details as the response header.
- Table name
PurchaseOrderResponseHeaderHistory- Module
Procurement and sourcing- Table group
TransactionHeader- Table type
Regular- Data per company
Yes- Configuration key
LogisticsBasic- Primary index
None- Replacement key
PurchaseOrderResponseHeaderIdx- Key fields
PurchaseOrderResponseHeader, ValidFrom, ValidTo- Model
Foundation
Fields (28)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PurchaseOrderResponseHeaderPoints to the purchase order response header that this history row belongs to. | Int64PurchaseOrderResponseHeaderRecId | Yes | PurchaseOrderResponseHeader.RecId | None |
ValidFromDate and time when this history row started being valid. | UtcDateTimeValidFromDateTime | No | None | |
ValidToDate and time when this history row stopped being valid. | UtcDateTimeValidToDateTime | No | None | |
ConfirmedDlvReceipt date that the vendor confirmed. | DatePurchTableConfirmedReceiptDate | No | PurchaseOrderResponseHeaderEntityVRMPurchaseOrderResponseArchivedHeaderEntity | |
ConsumptionStateShows whether the purchase order has been updated from this response: no, yes or manual update. | EnumConsumptionState (enum) | No | PurchaseOrderResponseHeaderEntity | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CurrencyCodeCurrency code used on the response. It points to a currency record. | String (3)VendCurrencyCode | Yes | Currency.CurrencyCode | VRMPurchaseOrderResponseArchivedOriginalOrderHeaderEntityPurchaseOrderResponseHeaderEntityVRMPurchaseOrderResponseArchivedHeaderEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DeliveryPostalAddressLinks to the postal address used for delivery. | Int64LogisticsPostalAddressRecId | No | None | |
DiscPercentDiscount percentage for the whole order header. | RealPurchEndDiscPct | No | VRMPurchaseOrderResponseArchivedOriginalOrderHeaderEntityPurchaseOrderResponseHeaderEntityVRMPurchaseOrderResponseArchivedHeaderEntity | |
DlvModeCode of the mode of delivery for the order. | StringVendDlvModeId | No | VRMPurchaseOrderResponseArchivedOriginalOrderHeaderEntityPurchaseOrderResponseHeaderEntityVRMPurchaseOrderResponseArchivedHeaderEntity | |
DlvTermDelivery terms for the order. It points to a delivery term record. | StringVendDlvTermId | No | DlvTerm.Code | VRMPurchaseOrderResponseArchivedOriginalOrderHeaderEntityPurchaseOrderResponseHeaderEntityVRMPurchaseOrderResponseArchivedHeaderEntity |
DocumentDateDate of the response document. | DateTransDate | Yes | PurchaseOrderResponseHeaderEntity | |
EarliestConfirmedDlvDateEarliest receipt date that the vendor confirmed. | DatePurchTableConfirmedReceiptEarliestDate | No | VRMPurchaseOrderResponseArchivedOriginalOrderHeaderEntityVRMPurchaseOrderResponseArchivedHeaderEntity | |
EarliestDlvDateEarliest receipt date that was requested. | DatePurchTableRequestedReceiptEarliestDate | No | VRMPurchaseOrderResponseArchivedOriginalOrderHeaderEntityPurchaseOrderResponseHeaderEntityVRMPurchaseOrderResponseArchivedHeaderEntity | |
InvoiceAccountVendor account that receives the invoice. | String (20)VendInvoiceAccount | Yes | VendTable.AccountNum | VRMPurchaseOrderResponseArchivedOriginalOrderHeaderEntityPurchaseOrderResponseHeaderEntityPurchaseOrderResponseLineEntityand 1 more |
OrderAccountAccount of the vendor that the order is placed with. | String (20)VendAccount | Yes | VendTable.AccountNum | VRMPurchaseOrderResponseArchivedOriginalOrderHeaderEntityPurchaseOrderResponseHeaderEntityPurchaseOrderResponseLineEntityand 1 more |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PaymentTerms of payment for the order. It points to a payment term. | String (100)VendPaymTermId | No | PaymTerm.PaymTermId | VRMPurchaseOrderResponseArchivedOriginalOrderHeaderEntityPurchaseOrderResponseHeaderEntityVRMPurchaseOrderResponseArchivedHeaderEntity |
PaymModeThe method of payment for the vendor. It points to a vendor payment method. | StringVendPaymMode | No | VendPaymModeTable.PaymMode | VRMPurchaseOrderResponseArchivedOriginalOrderHeaderEntityPurchaseOrderResponseHeaderEntityVRMPurchaseOrderResponseArchivedHeaderEntity |
PurchIdThe purchase order that the response relates to. | String (20)PurchIdBase | Yes | VRMPurchaseOrderResponseArchivedOriginalOrderHeaderEntityPurchaseOrderResponseHeaderEntityPurchaseOrderResponseLineEntityand 1 more | |
PurchStatusStatus of the purchase order, such as open order, received, invoiced or cancelled. | EnumPurchStatus (enum) | No | VRMPurchaseOrderResponseArchivedOriginalOrderHeaderEntityPurchaseOrderResponseHeaderEntityVRMPurchaseOrderResponseArchivedHeaderEntity | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | VRMPurchaseOrderResponseArchivedOriginalOrderHeaderEntityVRMPurchaseOrderResponseArchivedHeaderEntityVRMPurchaseOrderResponseHeaderHistoryAttachmentEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
ResponseIdID of the purchase order response. | String (20)PurchaseOrderResponseId | No | VRMPurchaseOrderResponseArchivedOriginalOrderHeaderEntityVRMPurchaseOrderResponseArchivedOriginalOrderLineEntity | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
VendorRefThe vendor's own reference text for the order. | String (60)VendRef | No | VRMPurchaseOrderResponseArchivedOriginalOrderHeaderEntityPurchaseOrderResponseHeaderEntityVRMPurchaseOrderResponseArchivedHeaderEntity |
Indexes (1)
PurchaseOrderResponseHeaderIdxReplacement keyPurchaseOrderResponseHeader,ValidFrom,ValidToUnique, alternate key.
Relations (8)
Each relation joins PurchaseOrderResponseHeaderHistory to another table on the fields shown.
VendPaymModeTable→VendPaymModeTableJoin on
PaymMode = VendPaymModeTable.PaymModeMany PurchaseOrderResponseHeaderHistory records → zero or one VendPaymModeTable record
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany PurchaseOrderResponseHeaderHistory records → exactly one Currency record
OrderVendor→VendTableJoin on
OrderAccount = VendTable.AccountNumMany PurchaseOrderResponseHeaderHistory records → exactly one VendTable record
InvoiceVendor→VendTableJoin on
InvoiceAccount = VendTable.AccountNumMany PurchaseOrderResponseHeaderHistory records → exactly one VendTable record
DlvTerm→DlvTermJoin on
DlvTerm = DlvTerm.CodeMany PurchaseOrderResponseHeaderHistory records → zero or one DlvTerm record
PaymTerm→PaymTermJoin on
Payment = PaymTerm.PaymTermIdMany PurchaseOrderResponseHeaderHistory records → zero or one PaymTerm record
LogisticsPostalAddressBaseEntity→LogisticsPostalAddressBaseEntityJoin on
DeliveryPostalAddress = LogisticsPostalAddressBaseEntity.AddressRecIdMany PurchaseOrderResponseHeaderHistory records → zero or one LogisticsPostalAddressBaseEntity record
PurchaseOrderResponseHeader→PurchaseOrderResponseHeaderJoin on
PurchaseOrderResponseHeader = PurchaseOrderResponseHeader.RecIdMany PurchaseOrderResponseHeaderHistory records → exactly one PurchaseOrderResponseHeader record
Get this data out
Tables are not exposed directly. These public entities read from PurchaseOrderResponseHeaderHistory; use one of them in Power BI, Power Platform or a data management project.
VRMPurchaseOrderResponseArchivedOriginalOrderHeaderEntity· 15 fields from this tablePurchaseOrderResponseHeaderEntity· 15 fields from this tablePurchaseOrderResponseLineEntity· 3 fields from this tableVRMPurchaseOrderResponseArchivedHeaderEntity· 15 fields from this tableVRMPurchaseOrderResponseArchivedOriginalOrderLineEntity· 1 field from this tableVRMPurchaseOrderResponseHeaderHistoryAttachmentEntity· 1 field from this tableVRMPurchaseOrderResponseLineHistoryAttachmentEntity· 0 fields from this table
Need help with PurchaseOrderResponseHeaderHistory in a report, an integration or a migration? Talk to Dr Dynamics.