C_ProductBOMUpstream
Bill of Material Upstream for Product
C_ProductBOMUpstream is a Consumption CDS View that provides data about "Bill of Material Upstream for Product" in SAP S/4HANA. It reads from 1 data source (I_ProductPlantMRPArea) and exposes 31 fields with key fields Material, Plant, BillOfMaterialComponent, MRPArea. It has 2 associations to related views. Part of development package ODATA_PP_DD_BUFPOS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductPlantMRPArea | I_ProductPlantMRPArea | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..*] | C_ProdBOMUpstreamMRPAreaExtn | _ProductMRPArea | $projection.Material = _ProductMRPArea.Material and $projection.Plant = _ProductMRPArea.Plant |
| [1..1] | I_DemandDrivenExtdProduct | _DDProduct | $projection.Material = _DDProduct.Material and $projection.Plant = _DDProduct.Plant and $projection.MRPArea = _DDProduct.MRPArea |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Bill of Material Upstream for Product | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | Material | Vehicle Model | |
| KEY | Plant | Plant | Valuation Area | |
| KEY | BillOfMaterialComponent | Material | Vehicle Model | |
| KEY | MRPArea | MRPArea | MRP Area | |
| MRPType | ||||
| MRPProcedure | ||||
| IndividualLeadTime | ||||
| SimulatedDecoupledLeadTime | ||||
| DecoupledLeadTime | _DDProduct | DecoupledLeadTime | DLT | |
| DecoupledLeadTimeCompression | 1 | |||
| IsCriticalPath | ||||
| ProdIsOnLongestUnprotectedPath | ||||
| UpstreamHierNodeID | ||||
| UpstreamHierParentID | ||||
| BOMUsageValue | ||||
| UpstreamHierParentName | ||||
| ProductBOMExpandState | ||||
| HierarchyNodeLevel | ||||
| BufferStatus | ||||
| IsMRPAreaExisting | ||||
| NodeCategory | Node Category | |||
| MaterialName | Product Description | |||
| PlantName | ||||
| MRPAreaText | ||||
| BufferStatusText | ||||
| MRPTypeName | ||||
| ProductAuthorizationGroup | ||||
| ProductTypeAuthorizationGroup | ||||
| ProductGroupAuthorizationGroup | ||||
| IsBulkMaterial | IsBulkMaterial | Bulk material | ||
| _ProductMRPArea | _ProductMRPArea |
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_ProductBOMUpstream.
-- 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_ProductBOMUpstream AS
SELECT
Material,
Plant,
Material AS BillOfMaterialComponent,
MRPArea,
cast('' as dismm) AS MRPType,
cast('' as disvf) AS MRPProcedure,
cast(0 as pph_ind_lead_time) AS IndividualLeadTime,
cast(0 as pph_decoupled_leadtime) AS SimulatedDecoupledLeadTime,
_DDProduct.DecoupledLeadTime AS DecoupledLeadTime,
1 AS DecoupledLeadTimeCompression,
cast('X' as abap.char(1)) AS IsCriticalPath,
cast('X' as abap.char(1)) AS ProdIsOnLongestUnprotectedPath,
cast(0 as abap.int4) AS UpstreamHierNodeID,
cast(0 as abap.int4) AS UpstreamHierParentID,
cast(0 as abap.int4) AS BOMUsageValue,
cast('' as nfmat) AS UpstreamHierParentName,
cast(1 as abap.int1) AS ProductBOMExpandState,
cast(0 as abap.int2) AS HierarchyNodeLevel,
cast('' as pph_dd_buffer_status) AS BufferStatus,
cast('' as diber) AS IsMRPAreaExisting,
cast('' as abap.char( 1 )) AS NodeCategory,
cast('' as maktx) AS MaterialName,
cast('' as plantname) AS PlantName,
cast('' as bertx) AS MRPAreaText,
cast('' as abap.sstring(20)) AS BufferStatusText,
cast('' as dibez) AS MRPTypeName,
I_ProductPlantMRPArea._Material.AuthorizationGroup AS ProductAuthorizationGroup,
I_ProductPlantMRPArea._Material._ProductType.AuthorizationGroup AS ProductTypeAuthorizationGroup,
I_ProductPlantMRPArea._Material._ProductGroup.AuthorizationGroup AS ProductGroupAuthorizationGroup,
IsBulkMaterial
FROM I_ProductPlantMRPArea
LEFT OUTER JOIN C_ProdBOMUpstreamMRPAreaExtn AS _ProductMRPArea ON Material = _ProductMRPArea.Material AND Plant = _ProductMRPArea.Plant -- association [1..*]
LEFT OUTER JOIN I_DemandDrivenExtdProduct AS _DDProduct ON Material = _DDProduct.Material AND Plant = _DDProduct.Plant AND MRPArea = _DDProduct.MRPArea -- association [1..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