C_BOMDwnStreamDirectParent
BOM downstream direct parent product
C_BOMDwnStreamDirectParent is a Consumption CDS View that provides data about "BOM downstream direct parent product" in SAP S/4HANA. It reads from 1 data source (I_ProductPlantMRPArea) and exposes 26 fields with key fields Material, Plant, MRPArea, BillOfMaterialComponent, BillOfMaterialVariantUsage. It has 7 associations to related views. Part of development package ODATA_PP_DD_BUFPOS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductPlantMRPArea | _BufferedProduct | inner |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_ProductText | _ProdText | _ProdText.Product = $projection.Material and _ProdText.Language = $session.system_language |
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [1..1] | I_MRPArea | _MRPArea | $projection.MRPArea = _MRPArea.MRPArea |
| [0..1] | I_MRPTypeText | _MRPText | _BufferedProduct.MRPType = _MRPText.MRPType and _MRPText.Language = $session.system_language |
| [0..*] | I_DDHistlBufDomainFxdValTxt | _DomainText | _DomainText.SAPDataDictionaryDomain = 'PPH_DD_BUFFER_STATUS' or _DomainText.SAPDataDictionaryDomain = 'PPH_XYZ_IND' or _DomainText.SAPDataDictionaryDomain = 'PPH_EFG_IND' or _DomainText.SAPDataDictionaryDomain = 'PPH_ABC_IND' or _DomainText.SAPDataDictionaryDomain = 'PPH_PQR_IND' |
| [0..1] | I_MatlProcurementProfile | _prfl | _BufferedProduct.Plant = _prfl.Plant and _BufferedProduct.MaterialProcurementProfile = _prfl.MaterialProcurementProfile |
| [0..1] | I_MRPPlantControlParameter | _MRPControlParams | _BufferedProduct.Plant = _MRPControlParams.MRPPlant |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CBOMDOWNSTRMDP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | BOM downstream direct parent product | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| UI.headerInfo.typeName | Product | view | |
| UI.headerInfo.typeNamePlural | Products | view | |
| UI.headerInfo.title.value | Material | view |
Fields (26)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | _BOMDirectParent | Material | Vehicle Model |
| KEY | Plant | _BOMDirectParent | Plant | Valuation Area |
| KEY | MRPArea | I_ProductPlantMRPArea | MRPArea | MRP Area |
| KEY | BillOfMaterialComponent | BillOfMaterialComponent | Component | |
| KEY | BillOfMaterialVariantUsage | BillOfMaterialVariantUsage | Usage | |
| BillOfMaterialCategory | BillOfMaterialCategory | BOM category | ||
| MaterialName | _ProdText | ProductName | Description | |
| PlantName | _Plant | PlantName | Plant Name | |
| MRPAreaText | _MRPArea | MRPAreaText | ||
| MRPType | I_ProductPlantMRPArea | MRPType | MRP Type | |
| MRPTypeName | _MRPText | MRPTypeName | ||
| MaterialBaseUnit | ||||
| ProductIsBuffered | I_ProductPlantMRPArea | ProductIsBuffered | ||
| DomainTextasBufferStatusText | ||||
| BOMUsageCode | _DDProduct | BOMUsageCode | ||
| DomainTextasBOMUsageDescription | ||||
| ConsumptionCode | _DDProduct | ConsumptionCode | ||
| DomainTextasConsumptionDescription | ||||
| ReplenishmentLeadTimeCode | _DDProduct | ReplenishmentLeadTimeCode | ||
| DomainTextasReplenishmentLeadTimeDesc | ||||
| VariabilityCode | _DDProduct | VariabilityCode | ||
| DomainTextasVariabilityDescription | ||||
| BOMUsageValue | BOM Usage | |||
| MRPProcedure | I_ProductPlantMRPArea | MRPProcedure | ||
| IsBulkMaterial | I_ProductPlantMRPArea | IsBulkMaterial | Bulk material | |
| IsPhantomItem | I_ProductPlantMRPArea | IsPhantomItem | Phantom item |
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_BOMDwnStreamDirectParent.
-- 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: CBOMDOWNSTRMDP
CREATE VIEW C_BOMDwnStreamDirectParent AS
SELECT
_BOMDirectParent.Material AS Material,
_BOMDirectParent.Plant AS Plant,
_BufferedProduct.MRPArea AS MRPArea,
BillOfMaterialComponent,
BillOfMaterialVariantUsage,
BillOfMaterialCategory,
_ProdText.ProductName AS MaterialName,
_Plant.PlantName AS PlantName,
_MRPArea.MRPAreaText AS MRPAreaText,
_BufferedProduct.MRPType AS MRPType,
_MRPText.MRPTypeName AS MRPTypeName,
_BufferedProduct._Material.BaseUnit AS MaterialBaseUnit,
_BufferedProduct.ProductIsBuffered AS ProductIsBuffered,
_DomainText[SAPDataDictionaryDomain = 'PPH_DD_BUFFER_STATUS' and DomainValue = ProductIsBuffered].DomainText as BufferStatusText AS DomainTextasBufferStatusText,
_DDProduct.BOMUsageCode AS BOMUsageCode,
_DomainText[SAPDataDictionaryDomain = 'PPH_PQR_IND' and DomainValue = _DDProduct.BOMUsageCode].DomainText as BOMUsageDescription AS DomainTextasBOMUsageDescription,
_DDProduct.ConsumptionCode AS ConsumptionCode,
_DomainText[SAPDataDictionaryDomain = 'PPH_ABC_IND' and DomainValue = ConsumptionCode].DomainText as ConsumptionDescription AS DomainTextasConsumptionDescription,
_DDProduct.ReplenishmentLeadTimeCode AS ReplenishmentLeadTimeCode,
_DomainText[SAPDataDictionaryDomain = 'PPH_EFG_IND' and DomainValue = ReplenishmentLeadTimeCode].DomainText as ReplenishmentLeadTimeDesc AS DomainTextasReplenishmentLeadTimeDesc,
_DDProduct.VariabilityCode AS VariabilityCode,
_DomainText[SAPDataDictionaryDomain = 'PPH_XYZ_IND' and DomainValue = VariabilityCode].DomainText as VariabilityDescription AS DomainTextasVariabilityDescription,
cast(0 as pph_bom_usagevalue) AS BOMUsageValue,
_BufferedProduct.MRPProcedure AS MRPProcedure,
_BufferedProduct.IsBulkMaterial AS IsBulkMaterial,
_BufferedProduct.IsPhantomItem AS IsPhantomItem
INNER JOIN I_ProductPlantMRPArea AS _BufferedProduct ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ProductText AS _ProdText ON _ProdText.Product = Material AND _ProdText.Language = $session.system_language -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [1..1]
LEFT OUTER JOIN I_MRPArea AS _MRPArea ON MRPArea = _MRPArea.MRPArea -- association [1..1]
LEFT OUTER JOIN I_MRPTypeText AS _MRPText ON _BufferedProduct.MRPType = _MRPText.MRPType AND _MRPText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_DDHistlBufDomainFxdValTxt AS _DomainText ON _DomainText.SAPDataDictionaryDomain = 'PPH_DD_BUFFER_STATUS' OR _DomainText.SAPDataDictionaryDomain = 'PPH_XYZ_IND' OR _DomainText.SAPDataDictionaryDomain = 'PPH_EFG_IND' OR _DomainText.SAPDataDictionaryDomain = 'PPH_ABC_IND' OR _DomainText.SAPDataDictionaryDomain = 'PPH_PQR_IND' -- association [0..*]
LEFT OUTER JOIN I_MatlProcurementProfile AS _prfl ON _BufferedProduct.Plant = _prfl.Plant AND _BufferedProduct.MaterialProcurementProfile = _prfl.MaterialProcurementProfile -- association [0..1]
LEFT OUTER JOIN I_MRPPlantControlParameter AS _MRPControlParams ON _BufferedProduct.Plant = _MRPControlParams.MRPPlant -- 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