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 descriptionType / EDT / enumMandatoryReferencesIn public entities
PurchReqLinePoints to the purchase requisition line that this history row describes.Int64
RefRecId
NoPurchReqLine.RecIdNone
ValidFromDate and time when this version became valid.UtcDateTime
ValidFromDateTime
NoNone
ValidToDate and time when this version stopped being valid.UtcDateTime
ValidToDateTime
YesNone
AccountingDistributionTemplatePoints to the accounting distribution template used on the line.Int64
AccountingDistributionTemplateRecId
NoAccountingDistributionTemplate.RecIdNone
ActivityNumberProject activity number linked to the line.String (50)
ProjActivityNumber
NoProjActivity.ActivityNumberNone
ActivityNumberDataAreaCompany of the linked project activity.String
DataAreaId
NoProjActivity.dataAreaIdNone
AddressRefRecIdRecord ID of the address record. It is paired with a table ID.Int64
AddressRefRecId
NoNone
AddressRefTableIdID of the table that holds the address record.Integer
AddressRefTableId
NoNone
AssetGroupFixed asset group for the line.String
AssetGroupId
NoAssetGroup.GroupIdNone
AssetGroupDataAreaCompany of the fixed asset group.String
DataAreaId
NoAssetGroup.dataAreaIdNone
AssetRuleQualifierOptionPoints to an asset acquisition rule qualifier option.Int64
RefRecId
NoAssetRuleQualifierOption.RecIdNone
AssetRuleQualifierOptionLocalPoints to a local asset acquisition rule qualifier option.Int64
RefRecId
NoAssetRuleQualifierOptionLocal.RecIdNone
AttentionAttention information for the delivery, such as a contact name.String (255)
PurchReqAttention
NoNone
BusinessJustificationPoints to the business justification code (reason) for the line.Int64
BusinessJustificationRefRecId
NoPurchReqBusinessJustificationCodes.RecIdNone
BuyingLegalEntityPoints to the legal entity that buys the goods or services.Int64
RefRecId
YesCompanyInfo.RecIdNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CurrencyCodeCurrency of the line.String (3)
CurrencyCode
YesCurrency.CurrencyCodeNone
DefaultDimensionPoints to the set of financial dimension values for the line.Int64
PurchReqDefaultDimensionValueSet
NoDimensionAttributeValueSet.RecIdNone
DeliveryNameName used for the delivery address.String (160)
VendName
NoNone
DeliveryPostalAddressPoints to the postal address for delivery.Int64
LogisticsPostalAddressRecId
NoLogisticsPostalAddress.RecIdNone
ExternalItemIdItem number used by an external party.String (20)
ExternalItemId
NoNone
FinTagPoints to a financial tag on the line.Int64
FinTagRecId
NoFinTag.RecIdNone
InclTaxYes/no flag showing whether prices include sales tax.Enum
InclTax
NoYes (enum)
NoNone
InventDimIdInventory dimension number for the line.String (20)
InventDimId
YesInventDim.inventDimIdNone
InventDimIdDataAreaCompany of the inventory dimension record.String
DataAreaId
YesInventDim.dataAreaIdNone
InventLocationIdWarehouse for the line.String
InventLocationId
NoInventLocation.InventLocationIdNone
InventLocationIdDataAreaCompany of the warehouse.String
DataAreaId
NoInventLocation.dataAreaIdNone
IsPreEncumbranceRequiredShows whether a pre-encumbrance is required: unknown, no or yes.Enum
UnknownNoYes (enum)
NoNone
IsPrepaymentYes/no flag showing whether a prepayment is required.Enum
NoYes (enum)
NoNone
IsSavedYes/no flag with no label. Its purpose is not clear from the metadata.low confidenceEnum
NoYesId
NoYes (enum)
NoNone
ItemIdItem number of the requested product.String (20)
ItemIdSmall
NoInventTable.ItemIdNone
ItemIdDataAreaCompany of the item record.String
DataAreaId
NoInventTable.dataAreaIdNone
ItemIdNonCatalogProduct name for an item that is not in a catalogue.String (60)
PurchReqItemIdNonCatalog
NoNone
LineAmountNet amount of the line.Real
PurchLineAmount
NoNone
LineCompleteYes/no flag to prevent partial delivery.Enum
LineComplete
NoYes (enum)
NoNone
LineDiscDiscount value on the line.Real
PurchLineDisc
NoNone
LineNumLine number.Real
LineNum
NoNone
LinePercentDiscount percentage on the line.Real
PurchLinePercent
NoNone
LineRefIdUnique reference ID (GUID) of the line.Guid
PurchReqLineRefId
NoNone
LineTypeKind of line: internal catalogue item, non-catalogue item or external catalogue item.Enum
PurchReqLineType (enum)
NoNone
NameFree-text description of the item.String (1000)
ItemFreeTxt
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PrePaymentDetailsShort text with prepayment details.String (40)
PurchReqLinePrePaymentDetails
NoNone
PriceUnitQuantity that the unit price applies to.Real
PriceUnit
NoNone
ProcurementCategoryPoints to the procurement category of the line.Int64
EcoResCategoryId
NoEcoResCategory.RecIdNone
ProductGroupIdCategory code from the product group, labelled Category.String (20)
InventProductGroupId
NoNone
ProductGroupIdDataAreaCompany of the product group.String
DataAreaId
NoNone
ProjCategoryIdProject category for the line.String (30)
ProjCategoryId
NoProjCategory.CategoryIdNone
ProjCategoryIdDataAreaCompany of the project category.String
DataAreaId
NoProjCategory.dataAreaIdNone
ProjIdProject ID the line is charged to.String (20)
ProjId
NoProjTable.ProjIdNone
ProjIdDataAreaCompany of the project.String
DataAreaId
NoProjTable.dataAreaIdNone
ProjLinePropertyIdProject line property of the line.String
ProjLinePropertyId
NoProjLineProperty.LinePropertyIdNone
ProjLinePropertyIdDataAreaCompany of the line property.String
DataAreaId
NoProjLineProperty.dataAreaIdNone
ProjSalesCurrencyIdCurrency of the project sales price.String (3)
CurrencyCode
NoCurrency.CurrencyCodeNone
ProjSalesPriceProject sales price of the line.Real
ProjSalesPriceCost
NoNone
ProjSalesUnitOfMeasurePoints to the unit of measure for the project sales price.Int64
RefRecId
NoUnitOfMeasure.RecIdNone
ProjTaxGroupIdSales tax group used for the project.String
ProjTaxGroup
NoTaxGroupHeading.TaxGroupNone
ProjTaxGroupIdDataAreaCompany of the project sales tax group.String
DataAreaId
NoTaxGroupHeading.dataAreaIdNone
ProjTaxItemGroupIdItem sales tax group used for the project.String
ProjTaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupNone
ProjTaxItemGroupIdDataAreaCompany of the project item sales tax group.String
DataAreaId
NoTaxItemGroupHeading.dataAreaIdNone
ProjTransIdTransaction ID of the related project item transaction.String (20)
ProjItemTransId
NoProjItemTrans.ProjTransIdNone
ProjTransIdDataAreaCompany of the project item transaction.String
DataAreaId
NoProjItemTrans.dataAreaIdNone
PurchAgreementPoints to the purchase agreement linked to the line.Int64
RefRecId
NoPurchAgreementHeader.RecIdNone
PurchIdPurchase order number linked to the line.String (20)
PurchId
NoPurchTable.PurchIdNone
PurchIdDataAreaCompany of the purchase order.String
DataAreaId
NoPurchTable.dataAreaIdNone
PurchLineCreatedYes/no flag showing whether a purchase line was created.Enum
PurchReqPurchLineCreated
NoYes (enum)
NoNone
PurchMarkupCharges on purchases for the line.Real
PurchMarkup
NoNone
PurchPriceUnit price of the item.Real
PurchReqPrice
NoNone
PurchQtyRequested quantity.Real
InventQty
NoNone
PurchReqConsolidationStatusConsolidation status of the line: none, pending consolidation or consolidated.Enum
PurchReqConsolidationStatus (enum)
NoNone
PurchReqTablePoints to the purchase requisition that holds the line.Int64
RefRecId
YesPurchReqTable.RecIdNone
PurchRFQCaseIdReference to the request for quotation case.String (20)
PurchRFQCaseId
NoPurchRFQCaseTable.RFQCaseIdNone
PurchRFQCaseIdDataAreaCompany of the RFQ case.String
DataAreaId
NoPurchRFQCaseTable.dataAreaIdNone
PurchUnitOfMeasurePoints to the unit of measure for the purchase quantity.Int64
RefRecId
NoUnitOfMeasure.RecIdNone
ReasonRefRecIdPoints to a reason reference record.Int64
ReasonRefRecID
NoReasonTableRef.RecIdNone
ReceivingOperatingUnitPoints to the operating unit that receives the goods.Int64
RefRecId
NoOMOperatingUnit.RecIdNone
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
RequiredDateDate the goods or services are requested.Date
PurchReqRequiredDate
NoNone
RequisitionerPoints to the worker who requested the line.Int64
PurchReqRequesterRefRecId
YesHcmWorker.RecIdNone
RFQRequirementShows whether an RFQ is needed: none, informal or formal.Enum
PurchReqRFQRequirementType
PurchReqRFQRequirement (enum)
NoNone
SequenceNumberSequence number of the line.Integer
SequenceNumber
YesNone
SourceDocumentLinePoints to the source document line.Int64
RefRecId
YesSourceDocumentLine.RecIdNone
StatusRequisition status: draft, in review, rejected, approved, cancelled, closed or budget reserved.Enum
PurchReqRequisitionStatus (enum)
NoNone
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
TaxGroupSales tax group of the line.String
TaxGroup
NoTaxGroupHeading.TaxGroupNone
TaxGroupDataAreaCompany of the sales tax group.String
DataAreaId
NoTaxGroupHeading.dataAreaIdNone
TaxItemGroupItem sales tax group of the line.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupNone
TaxItemGroupDataAreaCompany of the item sales tax group.String
DataAreaId
NoTaxItemGroupHeading.dataAreaIdNone
TransDateAccounting date of the line.Date
PurchReqAccountingDate
NoNone
URLInternet address related to the line.String (255)
URL
NoNone
VendAccountVendor account for the line.String (20)
VendAccount
NoVendTable.AccountNumNone
VendAccountDataAreaCompany of the vendor account.String
DataAreaId
NoVendTable.dataAreaIdNone
VendQuoteNumberVendor quotation number used for consolidation.String (20)
VendQuoteNumber
NoNone

