C_DemandDrivenBOMComponents
Lists out BOM Components
C_DemandDrivenBOMComponents is a Consumption CDS View that provides data about "Lists out BOM Components" in SAP S/4HANA. It reads from 2 data sources (I_DemandDrivenMaterialData, I_SDMAreaOfResponsibility) and exposes 30 fields with key fields Material, Plant, MRPArea. It has 9 associations to related views. Part of development package ODATA_PP_DD_REPL_DET.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_DemandDrivenMaterialData | _DemandDrivenMaterialData | from |
| I_SDMAreaOfResponsibility | _SDMAreaOfResponsibility | inner |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_DmndDrivenSupDmndList | _SupDmndList | $projection.Material = _SupDmndList.Material and $projection.Plant = _SupDmndList.Plant and $projection.MRPArea = _SupDmndList.MRPArea |
| [1..*] | C_ProductStockRqmtListChart | _BufferedChart | $projection.Material = _BufferedChart.Material and $projection.Plant = _BufferedChart.Plant and $projection.MRPArea = _BufferedChart.MRPArea |
| [1..*] | C_DDProjtdStkChart | _ProjtdStkChart | $projection.Material = _ProjtdStkChart.Material and $projection.Plant = _ProjtdStkChart.Plant and $projection.MRPArea = _ProjtdStkChart.MRPArea |
| [0..*] | C_ProductPlantTextInfo | _Note | $projection.Material = _Note.Product and $projection.Plant = _Note.Plant |
| [1..*] | I_ProductUnitsOfMeasure | _Unit | $projection.Material = _Unit.Product |
| [0..*] | C_DDMaterialSOS | _MatSOS | $projection.Material = _MatSOS.Material and $projection.Plant = _MatSOS.Plant and $projection.MRPArea = _MatSOS.MRPArea |
| [1..1] | C_ProductInformation | _ProductInfo | $projection.Material = _ProductInfo.Material and $projection.Plant = _ProductInfo.Plant and $projection.MRPArea = _ProductInfo.MRPArea |
| [0..*] | C_DmndDrivenSupOrder | _DDOrderCRUD | $projection.Material = _DDOrderCRUD.Material and $projection.Plant = _DDOrderCRUD.Plant and $projection.MRPArea = _DDOrderCRUD.MRPArea |
| [0..*] | C_DDOrderDetails | _DDOrderDetails | $projection.Material = _DDOrderDetails.Material and $projection.Plant = _DDOrderDetails.Plant |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CDDBOMCOMP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Lists out BOM Components | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (30)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | I_DemandDrivenMaterialData | Material | |
| KEY | Plant | I_DemandDrivenMaterialData | Plant | |
| KEY | MRPArea | MRPArea | ||
| BillOfMaterialComponent | Material | |||
| MaterialName | ||||
| MRPType | _MRPType | MRPType | ||
| MRPTypeName | ||||
| MRPProcedure | _MRPType | MRPProcedure | ||
| MRPController | I_DemandDrivenMaterialData | MRPController | ||
| BillOfMaterialItemNodeNumber | ||||
| BOMExplosionLevel | ||||
| ParentNode | ||||
| DemandDrivenBOMCompDrillState | ||||
| BOMItemNodeCount | 0 | |||
| SolutionRank | 0 | |||
| MaterialShortageStatus | ||||
| BOMItemReferenceID | ||||
| MaterialBOMObjectID | ||||
| DecoupledLeadTime | ||||
| IndividualLeadTime | ||||
| IsBulkMaterial | IsBulkMaterial | |||
| IsPhantomItem | IsPhantomItem | |||
| MRPMaterialStatus | I_DemandDrivenMaterialData | MRPMaterialStatus | ||
| MRPMaterialStatusName | ||||
| _Note | _Note | |||
| _Unit | _Unit | |||
| _SupDmndList | _SupDmndList | |||
| _DDOrderCRUD | _DDOrderCRUD | |||
| _MatSOS | _MatSOS | |||
| _DDOrderDetails | _DDOrderDetails |
@AbapCatalog.sqlViewName: 'CDDBOMCOMP'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Lists out BOM Components'
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {serviceQuality: #X, sizeCategory: #XXL, dataClass: #MIXED}
@VDM.viewType: #CONSUMPTION
@Hierarchy.parentChild: [{ recurse: {parent: 'Material', child: 'BillOfMaterialComponent'} }]
define view C_DemandDrivenBOMComponents
as select from I_DemandDrivenMaterialData as _DemandDrivenMaterialData
inner join I_SDMAreaOfResponsibility as _SDMAreaOfResponsibility on _DemandDrivenMaterialData.Plant = _SDMAreaOfResponsibility.Plant
and _DemandDrivenMaterialData.MRPController = _SDMAreaOfResponsibility.MRPController
and _SDMAreaOfResponsibility.UserID = $session.user
association [0..*] to C_DmndDrivenSupDmndList as _SupDmndList on $projection.Material = _SupDmndList.Material
and $projection.Plant = _SupDmndList.Plant
and $projection.MRPArea = _SupDmndList.MRPArea
association [1..*] to C_ProductStockRqmtListChart as _BufferedChart on $projection.Material = _BufferedChart.Material
and $projection.Plant = _BufferedChart.Plant
and $projection.MRPArea = _BufferedChart.MRPArea
association [1..*] to C_DDProjtdStkChart as _ProjtdStkChart on $projection.Material = _ProjtdStkChart.Material
and $projection.Plant = _ProjtdStkChart.Plant
and $projection.MRPArea = _ProjtdStkChart.MRPArea
association [0..*] to C_ProductPlantTextInfo as _Note on $projection.Material = _Note.Product
and $projection.Plant = _Note.Plant
association [1..*] to I_ProductUnitsOfMeasure as _Unit on $projection.Material = _Unit.Product
association [0..*] to C_DDMaterialSOS as _MatSOS on $projection.Material = _MatSOS.Material
and $projection.Plant = _MatSOS.Plant
and $projection.MRPArea = _MatSOS.MRPArea
association [1..1] to C_ProductInformation as _ProductInfo on $projection.Material = _ProductInfo.Material
and $projection.Plant = _ProductInfo.Plant
and $projection.MRPArea = _ProductInfo.MRPArea
association [0..*] to C_DmndDrivenSupOrder as _DDOrderCRUD on $projection.Material = _DDOrderCRUD.Material
and $projection.Plant = _DDOrderCRUD.Plant
and $projection.MRPArea = _DDOrderCRUD.MRPArea
association [0..*] to C_DDOrderDetails as _DDOrderDetails on $projection.Material = _DDOrderDetails.Material
and $projection.Plant = _DDOrderDetails.Plant
{
key _DemandDrivenMaterialData.Material,
key _DemandDrivenMaterialData.Plant,
key MRPArea,
Material as BillOfMaterialComponent,
cast('' as maktx) as MaterialName,
_MRPType.MRPType as MRPType,
cast('' as dibez) as MRPTypeName,
_MRPType.MRPProcedure as MRPProcedure,
_DemandDrivenMaterialData.MRPController as MRPController,
cast(0 as abap.int4) as BillOfMaterialItemNodeNumber,
cast(0 as abap.int4) as BOMExplosionLevel,
cast(0 as abap.int4) as ParentNode,
cast('expanded' as dtinf_hierarchy_drill_state) as DemandDrivenBOMCompDrillState,
0 as BOMItemNodeCount,
0 as SolutionRank,
cast('' as abap.char( 1 )) as MaterialShortageStatus,
cast('' as abap.char( 60 )) as BOMItemReferenceID,
cast('' as abap.char( 60 )) as MaterialBOMObjectID,
cast(0 as pph_decoupled_leadtime) as DecoupledLeadTime,
cast(0 as pph_ind_lead_time) as IndividualLeadTime,
IsBulkMaterial,
IsPhantomItem,
_DemandDrivenMaterialData.MRPMaterialStatus,
_DemandDrivenMaterialData._MatStatus[MRPMaterialStatus = _DemandDrivenMaterialData.MRPMaterialStatus].MRPMaterialStatusName,
_Note,
_Unit,
_SupDmndList,
//_ProductInfo,
_DDOrderCRUD,
_MatSOS,
_DDOrderDetails
}
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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