C_BOMCreateForUI
Consumption view for Create BOM scenario
C_BOMCreateForUI is a Consumption CDS View that provides data about "Consumption view for Create BOM scenario" in SAP S/4HANA. It reads from 2 data sources (P_BillOfMaterialHeader, I_BOMModificationParameters) and exposes 30 fields with key fields BOMApplicationArea, BillOfMaterial, BillOfMaterialCategory, BillOfMaterialVariant, BillOfMaterialVersion. It has 1 association to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_BillOfMaterialHeader | bomBO | union_all |
| I_BOMModificationParameters | I_BOMModificationParameters | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_BillOfMaterialUsage | _BillOfMaterialVariantUsage | $projection.BillOfMaterialVariantUsage = _BillOfMaterialVariantUsage.BillOfMaterialVariantUsage and _BillOfMaterialVariantUsage.Language = $session.system_language |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CBOMCREATE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Consumption view for Create BOM scenario | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.updateEnabled | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (30)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | BOMApplicationArea | BOMApplicationArea | Appl. area 29 | |
| KEY | BillOfMaterial | |||
| KEY | BillOfMaterialCategory | BOM category | ||
| KEY | BillOfMaterialVariant | Selected Alternative | ||
| KEY | BillOfMaterialVersion | Version | ||
| KEY | EngineeringChangeDocument | Change Number | ||
| KEY | Material | Material | ||
| KEY | Plant | Plant | ||
| BillOfMaterialVariantUsage | BOM Usage | |||
| BillOfMaterialVariantUsageDesc | ||||
| BillOfMaterialVariantForEdit | Alternative | |||
| EngineeringChangeDocForEdit | Change Number | |||
| PlantForEdit | Plant | |||
| HeaderValidityStartDate | Valid From | |||
| ChangeRecord | ||||
| KEY | BillOfMaterial | |||
| KEY | BillOfMaterialCategory | P_BillOfMaterialHeader | BillOfMaterialCategory | BOM category |
| KEY | BillOfMaterialVariant | P_BillOfMaterialHeader | BillOfMaterialVariant | Selected Alternative |
| KEY | BillOfMaterialVersion | P_BillOfMaterialHeader | BillOfMaterialVersion | Version |
| KEY | EngineeringChangeDocument | P_BillOfMaterialHeader | EngineeringChangeDocument | Change Number |
| KEY | Material | P_BillOfMaterialHeader | Material | Material |
| KEY | Plant | P_BillOfMaterialHeader | Plant | Plant |
| BillOfMaterialVariantUsage | P_BillOfMaterialHeader | BillOfMaterialVariantUsage | BOM Usage | |
| BillOfMaterialVariantUsageDesc | _BillOfMaterialVariantUsage | BillOfMaterialVariantUsageDesc | ||
| BillOfMaterialVariantForEdit | Alternative | |||
| EngineeringChangeDocForEdit | Change Number | |||
| PlantForEdit | Plant | |||
| HeaderValidityStartDate | Valid From | |||
| ChangeRecord | ||||
| BOMComponentCopyIsRequired | Copy Items |
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_BOMCreateForUI.
-- 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.
-- SQL view name: CBOMCREATE
CREATE VIEW C_BOMCreateForUI AS
SELECT
BOMApplicationArea,
cast(' ' as char8 preserving type ) AS BillOfMaterial,
cast(' ' as stlty preserving type ) AS BillOfMaterialCategory,
cast(' ' as stlal preserving type ) AS BillOfMaterialVariant,
cast(' ' as cs_versn preserving type ) AS BillOfMaterialVersion,
cast(' ' as aennr preserving type ) AS EngineeringChangeDocument,
cast(' ' as matnr preserving type) AS Material,
cast(' ' as werks_d preserving type ) AS Plant,
cast(' ' as stlan preserving type ) AS BillOfMaterialVariantUsage,
cast(' ' as antxt ) AS BillOfMaterialVariantUsageDesc,
cast(' ' as stlal preserving type ) AS BillOfMaterialVariantForEdit,
cast(' ' as aennr preserving type ) AS EngineeringChangeDocForEdit,
cast(' ' as werks_d preserving type ) AS PlantForEdit,
$session.system_date AS HeaderValidityStartDate,
cast(' ' as /plmb/cr_id preserving type) AS ChangeRecord,
cast('X' as boolean preserving type) AS BOMComponentCopyIsRequired
FROM I_BOMModificationParameters
LEFT OUTER JOIN I_BillOfMaterialUsage AS _BillOfMaterialVariantUsage ON BillOfMaterialVariantUsage = _BillOfMaterialVariantUsage.BillOfMaterialVariantUsage AND _BillOfMaterialVariantUsage.Language = $session.system_language -- association [1..1]
-- UNION ALL with additional select branch(es): P_BillOfMaterialHeader
;
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