Indexes (3)

Relations (37)

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

  • AccountingDistributionTemplate → AccountingDistributionTemplate

    Join on AccountingDistributionTemplate = AccountingDistributionTemplate.RecId

    Many PurchReqLineHistory records → zero or one AccountingDistributionTemplate record

  • AssetGroup → AssetGroup

    Join on AssetGroupDataArea = AssetGroup.dataAreaId, AssetGroup = AssetGroup.GroupId

    Many PurchReqLineHistory records → zero or one AssetGroup record

  • AssetRuleQualifierOption → AssetRuleQualifierOption

    Join on AssetRuleQualifierOption = AssetRuleQualifierOption.RecId

    Many PurchReqLineHistory records → zero or one AssetRuleQualifierOption record

  • AssetRuleQualifierOptionLocal → AssetRuleQualifierOptionLocal

    Join on AssetRuleQualifierOptionLocal = AssetRuleQualifierOptionLocal.RecId

    Many PurchReqLineHistory records → zero or one AssetRuleQualifierOptionLocal record

  • Common → Common

    Join on AddressRefTableId = Common.TableId, AddressRefRecId = Common.RecId

    Cardinality not set in the metadata.

  • CompanyInfo → CompanyInfo

    Join on BuyingLegalEntity = CompanyInfo.RecId

    Many PurchReqLineHistory records → exactly one CompanyInfo record

  • Currency → Currency

    Join on ProjSalesCurrencyId = Currency.CurrencyCode

    Many PurchReqLineHistory records → zero or one Currency record

  • CurrencyCode → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many PurchReqLineHistory records → exactly one Currency record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many PurchReqLineHistory records → zero or one DimensionAttributeValueSet record

  • DeliveryPostalAddress → LogisticsPostalAddress

    Join on DeliveryPostalAddress = LogisticsPostalAddress.RecId

    Many PurchReqLineHistory records → zero or one LogisticsPostalAddress record

  • EcoResCategory → EcoResCategory

    Join on ProcurementCategory = EcoResCategory.RecId

    Many PurchReqLineHistory records → zero or one EcoResCategory record

  • InventDim → InventDim

    Join on InventDimIdDataArea = InventDim.dataAreaId, InventDimId = InventDim.inventDimId

    Many PurchReqLineHistory records → exactly one InventDim record

  • InventLocation → InventLocation

    Join on InventLocationIdDataArea = InventLocation.dataAreaId, InventLocationId = InventLocation.InventLocationId

    Many PurchReqLineHistory records → zero or one InventLocation record

  • InventTable → InventTable

    Join on ItemIdDataArea = InventTable.dataAreaId, ItemId = InventTable.ItemId

    Many PurchReqLineHistory records → zero or one InventTable record

  • OMOperatingUnit → OMOperatingUnit

    Join on ReceivingOperatingUnit = OMOperatingUnit.RecId

    Many PurchReqLineHistory records → zero or one OMOperatingUnit record

  • ProjCategory → ProjCategory

    Join on ProjCategoryIdDataArea = ProjCategory.dataAreaId, ProjCategoryId = ProjCategory.CategoryId

    Many PurchReqLineHistory records → zero or one ProjCategory record

  • ProjItemTrans → ProjItemTrans

    Join on ProjTransIdDataArea = ProjItemTrans.dataAreaId, ProjTransId = ProjItemTrans.ProjTransId

    Many PurchReqLineHistory records → zero or one ProjItemTrans record

  • ProjLineProperty → ProjLineProperty

    Join on ProjLinePropertyIdDataArea = ProjLineProperty.dataAreaId, ProjLinePropertyId = ProjLineProperty.LinePropertyId

    Many PurchReqLineHistory records → zero or one ProjLineProperty record

  • ProjSalesUnitOfMeasure → UnitOfMeasure

    Join on ProjSalesUnitOfMeasure = UnitOfMeasure.RecId

    Many PurchReqLineHistory records → zero or one UnitOfMeasure record

  • ProjTable → ProjTable

    Join on ProjIdDataArea = ProjTable.dataAreaId, ProjId = ProjTable.ProjId

    Many PurchReqLineHistory records → zero or one ProjTable record

  • ProjTaxGroupHeading → TaxGroupHeading

    Join on ProjTaxGroupIdDataArea = TaxGroupHeading.dataAreaId, ProjTaxGroupId = TaxGroupHeading.TaxGroup

    Many PurchReqLineHistory records → zero or one TaxGroupHeading record

  • ProjTaxItemGroupHeading → TaxItemGroupHeading

    Join on ProjTaxItemGroupIdDataArea = TaxItemGroupHeading.dataAreaId, ProjTaxItemGroupId = TaxItemGroupHeading.TaxItemGroup

    Many PurchReqLineHistory records → zero or one TaxItemGroupHeading record

  • PurchaseAgreement → PurchAgreementHeader

    Join on PurchAgreement = PurchAgreementHeader.RecId

    Many PurchReqLineHistory records → zero or one PurchAgreementHeader record

  • PurchReqBusinessJustificationCodes → PurchReqBusinessJustificationCodes

    Join on BusinessJustification = PurchReqBusinessJustificationCodes.RecId

    Many PurchReqLineHistory records → zero or one PurchReqBusinessJustificationCodes record

  • PurchReqLine → PurchReqLine

    Join on PurchReqLine = PurchReqLine.RecId

    Many PurchReqLineHistory records → zero or one PurchReqLine record

  • PurchReqTable → PurchReqTable

    Join on PurchReqTable = PurchReqTable.RecId

    Many PurchReqLineHistory records → exactly one PurchReqTable record

  • PurchRFQCaseTable → PurchRFQCaseTable

    Join on PurchRFQCaseIdDataArea = PurchRFQCaseTable.dataAreaId, PurchRFQCaseId = PurchRFQCaseTable.RFQCaseId

    Many PurchReqLineHistory records → zero or one PurchRFQCaseTable record

  • PurchTable → PurchTable

    Join on PurchIdDataArea = PurchTable.dataAreaId, PurchId = PurchTable.PurchId

    Many PurchReqLineHistory records → zero or one PurchTable record

  • PurchUnitOfMeasure → UnitOfMeasure

    Join on PurchUnitOfMeasure = UnitOfMeasure.RecId

    Many PurchReqLineHistory records → zero or one UnitOfMeasure record

  • ReasonRef → ReasonTableRef

    Join on ReasonRefRecId = ReasonTableRef.RecId

    Many PurchReqLineHistory records → zero or one ReasonTableRef record

  • Requisitioner → HcmWorker

    Join on Requisitioner = HcmWorker.RecId

    Many PurchReqLineHistory records → exactly one HcmWorker record

  • smmActivities → ProjActivity

    Join on ActivityNumberDataArea = ProjActivity.dataAreaId, ActivityNumber = ProjActivity.ActivityNumber

    Many PurchReqLineHistory records → zero or one ProjActivity record

  • SourceDocumentLine → SourceDocumentLine

    Join on SourceDocumentLine = SourceDocumentLine.RecId

    Many PurchReqLineHistory records → exactly one SourceDocumentLine record

  • TaxGroupHeading → TaxGroupHeading

    Join on TaxGroupDataArea = TaxGroupHeading.dataAreaId, TaxGroup = TaxGroupHeading.TaxGroup

    Many PurchReqLineHistory records → zero or one TaxGroupHeading record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on TaxItemGroupDataArea = TaxItemGroupHeading.dataAreaId, TaxItemGroup = TaxItemGroupHeading.TaxItemGroup

    Many PurchReqLineHistory records → zero or one TaxItemGroupHeading record

  • VendTable → VendTable

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

    Many PurchReqLineHistory records → zero or one VendTable record

  • FinTag → FinTag

    Join on FinTag = FinTag.RecId

    Many 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.

Email sales@drdynamics.co.uk