Table

ForecastSales

Demand forecast

Holds demand forecast lines, with the item, quantity, dates, price and the customer or customer group the forecast is for. It also carries project forecast and budget fields. A line can link to a forecast model, an item allocation key and a project. An expanded line points back to the original line through ExpandId.

Table name
ForecastSales
Module
Master planning
Table group
WorksheetLine
Table type
Regular
Data per company
Yes
Configuration key
Forecast
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (63)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ActiveShows whether the forecast line is active.Enum
NoYes (enum)
NoProjForecastSalesEntityForecastSalesBiEntity
ActivityNumberNumber of the activity the line is linked to.String (50)
ProjActivityNumber
NosmmActivities.ActivityNumberProjForecastSalesEntityForecastSalesBiEntity
AllocateMethodHow the amount is spread over time: not at all, by period or by a key.Enum
BudgetAllocateMethod (enum)
NoForecastDemandForecastV2EntityForecastDemandForecastEntryEntityProjForecastSalesEntityand 2 more
AmountAmount of the forecast line, in the currency given in the Currency field.Real
AmountCur
NoForecastDemandForecastV2EntityForecastDemandForecastEntryEntityProjForecastSalesEntityand 2 more
CommentFree-text comment on the line.String (60)
BudgetComment
NoProjForecastSalesEntityForecastSalesBiEntity
ContractLineIdBilling rule linked to the line.String
PSAContractLineNum
NoForecastSalesBiEntity
CostPriceCost price of the item on the forecast line.Real
CostPrice
NoEntAssetMaintenanceJobTypeItemForecastV3EntityEntAssetMaintenanceJobTypeItemForecastV2EntityForecastDemandForecastV2Entityand 5 more
CovShows whether the line is included in cash flow forecasts.Enum
LedgerAppropriation
NoYes (enum)
NoProjForecastSalesEntityForecastSalesBiEntity
CovStatusNumber showing the cash flow forecast status of the line.low confidenceInteger
CovStatus
NoProjForecastSalesEntityForecastSalesBiEntity
CurrencyCurrency code for the line. It points to a record in the currency table.String (3)
CurrencyCode
YesCurrency.CurrencyCodeEntAssetMaintenanceJobTypeItemForecastV3EntityEntAssetMaintenanceJobTypeItemForecastV2EntityForecastDemandForecastV2Entityand 6 more
CustAccountIdCustomer account the forecast is for. It points to a customer.String (20)
CustAccount
NoCustTable.AccountNumForecastDemandForecastV2EntityForecastDemandForecastEntryEntityProjForecastSalesEntityand 2 more
CustGroupIdCustomer group the forecast is for. It points to a customer group.String
CustGroupId
NoCustGroup.CustGroupForecastDemandForecastV2EntityForecastDemandForecastEntryEntityProjForecastSalesEntityand 2 more
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoForecastSalesBiEntity
DefaultDimensionFinancial dimension values attached to the line, as a dimension value set.Int64
InventSiteLinkedDimensionValueSet
NoDimensionAttributeValueSet.RecIdForecastDemandForecastV2EntityForecastDemandForecastEntryEntityProjForecastSalesEntityand 1 more
DescriptionShort text describing the line.String (60)
TransTxt
NoForecastSalesBiEntity
DiscAmountDiscount amount per unit on the line.Real
UnitDiscountAmountCur
NoProjForecastSalesEntityForecastSalesBiEntity
DiscPercentDiscount given as a percentage.Real
DiscPct
NoProjForecastSalesEntityForecastSalesBiEntity
EndDateEnd date of the forecast line.Date
EndDate
NoProjForecastSalesEntityForecastSalesBiEntity
ExpandIdRecord ID of the demand forecast line this line was expanded from.Int64
ForecastSalesRefRecId
NoForecastSales.RecIdForecastSalesBiEntity
ForecastEntryNumberSequence number that identifies the demand forecast entry.String (25)
ForecastDemandForecastNumSeq
NoEntAssetMaintenanceJobTypeItemForecastV3EntityForecastDemandForecastEntryEntityForecastSalesBiEntity
FreqNumber of time units in one period of the forecast.Integer
Periods
NoProjForecastSalesEntityForecastSalesBiEntity
FreqCodeTime unit for the period: days, months, years or all.Enum
PeriodUnit (enum)
NoProjForecastSalesEntityForecastSalesBiEntity
InventDimIdLink to the inventory dimensions of the line, such as site or warehouse.String (20)
InventDimId
NoInventDim.inventDimIdProjForecastSalesEntityForecastSalesBiEntity
InventQtyQuantity in the inventory unit.Real
InventQty
NoProjForecastSalesEntityForecastSalesBiEntity
ItemAllocateIdItem allocation key used to split the forecast.String
ForecastItemAllocationId
NoForecastItemAllocation.AllocateIdForecastDemandForecastV2EntityForecastDemandForecastEntryEntityProjForecastSalesEntityand 2 more
ItemBOMIdBill of materials used as the sub-BOM for the item.String (20)
ItemBOMId
NoBOMTable.BOMIdProjForecastSalesEntityForecastSalesBiEntity
ItemDescriptionLonger description text for the item.String (1000)
EcoResDescription
NoForecastSalesBiEntity
ItemGroupIdItem group the forecast is for. It points to an item group.String
ItemGroupId
NoInventItemGroup.ItemGroupIdProjForecastSalesEntityForecastSalesBiEntity
ItemIdItem the forecast is for. It points to an item.String (20)
ItemId
NoInventTable.ItemIdEntAssetMaintenanceJobTypeItemForecastV3EntityEntAssetMaintenanceJobTypeItemForecastV2EntityForecastDemandForecastV2Entityand 6 more
ItemRouteIdRoute used as the subroute for the item.String (20)
ItemRouteId
NoRouteTable.RouteIdProjForecastSalesEntityForecastSalesBiEntity
KeyIdPeriod allocation key used to spread the forecast over periods.String
LedgerAllocateKeyId
NoLedgerAllocateKey.KeyProjForecastSalesEntityForecastSalesBiEntity
KittingInventTransIdID of the kit linked to the line.String (20)
KittingInventTransId
NoProjForecastSalesEntity
KittingLineNumLine number within the kit.Real
LineNum
NoProjForecastSalesEntity
ModelIdForecast model the line belongs to.String
ForecastModelHeadId
YesEntAssetMaintenanceJobTypeItemForecastV3EntityEntAssetMaintenanceJobTypeItemForecastV2EntityForecastDemandForecastV2Entityand 6 more
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoForecastSalesBiEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PdsCWQtyQuantity in the catch weight unit.Real
PdsCWInventQty
NoForecastDemandForecastEntryEntityProjForecastSalesEntityForecastSalesBiEntity
PdsCWUnitIdUnit of measure used for catch weight.String
PdsCWUnitId
NoProjForecastSalesEntityForecastSalesBiEntity
PlanningPriorityNumber that ranks how important this forecast demand is for planning.Real
ReqPlanningPriority
NoForecastDemandForecastEntryEntityProjForecastSalesEntityForecastSalesBiEntity
PriceUnitNumber of units that one price applies to.Real
PriceUnit
NoProjForecastSalesEntityForecastSalesBiEntity
ProjCategoryIdProject category for the line. It points to a project category.String (30)
ProjCategoryId
NoProjCategory.CategoryIdProjForecastSalesEntityForecastSalesBiEntity
ProjForecastBudgetTypeType of project budget line: original, remaining, revision or carry-forward.Enum
ProjForecastBudgetType (enum)
NoProjForecastSalesEntityForecastSalesBiEntity
ProjForecastCostPaymDateExpected date the cost is paid, for project forecasts.Date
ProjForecastCostPaymDate
NoProjForecastSalesEntityForecastSalesBiEntity
ProjForecastEliminationDateElimination date for the project forecast.Date
ProjForecastEliminationDate
NoProjForecastSalesEntityForecastSalesBiEntity
ProjForecastInvoiceDateExpected invoice date for the project forecast.Date
ProjForecastInvoiceDate
NoProjForecastSalesEntityForecastSalesBiEntity
ProjForecastSalesPaymDateExpected date the sale is paid, for project forecasts.Date
ProjForecastSalesPaymDate
NoProjForecastSalesEntityForecastSalesBiEntity
ProjFundingSourceProject funding source for the line, by record ID.Int64
ProjFundingSourceRefId
NoProjFundingSource.RecIdProjForecastSalesEntityForecastSalesBiEntity
ProjIdProject the line belongs to. It points to a project.String (20)
ProjId
NoProjTable.ProjIdProjForecastSalesEntityForecastSalesBiEntity
ProjLinePropertyIdProject line property assigned to the line.String
ProjLinePropertyId
NoProjLineProperty.LinePropertyIdEntAssetMaintenanceJobTypeItemForecastV3EntityEntAssetMaintenanceJobTypeItemForecastV2EntityEntAssetMaintenanceJobTypeItemForecastEntityand 3 more
ProjTransIdProject transaction ID linked to the line.String (20)
ProjTransIdBase
NoProjForecastSalesEntityForecastSalesBiEntity
PSARefPurchLineRecord ID of a purchase order line the forecast refers to.Int64
PSAPurchRefRecId
NoPurchLine.RecIdForecastSalesBiEntity
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoForecastDemandForecastV2EntityForecastSalesBiEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoForecastSalesBiEntity
ReportYes/no flag called Report. Its exact meaning is not stated in the metadata.low confidenceEnum
NoYes (enum)
NoProjForecastSalesEntityForecastSalesBiEntity
SalesMarkupSales charges amount on the line.Real
SalesMarkup
NoProjForecastSalesEntityForecastSalesBiEntity
SalesPriceUnit selling price.Real
SalesPrice
NoForecastDemandForecastV2EntityForecastDemandForecastEntryEntityProjForecastSalesEntityand 2 more
SalesQtyForecast quantity in the sales unit.Real
SalesQty
NoEntAssetMaintenanceJobTypeItemForecastV3EntityEntAssetMaintenanceJobTypeItemForecastV2EntityForecastDemandForecastV2Entityand 6 more
SalesUnitIdUnit of measure for the sales quantity.String
UnitOfMeasureSymbol
NoUnitOfMeasure.SymbolEntAssetMaintenanceJobTypeItemForecastV3EntityEntAssetMaintenanceJobTypeItemForecastV2EntityForecastDemandForecastV2Entityand 6 more
StartDateStart date of the forecast line.Date
StartDate
YesForecastDemandForecastV2EntityForecastDemandForecastEntryEntityProjForecastSalesEntityand 2 more
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoForecastSalesBiEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxGroupIdSales tax group applied to the line.String
TaxGroup
NoTaxGroupHeading.TaxGroupProjForecastSalesEntityForecastSalesBiEntity
TaxItemGroupIdItem sales tax group applied to the line.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupProjForecastSalesEntityForecastSalesBiEntity

