C_DemandDrivenBOMComponents

DDL: C_DEMANDDRIVENBOMCOMPONENTS SQL: CDDBOMCOMP Type: view CONSUMPTION

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.

Data Sources (2)

SourceAliasJoin Type
I_DemandDrivenMaterialData _DemandDrivenMaterialData from
I_SDMAreaOfResponsibility _SDMAreaOfResponsibility inner

Associations (9)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
KEY Material I_DemandDrivenMaterialData Material Vehicle Model
KEY Plant I_DemandDrivenMaterialData Plant Valuation Area
KEY MRPArea MRPArea MRP Area
BillOfMaterialComponent Material Vehicle Model
MaterialName
MRPType _MRPType MRPType MRP Type
MRPTypeName
MRPProcedure _MRPType MRPProcedure
MRPController I_DemandDrivenMaterialData MRPController MRP Controller
BillOfMaterialItemNodeNumber
BOMExplosionLevel
ParentNode
DemandDrivenBOMCompDrillState
BOMItemNodeCount 0
SolutionRank 0
MaterialShortageStatus
BOMItemReferenceID
MaterialBOMObjectID
DecoupledLeadTime 0
IndividualLeadTime 0
IsBulkMaterial IsBulkMaterial Bulk material
IsPhantomItem IsPhantomItem Phantom item
MRPMaterialStatus I_DemandDrivenMaterialData MRPMaterialStatus
MRPMaterialStatusName
_Note _Note
_Unit _Unit
_SupDmndList _SupDmndList
_DDOrderCRUD _DDOrderCRUD
_MatSOS _MatSOS
_DDOrderDetails _DDOrderDetails

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_DemandDrivenBOMComponents.
-- 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: CDDBOMCOMP

CREATE VIEW C_DemandDrivenBOMComponents AS
SELECT
  _DemandDrivenMaterialData.Material AS Material,
  _DemandDrivenMaterialData.Plant AS Plant,
  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,
  0 AS DecoupledLeadTime,
  0 AS IndividualLeadTime,
  IsBulkMaterial,
  IsPhantomItem,
  _DemandDrivenMaterialData.MRPMaterialStatus AS MRPMaterialStatus,
  _DemandDrivenMaterialData._MatStatus[MRPMaterialStatus = _DemandDrivenMaterialData.MRPMaterialStatus].MRPMaterialStatusName AS MRPMaterialStatusName
FROM I_DemandDrivenMaterialData AS _DemandDrivenMaterialData
INNER JOIN I_SDMAreaOfResponsibility AS _SDMAreaOfResponsibility ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN C_DmndDrivenSupDmndList AS _SupDmndList ON Material = _SupDmndList.Material AND Plant = _SupDmndList.Plant AND MRPArea = _SupDmndList.MRPArea  -- association [0..*]
LEFT OUTER JOIN C_ProductStockRqmtListChart AS _BufferedChart ON Material = _BufferedChart.Material AND Plant = _BufferedChart.Plant AND MRPArea = _BufferedChart.MRPArea  -- association [1..*]
LEFT OUTER JOIN C_DDProjtdStkChart AS _ProjtdStkChart ON Material = _ProjtdStkChart.Material AND Plant = _ProjtdStkChart.Plant AND MRPArea = _ProjtdStkChart.MRPArea  -- association [1..*]
LEFT OUTER JOIN C_ProductPlantTextInfo AS _Note ON Material = _Note.Product AND Plant = _Note.Plant  -- association [0..*]
LEFT OUTER JOIN I_ProductUnitsOfMeasure AS _Unit ON Material = _Unit.Product  -- association [1..*]
LEFT OUTER JOIN C_DDMaterialSOS AS _MatSOS ON Material = _MatSOS.Material AND Plant = _MatSOS.Plant AND MRPArea = _MatSOS.MRPArea  -- association [0..*]
LEFT OUTER JOIN C_ProductInformation AS _ProductInfo ON Material = _ProductInfo.Material AND Plant = _ProductInfo.Plant AND MRPArea = _ProductInfo.MRPArea  -- association [1..1]
LEFT OUTER JOIN C_DmndDrivenSupOrder AS _DDOrderCRUD ON Material = _DDOrderCRUD.Material AND Plant = _DDOrderCRUD.Plant AND MRPArea = _DDOrderCRUD.MRPArea  -- association [0..*]
LEFT OUTER JOIN C_DDOrderDetails AS _DDOrderDetails ON Material = _DDOrderDetails.Material AND Plant = _DDOrderDetails.Plant  -- association [0..*]
;