C_PMRPSimulationProductRow

DDL: C_PMRPSIMULATIONPRODUCTROW Type: view_entity CONSUMPTION Package: PMRP_UI_SERVICES

Simulation Component Products

C_PMRPSimulationProductRow is a Consumption CDS View that provides data about "Simulation Component Products" in SAP S/4HANA. It reads from 1 data source (R_PMRPProductHierarchyNode) and exposes 35 fields with key fields PMRPSimulation, Product, Plant, MRPArea, PMRPSupplyGroup. It has 1 association to related views. It is exposed through 1 OData service (PMRP_SIMU_COMPONENT_SERVICEDEF). Part of development package PMRP_UI_SERVICES.

Data Sources (1)

SourceAliasJoin Type
R_PMRPProductHierarchyNode R_PMRPProductHierarchyNode from

Parameters (1)

NameTypeDefault
P_PMRPSimulation pmrp_simulation_id

Associations (1)

CardinalityTargetAliasCondition
[0..*] C_PMRPSimulationProductColumn _Output _Output.PMRPSimulation = $projection.PMRPSimulation and _Output.Product = $projection.Product and _Output.MRPArea = $projection.MRPArea and _Output.Plant = $projection.Plant and _Output.PMRPSupplyGroup = $projection.PMRPSupplyGroup and _Output.PMRPSupplyGroupCategory = $projection.PMRPSupplyGroupCategory and _Output.PMRPSourceOfSupplyInternalID = $projection.PMRPSourceOfSupplyInternalID and _Output.PMRPFlxblCstrtProductGroup = $projection.PMRPFlxblCstrtProductGroup

Annotations (8)

NameValueLevelField
ObjectModel.query.implementedBy ABAP:CL_PMRPPROD_QUERY view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Simulation Component Products view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view
AccessControl.personalData.blocking #REQUIRED view

OData Services (1)

ServiceBindingVersionContractRelease
PMRP_SIMU_COMPONENT_SERVICEDEF PMRP_SIM_COMPONENT_SERVICE V2 C1 NOT_TO_BE_RELEASED_STABLE

Fields (35)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation PMRPSimulation Simulation ID
KEY Product Product Product Sold
KEY Plant Plant Valuation Area
KEY MRPArea MRPArea MRP Area
KEY PMRPSupplyGroup PMRPSupplyGroup Supply Group
KEY PMRPSupplyGroupCategory PMRPSupplyGroupCategory Supply Group Cat
KEY PMRPSourceOfSupplyInternalID PMRPSourceOfSupplyInternalID Source of Supply ID
KEY PMRPFlxblCstrtProductGroup PMRPFlxblCstrtProductGroup
PMRPFlexibleConstraint PMRPFlexibleConstraint Constraints ID
ParentPMRPSourceOfSupply ParentPMRPSourceOfSupply
PMRPReferencePlan PMRPReferencePlan
PMRPSupplyGroupSourceOfSupply PMRPSupplyGroupSourceOfSupply
BucketCategory BucketCategory
PlantName PlantName Plant Name
MRPAreaText MRPAreaText
MRPController MRPController MRP Controller
MRPControllerName MRPControllerName Controller name
UnitOfMeasure UnitOfMeasure Unit Protected Qty
PMRPSourceOfSupplyName PMRPSourceOfSupplyName
MRPProcedure MRPProcedure
ProcurementType ProcurementType Procurement
ProcurementTypeDescription ProcurementTypeDescription
LowLevelCode LowLevelCode Low-Level Code
MaterialName MaterialName Material Description
ProductName ProductName Description
HierarchyNodeOrdinalNumber HierarchyNodeOrdinalNumber Node Number
HierarchyParentNodeOrdinalNmbr HierarchyParentNodeOrdinalNmbr
HierarchyLevel HierarchyLevel Hierarchy Level
HierarchyNodeSubTreeSize HierarchyNodeSubTreeSize Descendant Count
HierarchyNode
HierarchyParentNode
HierarchyDistanceFromRoot
HierarchyDescendantCount
HierarchyDrillState
_Output _Output

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_PMRPSimulationProductRow.
-- 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.
-- Parameters: P_PMRPSimulation : pmrp_simulation_id

CREATE VIEW C_PMRPSimulationProductRow AS
SELECT
  PMRPSimulation,
  Product,
  Plant,
  MRPArea,
  PMRPSupplyGroup,
  PMRPSupplyGroupCategory,
  PMRPSourceOfSupplyInternalID,
  PMRPFlxblCstrtProductGroup,
  PMRPFlexibleConstraint,
  ParentPMRPSourceOfSupply,
  PMRPReferencePlan,
  PMRPSupplyGroupSourceOfSupply,
  BucketCategory,
  PlantName,
  MRPAreaText,
  MRPController,
  MRPControllerName,
  UnitOfMeasure,
  PMRPSourceOfSupplyName,
  MRPProcedure,
  ProcurementType,
  ProcurementTypeDescription,
  LowLevelCode,
  MaterialName,
  ProductName,
  HierarchyNodeOrdinalNumber,
  HierarchyParentNodeOrdinalNmbr,
  HierarchyLevel,
  HierarchyNodeSubTreeSize,
  cast( '' as abap.sstring(1333) ) AS HierarchyNode,
  cast( '' as abap.sstring(1333) ) AS HierarchyParentNode,
  cast( 0 as abap.int4 ) AS HierarchyDistanceFromRoot,
  cast( 0 as abap.int4 ) AS HierarchyDescendantCount,
  cast( 0 as abap.sstring(20) ) AS HierarchyDrillState
FROM R_PMRPProductHierarchyNode
LEFT OUTER JOIN C_PMRPSimulationProductColumn AS _Output ON _Output.PMRPSimulation = PMRPSimulation AND _Output.Product = Product AND _Output.MRPArea = MRPArea AND _Output.Plant = Plant AND _Output.PMRPSupplyGroup = PMRPSupplyGroup AND _Output.PMRPSupplyGroupCategory = PMRPSupplyGroupCategory AND _Output.PMRPSourceOfSupplyInternalID = PMRPSourceOfSupplyInternalID AND _Output.PMRPFlxblCstrtProductGroup = PMRPFlxblCstrtProductGroup  -- association [0..*]
;