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 descriptionType / EDT / enumMandatoryReferencesIn public entities
StatementTypeThe kind of cost statement: inventory, production WIP or variance.Enum
CostStatementType (enum)
NoCostStatementEntryEntityCostMonthlyCostStatementEntryEntityCostAggregatedCostStatementEntryEntity
TransDateThe date of the statement line.Date
TransDate
NoCostStatementEntryEntityCostAggregatedCostStatementEntryEntity
StatementLineCategoryLevel1The top-level category of the statement line, such as net sourcing or net usage.Enum
CostStatementLineCategoryLevel1 (enum)
NoCostStatementEntryEntityCostMonthlyCostStatementEntryEntityCostAggregatedCostStatementEntryEntity
StatementLineCategoryLevel2The second-level category, such as procured, sold or consumed materials cost.Enum
CostStatementLineCategoryLevel2 (enum)
NoCostStatementEntryEntityCostMonthlyCostStatementEntryEntityCostAggregatedCostStatementEntryEntity
StatementLineCategoryLevel3The third-level category, such as scrap, revaluation or purchase price.Enum
CostStatementLineCategoryLevel3 (enum)
NoCostStatementEntryEntityCostMonthlyCostStatementEntryEntityCostAggregatedCostStatementEntryEntity
SiteIdThe inventory site.String
InventSiteId
NoCostStatementEntryEntityCostMonthlyCostStatementEntryEntityCostAggregatedCostStatementEntryEntity
ResourceTypeThe kind of resource, such as material, labour or indirect cost.Enum
InventValueReportResourceType (enum)
NoCostStatementEntryEntityCostMonthlyCostStatementEntryEntity
ResourceIdThe ID of the resource.String (30)
InventValueResourceId
NoCostStatementEntryEntityCostMonthlyCostStatementEntryEntity
ConfigIdThe item configuration.String (50)
EcoResItemConfigurationName
NoCostStatementEntryEntityCostMonthlyCostStatementEntryEntity
ColorIdThe item colour.String
EcoResItemColorName
NoCostStatementEntryEntityCostMonthlyCostStatementEntryEntity
SizeIdThe item size.String
EcoResItemSizeName
NoCostStatementEntryEntityCostMonthlyCostStatementEntryEntity
StyleIdThe item style.String
EcoResItemStyleName
NoCostStatementEntryEntityCostMonthlyCostStatementEntryEntity
ResourceGroupIdThe resource group the resource belongs to.String
InventValueResourceGroupId
NoCostStatementEntryEntityCostMonthlyCostStatementEntryEntityCostAggregatedCostStatementEntryEntity
AmountThe cost amount of the line; currency not stated in the metadata.Real
CostAmount
NoCostStatementEntryEntityCostMonthlyCostStatementEntryEntityCostAggregatedCostStatementEntryEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
QtyThe inventory quantity of the line.Real
InventQty
NoCostStatementEntryEntityCostMonthlyCostStatementEntryEntityCostAggregatedCostStatementEntryEntity
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
SysDataCacheContextIdAn ID for the cache context the line belongs to.Int64
SysDataCacheContextId
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

Indexes (2)

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.

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

Email sales@drdynamics.co.uk