Indexes (13)

Relations (23)

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

  • Currency → Currency

    Join on Currency = Currency.CurrencyCode

    Many ForecastSales records → exactly one Currency record

  • CustGroup → CustGroup

    Join on CustGroupId = CustGroup.CustGroup

    Many ForecastSales records → zero or one CustGroup record

  • CustTable → CustTable

    Join on CustAccountId = CustTable.AccountNum

    Many ForecastSales records → zero or one CustTable record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many ForecastSales records → zero or one DimensionAttributeValueSet record

  • ExpandForecastSales → ForecastSales

    Join on ExpandId = ForecastSales.RecId

    Many ForecastSales records → zero or one ForecastSales record

  • ForecastItemAllocation → ForecastItemAllocation

    Join on ItemAllocateId = ForecastItemAllocation.AllocateId

    Many ForecastSales records → zero or one ForecastItemAllocation record

  • ForecastModel → ForecastModel

    Join on ModelId = ForecastModel.ModelId, ForecastModel.Type = HeadingSub::Heading

    Many ForecastSales records → exactly one ForecastModel record

  • InventDim → InventDim

    Join on InventDimId = InventDim.inventDimId

    Many ForecastSales records → zero or one InventDim record

  • InventItemGroup → InventItemGroup

    Join on ItemGroupId = InventItemGroup.ItemGroupId

    Many ForecastSales records → zero or one InventItemGroup record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many ForecastSales records → zero or one InventTable record

  • LedgerAllocateKey → LedgerAllocateKey

    Join on KeyId = LedgerAllocateKey.Key

    Many ForecastSales records → zero or one LedgerAllocateKey record

  • ProjCategory → ProjCategory

    Join on ProjCategoryId = ProjCategory.CategoryId

    Many ForecastSales records → zero or one ProjCategory record

  • ProjFundingSource → ProjFundingSource

    Join on ProjFundingSource = ProjFundingSource.RecId

    Many ForecastSales records → zero or one ProjFundingSource record

  • ProjLineProperty → ProjLineProperty

    Join on ProjLinePropertyId = ProjLineProperty.LinePropertyId

    Many ForecastSales records → zero or one ProjLineProperty record

  • ProjTable → ProjTable

    Join on ProjId = ProjTable.ProjId

    Many ForecastSales records → zero or one ProjTable record

  • PurchLine → PurchLine

    Join on PSARefPurchLine = PurchLine.RecId

    Many ForecastSales records → zero or one PurchLine record

  • RouteTable → RouteTable

    Join on ItemRouteId = RouteTable.RouteId

    Many ForecastSales records → zero or one RouteTable record

  • SalesUnitId → UnitOfMeasure

    Join on SalesUnitId = UnitOfMeasure.Symbol

    Many ForecastSales records → zero or one UnitOfMeasure record

  • smmActivities → smmActivities

    Join on ActivityNumber = smmActivities.ActivityNumber

    Many ForecastSales records → zero or one smmActivities record

  • SubBOMTable → BOMTable

    Join on ItemBOMId = BOMTable.BOMId

    Many ForecastSales records → zero or one BOMTable record

  • TaxGroupHeading → TaxGroupHeading

    Join on TaxGroupId = TaxGroupHeading.TaxGroup

    Many ForecastSales records → zero or one TaxGroupHeading record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on TaxItemGroupId = TaxItemGroupHeading.TaxItemGroup

    Many ForecastSales records → zero or one TaxItemGroupHeading record

  • WbsEstimates → ProjWBSEstimatesView

    Join on ProjId = ProjWBSEstimatesView.ProjId, ActivityNumber = ProjWBSEstimatesView.ActivityNumber

    Many ForecastSales records → zero or one ProjWBSEstimatesView record

Get this data out

Tables are not exposed directly. These public entities read from ForecastSales; use one of them in Power BI, Power Platform or a data management project.

Need help with ForecastSales in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk