R_PMRPSimulationCapacityNode

DDL: R_PMRPSIMULATIONCAPACITYNODE Type: view_entity BASIC

Node for Simulation Capacity Hierarchy

R_PMRPSimulationCapacityNode is a Basic CDS View that provides data about "Node for Simulation Capacity Hierarchy" in SAP S/4HANA. It reads from 1 data source (P_pMRPSimlnRsceGroup) and exposes 16 fields with key fields PMRPSimulation, PMRPResourceInternalID, PMRPRsceGrpHierNodeType, CapacityCategory. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_pMRPSimlnRsceGroup P_pMRPSimlnRsceGroup from

Associations (7)

CardinalityTargetAliasCondition
[1..1] I_PMRPSimulation _Simulation _Simulation.PMRPSimulation = $projection.PMRPSimulation
[1..1] I_PMRPReferencePlan _ReferencePlan _ReferencePlan.PMRPReferencePlan = $projection.PMRPReferencePlan
[1..1] I_PMRPResource _Resource _Resource.PMRPReferencePlan = $projection.PMRPReferencePlan and _Resource.PMRPResourceInternalID = $projection.PMRPResourceInternalID -- nodeid may also be a resource group of type G, only use C and $projection.PMRPRsceGrpHierNodeType = 'C'
[0..1] I_WorkCenterGroup _WorkCenterGroup _WorkCenterGroup.WorkCenterGroupTypeCode = $projection.PMRPRsceGrpHierParentNodeType and _WorkCenterGroup.WorkCenterGroupInternalID = $projection.WorkCenterGroupInternalID
[1..1] I_UnitOfMeasure _UnitOfMeasure _UnitOfMeasure.UnitOfMeasure = $projection.capacityquantityunit
[0..1] R_PMRPSimulationCapacityNode _ParentCapacityNode _ParentCapacityNode.PMRPSimulation = $projection.PMRPSimulation and _ParentCapacityNode.PMRPResourceInternalID = $projection.WorkCenterGroupInternalID and _ParentCapacityNode.PMRPRsceGrpHierNodeType = $projection.PMRPRsceGrpHierParentNodeType and _ParentCapacityNode.CapacityCategory = $projection.CapacityCategory
[0..*] R_PMRPSimlnCapacityByBucket _Capacity _Capacity.PMRPSimulation = $projection.PMRPSimulation and _Capacity.PMRPResourceInternalID = $projection.PMRPResourceInternalID and _Capacity.PMRPRsceGrpHierNodeType = $projection.PMRPRsceGrpHierNodeType and _Capacity.CapacityCategory = $projection.CapacityCategory

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Node for Simulation Capacity Hierarchy view
Metadata.ignorePropagatedAnnotations true view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation simulation_id Simulation ID
KEY PMRPResourceInternalID nodeid Workflow Step
KEY PMRPRsceGrpHierNodeType nodetype Object Type
KEY CapacityCategory capacitycategory
PMRPReferencePlan reference_id Reference No.
WorkCenterGroupInternalID parentnodeid Object ID
PMRPRsceGrpHierParentNodeType parentnodetype Object Type
Plant _Resource Plant Valuation Area
CapacityQuantityUnit _Resource CapacityQuantityUnit
_ParentCapacityNode _ParentCapacityNode
_Capacity _Capacity
_Simulation _Simulation
_ReferencePlan _ReferencePlan
_Resource _Resource
_WorkCenterGroup _WorkCenterGroup
_UnitOfMeasure _UnitOfMeasure

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 R_PMRPSimulationCapacityNode.
-- 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.

CREATE VIEW R_PMRPSimulationCapacityNode AS
SELECT
  simulation_id AS PMRPSimulation,
  nodeid AS PMRPResourceInternalID,
  nodetype AS PMRPRsceGrpHierNodeType,
  CapacityCategory,
  reference_id AS PMRPReferencePlan,
  parentnodeid AS WorkCenterGroupInternalID,
  parentnodetype AS PMRPRsceGrpHierParentNodeType,
  _Resource.Plant AS Plant,
  _Resource.CapacityQuantityUnit AS CapacityQuantityUnit
FROM P_pMRPSimlnRsceGroup
LEFT OUTER JOIN I_PMRPSimulation AS _Simulation ON _Simulation.PMRPSimulation = PMRPSimulation  -- association [1..1]
LEFT OUTER JOIN I_PMRPReferencePlan AS _ReferencePlan ON _ReferencePlan.PMRPReferencePlan = PMRPReferencePlan  -- association [1..1]
LEFT OUTER JOIN I_PMRPResource AS _Resource ON _Resource.PMRPReferencePlan = PMRPReferencePlan AND _Resource.PMRPResourceInternalID = PMRPResourceInternalID  -- association [1..1]
LEFT OUTER JOIN I_WorkCenterGroup AS _WorkCenterGroup ON _WorkCenterGroup.WorkCenterGroupTypeCode = PMRPRsceGrpHierParentNodeType AND _WorkCenterGroup.WorkCenterGroupInternalID = WorkCenterGroupInternalID  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON _UnitOfMeasure.UnitOfMeasure = capacityquantityunit  -- association [1..1]
LEFT OUTER JOIN R_PMRPSimulationCapacityNode AS _ParentCapacityNode ON _ParentCapacityNode.PMRPSimulation = PMRPSimulation AND _ParentCapacityNode.PMRPResourceInternalID = WorkCenterGroupInternalID AND _ParentCapacityNode.PMRPRsceGrpHierNodeType = PMRPRsceGrpHierParentNodeType AND _ParentCapacityNode.CapacityCategory = CapacityCategory  -- association [0..1]
LEFT OUTER JOIN R_PMRPSimlnCapacityByBucket AS _Capacity ON _Capacity.PMRPSimulation = PMRPSimulation AND _Capacity.PMRPResourceInternalID = PMRPResourceInternalID AND _Capacity.PMRPRsceGrpHierNodeType = PMRPRsceGrpHierNodeType AND _Capacity.CapacityCategory = CapacityCategory  -- association [0..*]
;