Table
PurchReqLineHistory
Purchase requisition lines
History table for purchase requisition lines. Each row is a version of a line, identified by the line reference and a valid-from and valid-to time. It holds item, quantity, price, delivery, project, tax, vendor and status data, and many links to other records.
- Table name
PurchReqLineHistory- Module
Procurement and sourcing- Table group
WorksheetLine- Table type
Regular- Data per company
No- Configuration key
PurchReq- Primary index
RecId- Replacement key
PositionIdx- Key fields
PurchReqLine, ValidFrom, ValidTo- Model
Foundation
Fields (96)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
PurchReqLinePoints to the purchase requisition line that this history row describes. | Int64RefRecId | No | PurchReqLine.RecId | None |
ValidFromDate and time when this version became valid. | UtcDateTimeValidFromDateTime | No | None | |
ValidToDate and time when this version stopped being valid. | UtcDateTimeValidToDateTime | Yes | None | |
AccountingDistributionTemplatePoints to the accounting distribution template used on the line. | Int64AccountingDistributionTemplateRecId | No | AccountingDistributionTemplate.RecId | None |
ActivityNumberProject activity number linked to the line. | String (50)ProjActivityNumber | No | ProjActivity.ActivityNumber | None |
ActivityNumberDataAreaCompany of the linked project activity. | StringDataAreaId | No | ProjActivity.dataAreaId | None |
AddressRefRecIdRecord ID of the address record. It is paired with a table ID. | Int64AddressRefRecId | No | None | |
AddressRefTableIdID of the table that holds the address record. | IntegerAddressRefTableId | No | None | |
AssetGroupFixed asset group for the line. | StringAssetGroupId | No | AssetGroup.GroupId | None |
AssetGroupDataAreaCompany of the fixed asset group. | StringDataAreaId | No | AssetGroup.dataAreaId | None |
AssetRuleQualifierOptionPoints to an asset acquisition rule qualifier option. | Int64RefRecId | No | AssetRuleQualifierOption.RecId | None |
AssetRuleQualifierOptionLocalPoints to a local asset acquisition rule qualifier option. | Int64RefRecId | No | AssetRuleQualifierOptionLocal.RecId | None |
AttentionAttention information for the delivery, such as a contact name. | String (255)PurchReqAttention | No | None | |
BusinessJustificationPoints to the business justification code (reason) for the line. | Int64BusinessJustificationRefRecId | No | PurchReqBusinessJustificationCodes.RecId | None |
BuyingLegalEntityPoints to the legal entity that buys the goods or services. | Int64RefRecId | Yes | CompanyInfo.RecId | None |
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 of the line. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | None |
DefaultDimensionPoints to the set of financial dimension values for the line. | Int64PurchReqDefaultDimensionValueSet | No | DimensionAttributeValueSet.RecId | None |
DeliveryNameName used for the delivery address. | String (160)VendName | No | None | |
DeliveryPostalAddressPoints to the postal address for delivery. | Int64LogisticsPostalAddressRecId | No | LogisticsPostalAddress.RecId | None |
ExternalItemIdItem number used by an external party. | String (20)ExternalItemId | No | None | |
FinTagPoints to a financial tag on the line. | Int64FinTagRecId | No | FinTag.RecId | None |
InclTaxYes/no flag showing whether prices include sales tax. | EnumInclTaxNoYes (enum) | No | None | |
InventDimIdInventory dimension number for the line. | String (20)InventDimId | Yes | InventDim.inventDimId | None |
InventDimIdDataAreaCompany of the inventory dimension record. | StringDataAreaId | Yes | InventDim.dataAreaId | None |
InventLocationIdWarehouse for the line. | StringInventLocationId | No | InventLocation.InventLocationId | None |
InventLocationIdDataAreaCompany of the warehouse. | StringDataAreaId | No | InventLocation.dataAreaId | None |
IsPreEncumbranceRequiredShows whether a pre-encumbrance is required: unknown, no or yes. | EnumUnknownNoYes (enum) | No | None | |
IsPrepaymentYes/no flag showing whether a prepayment is required. | EnumNoYes (enum) | No | None | |
IsSavedYes/no flag with no label. Its purpose is not clear from the metadata.low confidence | EnumNoYesIdNoYes (enum) | No | None | |
ItemIdItem number of the requested product. | String (20)ItemIdSmall | No | InventTable.ItemId | None |
ItemIdDataAreaCompany of the item record. | StringDataAreaId | No | InventTable.dataAreaId | None |
ItemIdNonCatalogProduct name for an item that is not in a catalogue. | String (60)PurchReqItemIdNonCatalog | No | None | |
LineAmountNet amount of the line. | RealPurchLineAmount | No | None | |
LineCompleteYes/no flag to prevent partial delivery. | EnumLineCompleteNoYes (enum) | No | None | |
LineDiscDiscount value on the line. | RealPurchLineDisc | No | None | |
LineNumLine number. | RealLineNum | No | None | |
LinePercentDiscount percentage on the line. | RealPurchLinePercent | No | None | |
LineRefIdUnique reference ID (GUID) of the line. | GuidPurchReqLineRefId | No | None | |
LineTypeKind of line: internal catalogue item, non-catalogue item or external catalogue item. | EnumPurchReqLineType (enum) | No | None | |
NameFree-text description of the item. | String (1000)ItemFreeTxt | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PrePaymentDetailsShort text with prepayment details. | String (40)PurchReqLinePrePaymentDetails | No | None | |
PriceUnitQuantity that the unit price applies to. | RealPriceUnit | No | None | |
ProcurementCategoryPoints to the procurement category of the line. | Int64EcoResCategoryId | No | EcoResCategory.RecId | None |
ProductGroupIdCategory code from the product group, labelled Category. | String (20)InventProductGroupId | No | None | |
ProductGroupIdDataAreaCompany of the product group. | StringDataAreaId | No | None | |
ProjCategoryIdProject category for the line. | String (30)ProjCategoryId | No | ProjCategory.CategoryId | None |
ProjCategoryIdDataAreaCompany of the project category. | StringDataAreaId | No | ProjCategory.dataAreaId | None |
ProjIdProject ID the line is charged to. | String (20)ProjId | No | ProjTable.ProjId | None |
ProjIdDataAreaCompany of the project. | StringDataAreaId | No | ProjTable.dataAreaId | None |
ProjLinePropertyIdProject line property of the line. | StringProjLinePropertyId | No | ProjLineProperty.LinePropertyId | None |
ProjLinePropertyIdDataAreaCompany of the line property. | StringDataAreaId | No | ProjLineProperty.dataAreaId | None |
ProjSalesCurrencyIdCurrency of the project sales price. | String (3)CurrencyCode | No | Currency.CurrencyCode | None |
ProjSalesPriceProject sales price of the line. | RealProjSalesPriceCost | No | None | |
ProjSalesUnitOfMeasurePoints to the unit of measure for the project sales price. | Int64RefRecId | No | UnitOfMeasure.RecId | None |
ProjTaxGroupIdSales tax group used for the project. | StringProjTaxGroup | No | TaxGroupHeading.TaxGroup | None |
ProjTaxGroupIdDataAreaCompany of the project sales tax group. | StringDataAreaId | No | TaxGroupHeading.dataAreaId | None |
ProjTaxItemGroupIdItem sales tax group used for the project. | StringProjTaxItemGroup | No | TaxItemGroupHeading.TaxItemGroup | None |
ProjTaxItemGroupIdDataAreaCompany of the project item sales tax group. | StringDataAreaId | No | TaxItemGroupHeading.dataAreaId | None |
ProjTransIdTransaction ID of the related project item transaction. | String (20)ProjItemTransId | No | ProjItemTrans.ProjTransId | None |
ProjTransIdDataAreaCompany of the project item transaction. | StringDataAreaId | No | ProjItemTrans.dataAreaId | None |
PurchAgreementPoints to the purchase agreement linked to the line. | Int64RefRecId | No | PurchAgreementHeader.RecId | None |
PurchIdPurchase order number linked to the line. | String (20)PurchId | No | PurchTable.PurchId | None |
PurchIdDataAreaCompany of the purchase order. | StringDataAreaId | No | PurchTable.dataAreaId | None |
PurchLineCreatedYes/no flag showing whether a purchase line was created. | EnumPurchReqPurchLineCreatedNoYes (enum) | No | None | |
PurchMarkupCharges on purchases for the line. | RealPurchMarkup | No | None | |
PurchPriceUnit price of the item. | RealPurchReqPrice | No | None | |
PurchQtyRequested quantity. | RealInventQty | No | None | |
PurchReqConsolidationStatusConsolidation status of the line: none, pending consolidation or consolidated. | EnumPurchReqConsolidationStatus (enum) | No | None | |
PurchReqTablePoints to the purchase requisition that holds the line. | Int64RefRecId | Yes | PurchReqTable.RecId | None |
PurchRFQCaseIdReference to the request for quotation case. | String (20)PurchRFQCaseId | No | PurchRFQCaseTable.RFQCaseId | None |
PurchRFQCaseIdDataAreaCompany of the RFQ case. | StringDataAreaId | No | PurchRFQCaseTable.dataAreaId | None |
PurchUnitOfMeasurePoints to the unit of measure for the purchase quantity. | Int64RefRecId | No | UnitOfMeasure.RecId | None |
ReasonRefRecIdPoints to a reason reference record. | Int64ReasonRefRecID | No | ReasonTableRef.RecId | None |
ReceivingOperatingUnitPoints to the operating unit that receives the goods. | Int64RefRecId | No | OMOperatingUnit.RecId | None |
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 | |
RequiredDateDate the goods or services are requested. | DatePurchReqRequiredDate | No | None | |
RequisitionerPoints to the worker who requested the line. | Int64PurchReqRequesterRefRecId | Yes | HcmWorker.RecId | None |
RFQRequirementShows whether an RFQ is needed: none, informal or formal. | EnumPurchReqRFQRequirementTypePurchReqRFQRequirement (enum) | No | None | |
SequenceNumberSequence number of the line. | IntegerSequenceNumber | Yes | None | |
SourceDocumentLinePoints to the source document line. | Int64RefRecId | Yes | SourceDocumentLine.RecId | None |
StatusRequisition status: draft, in review, rejected, approved, cancelled, closed or budget reserved. | EnumPurchReqRequisitionStatus (enum) | No | None | |
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 | |
TaxGroupSales tax group of the line. | StringTaxGroup | No | TaxGroupHeading.TaxGroup | None |
TaxGroupDataAreaCompany of the sales tax group. | StringDataAreaId | No | TaxGroupHeading.dataAreaId | None |
TaxItemGroupItem sales tax group of the line. | StringTaxItemGroup | No | TaxItemGroupHeading.TaxItemGroup | None |
TaxItemGroupDataAreaCompany of the item sales tax group. | StringDataAreaId | No | TaxItemGroupHeading.dataAreaId | None |
TransDateAccounting date of the line. | DatePurchReqAccountingDate | No | None | |
URLInternet address related to the line. | String (255)URL | No | None | |
VendAccountVendor account for the line. | String (20)VendAccount | No | VendTable.AccountNum | None |
VendAccountDataAreaCompany of the vendor account. | StringDataAreaId | No | VendTable.dataAreaId | None |
VendQuoteNumberVendor quotation number used for consolidation. | String (20)VendQuoteNumber | No | None |
Indexes (3)
PositionIdxReplacement keyPurchReqLine,ValidFrom,ValidToUnique, alternate key.
UnitOfMeasureIdxNot unique.
LogisticsPostalAddressIdxNot unique.
Relations (37)
Each relation joins PurchReqLineHistory to another table on the fields shown.
AccountingDistributionTemplate→AccountingDistributionTemplateJoin on
AccountingDistributionTemplate = AccountingDistributionTemplate.RecIdMany PurchReqLineHistory records → zero or one AccountingDistributionTemplate record
AssetGroup→AssetGroupJoin on
AssetGroupDataArea = AssetGroup.dataAreaId,AssetGroup = AssetGroup.GroupIdMany PurchReqLineHistory records → zero or one AssetGroup record
AssetRuleQualifierOption→AssetRuleQualifierOptionJoin on
AssetRuleQualifierOption = AssetRuleQualifierOption.RecIdMany PurchReqLineHistory records → zero or one AssetRuleQualifierOption record
AssetRuleQualifierOptionLocal→AssetRuleQualifierOptionLocalJoin on
AssetRuleQualifierOptionLocal = AssetRuleQualifierOptionLocal.RecIdMany PurchReqLineHistory records → zero or one AssetRuleQualifierOptionLocal record
Common→CommonJoin on
AddressRefTableId = Common.TableId,AddressRefRecId = Common.RecIdCardinality not set in the metadata.
CompanyInfo→CompanyInfoJoin on
BuyingLegalEntity = CompanyInfo.RecIdMany PurchReqLineHistory records → exactly one CompanyInfo record
Currency→CurrencyJoin on
ProjSalesCurrencyId = Currency.CurrencyCodeMany PurchReqLineHistory records → zero or one Currency record
CurrencyCode→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany PurchReqLineHistory records → exactly one Currency record
DefaultDimension→DimensionAttributeValueSetJoin on
DefaultDimension = DimensionAttributeValueSet.RecIdMany PurchReqLineHistory records → zero or one DimensionAttributeValueSet record
DeliveryPostalAddress→LogisticsPostalAddressJoin on
DeliveryPostalAddress = LogisticsPostalAddress.RecIdMany PurchReqLineHistory records → zero or one LogisticsPostalAddress record
EcoResCategory→EcoResCategoryJoin on
ProcurementCategory = EcoResCategory.RecIdMany PurchReqLineHistory records → zero or one EcoResCategory record
InventDim→InventDimJoin on
InventDimIdDataArea = InventDim.dataAreaId,InventDimId = InventDim.inventDimIdMany PurchReqLineHistory records → exactly one InventDim record
InventLocation→InventLocationJoin on
InventLocationIdDataArea = InventLocation.dataAreaId,InventLocationId = InventLocation.InventLocationIdMany PurchReqLineHistory records → zero or one InventLocation record
InventTable→InventTableJoin on
ItemIdDataArea = InventTable.dataAreaId,ItemId = InventTable.ItemIdMany PurchReqLineHistory records → zero or one InventTable record
OMOperatingUnit→OMOperatingUnitJoin on
ReceivingOperatingUnit = OMOperatingUnit.RecIdMany PurchReqLineHistory records → zero or one OMOperatingUnit record
ProjCategory→ProjCategoryJoin on
ProjCategoryIdDataArea = ProjCategory.dataAreaId,ProjCategoryId = ProjCategory.CategoryIdMany PurchReqLineHistory records → zero or one ProjCategory record
ProjItemTrans→ProjItemTransJoin on
ProjTransIdDataArea = ProjItemTrans.dataAreaId,ProjTransId = ProjItemTrans.ProjTransIdMany PurchReqLineHistory records → zero or one ProjItemTrans record
ProjLineProperty→ProjLinePropertyJoin on
ProjLinePropertyIdDataArea = ProjLineProperty.dataAreaId,ProjLinePropertyId = ProjLineProperty.LinePropertyIdMany PurchReqLineHistory records → zero or one ProjLineProperty record
ProjSalesUnitOfMeasure→UnitOfMeasureJoin on
ProjSalesUnitOfMeasure = UnitOfMeasure.RecIdMany PurchReqLineHistory records → zero or one UnitOfMeasure record
ProjTable→ProjTableJoin on
ProjIdDataArea = ProjTable.dataAreaId,ProjId = ProjTable.ProjIdMany PurchReqLineHistory records → zero or one ProjTable record
ProjTaxGroupHeading→TaxGroupHeadingJoin on
ProjTaxGroupIdDataArea = TaxGroupHeading.dataAreaId,ProjTaxGroupId = TaxGroupHeading.TaxGroupMany PurchReqLineHistory records → zero or one TaxGroupHeading record
ProjTaxItemGroupHeading→TaxItemGroupHeadingJoin on
ProjTaxItemGroupIdDataArea = TaxItemGroupHeading.dataAreaId,ProjTaxItemGroupId = TaxItemGroupHeading.TaxItemGroupMany PurchReqLineHistory records → zero or one TaxItemGroupHeading record
PurchaseAgreement→PurchAgreementHeaderJoin on
PurchAgreement = PurchAgreementHeader.RecIdMany PurchReqLineHistory records → zero or one PurchAgreementHeader record
PurchReqBusinessJustificationCodes→PurchReqBusinessJustificationCodesJoin on
BusinessJustification = PurchReqBusinessJustificationCodes.RecIdMany PurchReqLineHistory records → zero or one PurchReqBusinessJustificationCodes record
PurchReqLine→PurchReqLineJoin on
PurchReqLine = PurchReqLine.RecIdMany PurchReqLineHistory records → zero or one PurchReqLine record
PurchReqTable→PurchReqTableJoin on
PurchReqTable = PurchReqTable.RecIdMany PurchReqLineHistory records → exactly one PurchReqTable record
PurchRFQCaseTable→PurchRFQCaseTableJoin on
PurchRFQCaseIdDataArea = PurchRFQCaseTable.dataAreaId,PurchRFQCaseId = PurchRFQCaseTable.RFQCaseIdMany PurchReqLineHistory records → zero or one PurchRFQCaseTable record
PurchTable→PurchTableJoin on
PurchIdDataArea = PurchTable.dataAreaId,PurchId = PurchTable.PurchIdMany PurchReqLineHistory records → zero or one PurchTable record
PurchUnitOfMeasure→UnitOfMeasureJoin on
PurchUnitOfMeasure = UnitOfMeasure.RecIdMany PurchReqLineHistory records → zero or one UnitOfMeasure record
ReasonRef→ReasonTableRefJoin on
ReasonRefRecId = ReasonTableRef.RecIdMany PurchReqLineHistory records → zero or one ReasonTableRef record
Requisitioner→HcmWorkerJoin on
Requisitioner = HcmWorker.RecIdMany PurchReqLineHistory records → exactly one HcmWorker record
smmActivities→ProjActivityJoin on
ActivityNumberDataArea = ProjActivity.dataAreaId,ActivityNumber = ProjActivity.ActivityNumberMany PurchReqLineHistory records → zero or one ProjActivity record
SourceDocumentLine→SourceDocumentLineJoin on
SourceDocumentLine = SourceDocumentLine.RecIdMany PurchReqLineHistory records → exactly one SourceDocumentLine record
TaxGroupHeading→TaxGroupHeadingJoin on
TaxGroupDataArea = TaxGroupHeading.dataAreaId,TaxGroup = TaxGroupHeading.TaxGroupMany PurchReqLineHistory records → zero or one TaxGroupHeading record
TaxItemGroupHeading→TaxItemGroupHeadingJoin on
TaxItemGroupDataArea = TaxItemGroupHeading.dataAreaId,TaxItemGroup = TaxItemGroupHeading.TaxItemGroupMany PurchReqLineHistory records → zero or one TaxItemGroupHeading record
VendTable→VendTableJoin on
VendAccountDataArea = VendTable.dataAreaId,VendAccount = VendTable.AccountNumMany PurchReqLineHistory records → zero or one VendTable record
FinTag→FinTagJoin on
FinTag = FinTag.RecIdMany PurchReqLineHistory records → zero or one FinTag record
Get this data out
No public entity reads from PurchReqLineHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with PurchReqLineHistory in a report, an integration or a migration? Talk to Dr Dynamics.