Table
CostStatementCache
Cost statement cache
Stores cost amounts and quantities by statement type, date and three levels of line category. The levels split values into groups such as sourcing, usage, conversion cost and manufactured cost. It has no relations to other tables.
- Table name
CostStatementCache- 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- Model
Foundation
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
StatementTypeType of cost statement: inventory, production work in progress or variance. | EnumCostStatementType (enum) | No | None | |
TransDateDate the cached values apply to. | DateTransDate | No | None | |
StatementLineCategoryLevel1Top-level category of the statement line, for example net sourcing or beginning balance. | EnumCostStatementLineCategoryLevel1 (enum) | No | None | |
StatementLineCategoryLevel2Second-level category, for example procured, sold or consumed materials cost. | EnumCostStatementLineCategoryLevel2 (enum) | No | None | |
StatementLineCategoryLevel3Third-level category, for example counting, scrap or revaluation. | EnumCostStatementLineCategoryLevel3 (enum) | No | None | |
AmountCost amount for the row. | RealCostAmount | No | None | |
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 | |
QtyInventory quantity for the row. | RealInventQty | No | 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 | |
SysDataCacheContextIdIdentifier of the cache context the row belongs to. | Int64SysDataCacheContextId | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
PrimaryKeyIdxPrimary indexStatementType,TransDate,StatementLineCategoryLevel1,StatementLineCategoryLevel2,StatementLineCategoryLevel3Unique, alternate key.
Get this data out
No public entity reads from CostStatementCache. Its data is only reachable through the application, a custom entity or a database export.
Need help with CostStatementCache in a report, an integration or a migration? Talk to Dr Dynamics.