Table
CostObjectStatementCache
Cost object statement cache
Holds cached cost statement lines used to build cost statements. Each line has a statement type, a date, three levels of line category, and resource and item dimension values. It stores a cost amount and a quantity for each combination.
- Table name
CostObjectStatementCache- Module
Inventory- Table group
Miscellaneous- Table type
Regular- Data per company
Yes- Configuration key
LogisticsBasic- Primary index
PrimaryKeyIdx- Replacement key
None- Key fields
StatementType, TransDate, StatementLineCategoryLevel1, StatementLineCategoryLevel2, StatementLineCategoryLevel3, SiteId, ResourceType, ResourceId, ConfigId, ColorId, SizeId, StyleId, ResourceGroupId- Model
Foundation
Fields (22)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
StatementTypeThe kind of cost statement: inventory, production WIP or variance. | EnumCostStatementType (enum) | No | CostStatementEntryEntityCostMonthlyCostStatementEntryEntityCostAggregatedCostStatementEntryEntity | |
TransDateThe date of the statement line. | DateTransDate | No | CostStatementEntryEntityCostAggregatedCostStatementEntryEntity | |
StatementLineCategoryLevel1The top-level category of the statement line, such as net sourcing or net usage. | EnumCostStatementLineCategoryLevel1 (enum) | No | CostStatementEntryEntityCostMonthlyCostStatementEntryEntityCostAggregatedCostStatementEntryEntity | |
StatementLineCategoryLevel2The second-level category, such as procured, sold or consumed materials cost. | EnumCostStatementLineCategoryLevel2 (enum) | No | CostStatementEntryEntityCostMonthlyCostStatementEntryEntityCostAggregatedCostStatementEntryEntity | |
StatementLineCategoryLevel3The third-level category, such as scrap, revaluation or purchase price. | EnumCostStatementLineCategoryLevel3 (enum) | No | CostStatementEntryEntityCostMonthlyCostStatementEntryEntityCostAggregatedCostStatementEntryEntity | |
SiteIdThe inventory site. | StringInventSiteId | No | CostStatementEntryEntityCostMonthlyCostStatementEntryEntityCostAggregatedCostStatementEntryEntity | |
ResourceTypeThe kind of resource, such as material, labour or indirect cost. | EnumInventValueReportResourceType (enum) | No | CostStatementEntryEntityCostMonthlyCostStatementEntryEntity | |
ResourceIdThe ID of the resource. | String (30)InventValueResourceId | No | CostStatementEntryEntityCostMonthlyCostStatementEntryEntity | |
ConfigIdThe item configuration. | String (50)EcoResItemConfigurationName | No | CostStatementEntryEntityCostMonthlyCostStatementEntryEntity | |
ColorIdThe item colour. | StringEcoResItemColorName | No | CostStatementEntryEntityCostMonthlyCostStatementEntryEntity | |
SizeIdThe item size. | StringEcoResItemSizeName | No | CostStatementEntryEntityCostMonthlyCostStatementEntryEntity | |
StyleIdThe item style. | StringEcoResItemStyleName | No | CostStatementEntryEntityCostMonthlyCostStatementEntryEntity | |
ResourceGroupIdThe resource group the resource belongs to. | StringInventValueResourceGroupId | No | CostStatementEntryEntityCostMonthlyCostStatementEntryEntityCostAggregatedCostStatementEntryEntity | |
AmountThe cost amount of the line; currency not stated in the metadata. | RealCostAmount | No | CostStatementEntryEntityCostMonthlyCostStatementEntryEntityCostAggregatedCostStatementEntryEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
QtyThe inventory quantity of the line. | RealInventQty | No | CostStatementEntryEntityCostMonthlyCostStatementEntryEntityCostAggregatedCostStatementEntryEntity | |
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 | |
SysDataCacheContextIdAn ID for the cache context the line belongs to. | Int64SysDataCacheContextId | 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 |
Indexes (2)
PrimaryKeyIdxPrimary indexStatementType,TransDate,StatementLineCategoryLevel1,StatementLineCategoryLevel2,StatementLineCategoryLevel3,SiteId,ResourceType,ResourceId,ConfigId,ColorId,SizeId,StyleId,ResourceGroupIdUnique, alternate key.
ColumnStoreStatementType,TransDate,StatementLineCategoryLevel1,StatementLineCategoryLevel2,StatementLineCategoryLevel3,SiteId,ResourceType,ResourceId,ResourceGroupId,ConfigId,ColorId,SizeId,StyleId,Qty,Amount,SysDataCacheContextIdNot unique.
Get this data out
Tables are not exposed directly. These public entities read from CostObjectStatementCache; use one of them in Power BI, Power Platform or a data management project.
CostStatementEntryEntity· 15 fields from this tableCostMonthlyCostStatementEntryEntity· 14 fields from this tableCostAggregatedCostStatementEntryEntity· 9 fields from this table
Need help with CostObjectStatementCache in a report, an integration or a migration? Talk to Dr Dynamics.