C_ProductBOMItem
Product Master BOM Items
C_ProductBOMItem is a Consumption CDS View that provides data about "Product Master BOM Items" in SAP S/4HANA. It reads from 1 data source (I_BillOfMaterialItemTP) and exposes 21 fields with key fields BillOfMaterial, BillOfMaterialCategory, BillOfMaterialVariant, BillOfMaterialVersion, Product. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_BillOfMaterialItemTP | I_BillOfMaterialItemTP | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_ProductBOM | _BillOfMaterial | $projection.BillOfMaterial = _BillOfMaterial.BillOfMaterial and $projection.BillOfMaterialCategory = _BillOfMaterial.BillOfMaterialCategory and $projection.BillOfMaterialVariant = _BillOfMaterial.BillOfMaterialVariant and $projection.BillOfMaterialVersion = _BillOfMaterial.BillOfMaterialVersion and $projection.HeaderChangeDocument = _BillOfMaterial.EngineeringChangeDocument and $projection.Product = _BillOfMaterial.Material and $projection.Plant = _BillOfMaterial.Plant |
| [1..1] | I_Product | _Product | $projection.BillOfMaterialComponent = _Product.Product |
| [0..1] | C_ProdBOMItemCategoryTemp | _BOMItemCategory | $projection.BillOfMaterialItemCategory = _BOMItemCategory.BillOfMaterialItemCategory |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPRDBOMITEM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | Product Master BOM Items | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.text.control | #ASSOCIATED_TEXT_UI_HIDDEN | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Metadata.allowExtensions | true | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BillOfMaterial | BillOfMaterial | BOM | |
| KEY | BillOfMaterialCategory | BillOfMaterialCategory | BOM category | |
| KEY | BillOfMaterialVariant | BillOfMaterialVariant | AlternativeBOM | |
| KEY | BillOfMaterialVersion | BillOfMaterialVersion | BOM Version | |
| KEY | Product | Vehicle Model | ||
| KEY | Plant | Plant | Valuation Area | |
| KEY | BillOfMaterialItemNodeNumber | BillOfMaterialItemNodeNumber | Item Node Number | |
| KEY | HeaderChangeDocument | HeaderChangeDocument | Change Number | |
| BOMItemInternalChangeCount | BOMItemInternalChangeCount | Counter | ||
| BillOfMaterialItemUUID | BillOfMaterialItemUUID | Guid | ||
| BillOfMaterialComponent | BillOfMaterialComponent | Product | ||
| ComponentDescription | ComponentDescription | Item Text | ||
| BillOfMaterialItemUnit | BillOfMaterialItemUnit | Component UoM | ||
| BillOfMaterialItemQuantity | BillOfMaterialItemQuantity | Quantity | ||
| BillOfMaterialItemCategory | BillOfMaterialItemCategory | Item Category | ||
| ArticleCategory | _Product | ProductCategory | Prod Category | |
| _BillOfMaterial | _BillOfMaterial | |||
| _Product | _Product | |||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _BOMItemCategory | _BOMItemCategory | |||
| _ProductCategoryText | _Product | _ProductCategoryText |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view C_ProductBOMItem.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW C_ProductBOMItem AS
SELECT
BillOfMaterial,
BillOfMaterialCategory,
BillOfMaterialVariant,
BillOfMaterialVersion,
cast(Material as productnumber preserving type ) AS Product,
Plant,
BillOfMaterialItemNodeNumber,
HeaderChangeDocument,
BOMItemInternalChangeCount,
BillOfMaterialItemUUID,
BillOfMaterialComponent,
ComponentDescription,
BillOfMaterialItemUnit,
BillOfMaterialItemQuantity,
BillOfMaterialItemCategory,
_Product.ProductCategory AS ArticleCategory,
_Product._ProductCategoryText AS _ProductCategoryText
FROM I_BillOfMaterialItemTP
LEFT OUTER JOIN C_ProductBOM AS _BillOfMaterial ON BillOfMaterial = _BillOfMaterial.BillOfMaterial AND BillOfMaterialCategory = _BillOfMaterial.BillOfMaterialCategory AND BillOfMaterialVariant = _BillOfMaterial.BillOfMaterialVariant AND BillOfMaterialVersion = _BillOfMaterial.BillOfMaterialVersion AND HeaderChangeDocument = _BillOfMaterial.EngineeringChangeDocument AND Product = _BillOfMaterial.Material AND Plant = _BillOfMaterial.Plant -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON BillOfMaterialComponent = _Product.Product -- association [1..1]
LEFT OUTER JOIN C_ProdBOMItemCategoryTemp AS _BOMItemCategory ON BillOfMaterialItemCategory = _BOMItemCategory.BillOfMaterialItemCategory -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA