Table
ReqDemPlanCubeStagingTable
Staging table for historical data
Staging table that holds historical inventory transaction data for demand forecasting. Each row carries a date, a quantity and a transaction type. It also carries product, customer, location and inventory dimension values. It has no defined key and links to the data source and to the original inventory transaction.
- Table name
ReqDemPlanCubeStagingTable- Module
Master planning- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
ReqDemandPlanning- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (29)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AllocationKeyItem allocation key linked to the historical transaction, pointing to an item allocation line. | StringForecastItemAllocationId | No | None | |
ColorColour of the product variant, taken from the colours list. | StringEcoResColorName | No | EcoResColor.Name | None |
ConfigurationProduct configuration name, taken from the configurations list. | String (50)EcoResConfigurationName | No | EcoResConfiguration.Name | None |
CustAccountCustomer account number linked to the transaction. | String (20)CustAccount | No | CustTable.AccountNum | None |
CustGroupIdCustomer group the customer belongs to. | StringCustGroupId | No | CustGroup.CustGroup | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DataSourcePoints to the data source record that tells where this history came from. | Int64ReqDemPlanDataSourceRecId | Yes | ReqDemPlanDataSource.RecId | None |
InventDimIdInventory dimension number that identifies the combination of inventory dimensions. | String (20)InventDimId | No | InventDim.inventDimId | None |
InventTransOriginPoints to the originator record of the inventory transaction. | Int64InventTransOriginId | No | InventTransOrigin.RecId | None |
InventTransRecIdSystem record ID of the source inventory transaction. | Int64InventTransRefRecId | No | InventTrans.RecId | None |
ItemIdItem number of the product in the transaction. | String (20)ItemId | No | InventTable.ItemId | None |
LogisticsAddressStateIdState code of the address. It is used together with the country or region. | StringLogisticsAddressStateId | No | LogisticsAddressState.StateId | None |
LogisticsCountryRegionCodeCountry or region code of the address. | StringLogisticsAddressCountryRegionId | No | LogisticsAddressCountryRegion.CountryRegionId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProductSystem record ID of the product. | Int64EcoResProductRecId | No | EcoResProduct.RecId | None |
ProductVersionVersion of the product, taken from the versions list. | StringEcoResVersionName | No | EcoResVersion.Name | 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 | |
SiteInventory site where the transaction took place. | StringInventSiteId | No | InventSite.SiteId | None |
SizeSize of the product variant, taken from the sizes list. | StringEcoResSizeName | No | EcoResSize.Name | None |
StatusIdInventory status of the stock in the transaction. | StringWHSInventStatusId | No | WHSInventStatus.InventStatusId | None |
StyleStyle of the product variant, taken from the styles list. | StringEcoResStyleName | No | EcoResStyle.Name | 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 | |
TransactionDateDate of the historical transaction. | DateTransDate | No | None | |
TransactionQtyQuantity of the historical transaction, in inventory units. | RealInventQty | No | None | |
TransactionTypeKind of inventory transaction, such as sales order, purchase order, production or transfer. | EnumInventTransType (enum) | No | None | |
VersionReference number held as a record ID. The metadata does not say which record it points to.low confidence | Int64RefRecId | No | None | |
WarehouseWarehouse where the transaction took place. | StringInventLocationId | No | InventLocation.InventLocationId | None |
Indexes (4)
TransactionDateIdxNot unique.
AllocationKeyVersion,dataAreaId,AllocationKeyNot unique.
DataSourceIdxNot unique.
InventTransIdxNot unique.
Relations (19)
Each relation joins ReqDemPlanCubeStagingTable to another table on the fields shown.
Color→EcoResColorJoin on
Color = EcoResColor.NameMany ReqDemPlanCubeStagingTable records → exactly one EcoResColor record
Config→EcoResConfigurationJoin on
Configuration = EcoResConfiguration.NameMany ReqDemPlanCubeStagingTable records → exactly one EcoResConfiguration record
CustGroup→CustGroupJoin on
CustGroupId = CustGroup.CustGroupMany ReqDemPlanCubeStagingTable records → zero or one CustGroup record
CustTable→CustTableJoin on
CustAccount = CustTable.AccountNumMany ReqDemPlanCubeStagingTable records → zero or one CustTable record
DataSource→ReqDemPlanDataSourceJoin on
DataSource = ReqDemPlanDataSource.RecIdMany ReqDemPlanCubeStagingTable records → exactly one ReqDemPlanDataSource record
EcoResProduct→EcoResProductJoin on
Product = EcoResProduct.RecIdMany ReqDemPlanCubeStagingTable records → zero or one EcoResProduct record
ForecastItemAllocationLine→ForecastItemAllocationLineJoin on
ItemId = ForecastItemAllocationLine.ItemId,AllocationKey = ForecastItemAllocationLine.AllocationIdMany ReqDemPlanCubeStagingTable records → exactly one ForecastItemAllocationLine record
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany ReqDemPlanCubeStagingTable records → zero or one InventDim record
InventTrans→InventTransJoin on
InventTransRecId = InventTrans.RecIdMany ReqDemPlanCubeStagingTable records → zero or one InventTrans record
InventTransOrigin→InventTransOriginJoin on
InventTransOrigin = InventTransOrigin.RecIdMany ReqDemPlanCubeStagingTable records → zero or one InventTransOrigin record
Item→InventTableJoin on
ItemId = InventTable.ItemIdMany ReqDemPlanCubeStagingTable records → exactly one InventTable record
LogisticsAddressCountryRegion→LogisticsAddressCountryRegionJoin on
LogisticsCountryRegionCode = LogisticsAddressCountryRegion.CountryRegionIdMany ReqDemPlanCubeStagingTable records → zero or one LogisticsAddressCountryRegion record
LogisticsAddressState→LogisticsAddressStateJoin on
LogisticsAddressStateId = LogisticsAddressState.StateId,LogisticsCountryRegionCode = LogisticsAddressState.CountryRegionIdMany ReqDemPlanCubeStagingTable records → zero or one LogisticsAddressState record
Site→InventSiteJoin on
Site = InventSite.SiteIdMany ReqDemPlanCubeStagingTable records → exactly one InventSite record
Size→EcoResSizeJoin on
Size = EcoResSize.NameMany ReqDemPlanCubeStagingTable records → exactly one EcoResSize record
Status→WHSInventStatusJoin on
StatusId = WHSInventStatus.InventStatusIdMany ReqDemPlanCubeStagingTable records → exactly one WHSInventStatus record
Style→EcoResStyleJoin on
Style = EcoResStyle.NameMany ReqDemPlanCubeStagingTable records → exactly one EcoResStyle record
ProductVersion→EcoResVersionJoin on
ProductVersion = EcoResVersion.NameMany ReqDemPlanCubeStagingTable records → exactly one EcoResVersion record
Warehouse→InventLocationJoin on
Warehouse = InventLocation.InventLocationIdMany ReqDemPlanCubeStagingTable records → exactly one InventLocation record
Get this data out
No public entity reads from ReqDemPlanCubeStagingTable. Its data is only reachable through the application, a custom entity or a database export.
Need help with ReqDemPlanCubeStagingTable in a report, an integration or a migration? Talk to Dr Dynamics.