Table
SMATemplateBOMTable
Template BOMs
Holds template bills of materials (BOMs), identified by a template BOM ID. Each record has a name, an item, a validity period and a BOM date. It can record a copy reference to a BOM, a production order or another template BOM. The reference type shows which kind it is.
- Table name
SMATemplateBOMTable- Module
Service management- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
SMABom- Primary index
TemplateBOMIdx- Replacement key
None- Key fields
TemplateBOMId- Model
Foundation
Fields (14)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TemplateBOMIdThe unique ID of the template BOM. | String (20)SMATemplateBOMId | Yes | None | |
BOMCopyRefIdThe ID of the BOM, production order or template BOM that this template refers to. | String (20)SMABOMCopyRefId | No | BOMTable.BOMIdProdTable.ProdIdSMATemplateBOMTable.TemplateBOMId | None |
BOMCopyRefTypeThe kind of reference: manual, template BOM, BOM or production. | EnumSMABOMCopyRefType (enum) | No | None | |
BOMDateA date linked to the BOM. The metadata does not say more about its use.low confidence | DateTransDate | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FromDateThe date from which the template BOM applies. | DateFromDate | No | None | |
InventDimIdPoints to the inventory dimension record for this template BOM. | String (20)InventDimId | No | InventDim.inventDimId | None |
ItemIdThe item that the template BOM is for. | String (20)ItemIdProduction | No | InventTable.ItemId | None |
NameThe name of the template BOM. | String (60)Name | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
ToDateThe date up to which the template BOM applies. | DateToDate | No | None |
Indexes (2)
TemplateBOMIdxPrimary indexUnique, alternate key.
ItemIdxItemId,InventDimId,FromDate,ToDateNot unique.
Relations (5)
Each relation joins SMATemplateBOMTable to another table on the fields shown.
BOMTable→BOMTableJoin on
BOMCopyRefType = SMABOMCopyRefType::BOM,BOMCopyRefId = BOMTable.BOMIdMany SMATemplateBOMTable records → zero or one BOMTable record
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany SMATemplateBOMTable records → zero or one InventDim record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany SMATemplateBOMTable records → zero or one InventTable record
ProdTable→ProdTableJoin on
BOMCopyRefType = SMABOMCopyRefType::Production,BOMCopyRefId = ProdTable.ProdIdMany SMATemplateBOMTable records → zero or one ProdTable record
SMATemplateBOMTable→SMATemplateBOMTableJoin on
BOMCopyRefType = SMABOMCopyRefType::TemplateBOM,BOMCopyRefId = SMATemplateBOMTable.TemplateBOMIdMany SMATemplateBOMTable records → zero or one SMATemplateBOMTable record
Get this data out
No public entity reads from SMATemplateBOMTable. Its data is only reachable through the application, a custom entity or a database export.
Need help with SMATemplateBOMTable in a report, an integration or a migration? Talk to Dr Dynamics.