C_ProductBOMUpstream

DDL: C_PRODUCTBOMUPSTREAM SQL: CPRODBOMUPSTREAM Type: view CONSUMPTION

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.

Data Sources (1)

SourceAliasJoin Type
I_ProductPlantMRPArea I_ProductPlantMRPArea from

Associations (2)

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

NameValueLevelField
AbapCatalog.sqlViewName CPRODBOMUPSTREAM view
AbapCatalog.compiler.compareFilter true view
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
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (31)

KeyFieldSource TableSource FieldDescription
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 _Material AuthorizationGroup AuthorizGroup
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.
-- SQL view name: CPRODBOMUPSTREAM

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,
  _Material.AuthorizationGroup AS ProductAuthorizationGroup,
  _Material._ProductType.AuthorizationGroup AS ProductTypeAuthorizationGroup,
  _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]
;