C_PMRPSimulationSupply

DDL: C_PMRPSIMULATIONSUPPLY Type: view_entity CONSUMPTION Package: PMRP_UI_SERVICES

Simulation Supply View

C_PMRPSimulationSupply is a Consumption CDS View that provides data about "Simulation Supply View" in SAP S/4HANA. It reads from 1 data source (R_PMRPSimlnOutpBySupHierNode) and exposes 48 fields with key fields PMRPSimulation, PMRPSupplyGroup, PMRPSupplyGroupCategory, Product, Plant. It has 2 associations to related views. It is exposed through 2 OData services (ASQL_F4450, PMRP_SIMU_COMPONENT_SERVICEDEF). Part of development package PMRP_UI_SERVICES.

Data Sources (1)

SourceAliasJoin Type
R_PMRPSimlnOutpBySupHierNode R_PMRPSimlnOutpBySupHierNode from

Parameters (1)

NameTypeDefault
P_PMRPSimulation pmrp_simulation_id

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_PMRPBucketCount _RefBucketCount $projection.PMRPReferencePlan = _RefBucketCount.PMRPReferencePlan
[1..1] C_PMRPSupplyGroupName _SupplyGroup $projection.PMRPReferencePlan = _SupplyGroup.PMRPReferencePlan and $projection.PMRPSupplyGroup = _SupplyGroup.PMRPSupplyGroup and $projection.PMRPSupplyGroupCategory = _SupplyGroup.PMRPSupplyGroupCategory

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Simulation Supply View 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 (2)

ServiceBindingVersionContractRelease
ASQL_F4450 ASQL_F4450 C2 NOT_RELEASED
PMRP_SIMU_COMPONENT_SERVICEDEF PMRP_SIM_COMPONENT_SERVICE V2 C1 NOT_TO_BE_RELEASED_STABLE

Fields (48)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation PMRPSimulation Simulation ID
KEY PMRPSupplyGroup PMRPSupplyGroup Supply Group
KEY PMRPSupplyGroupCategory PMRPSupplyGroupCategory Supply Group Cat
KEY Product Product Product Sold
KEY Plant Plant Valuation Area
KEY MRPArea MRPArea MRP Area
KEY BucketInternalID BucketInternalID Bucket ID
PMRPBucketCategory _RefBucketCount PMRPBucketCategory
PMRPNumberOfBuckets _RefBucketCount PMRPNumberOfBuckets
MaterialName
PlantName
MRPAreaText
MRPController
MRPControllerName
UnitOfMeasure UnitOfMeasure Unit Protected Qty
PMRPReceiptQuantity PMRPReceiptQuantity
PMRPConstraintQtyInBaseUnit PMRPConstraintQtyInBaseUnit
PMRPReferencePlan PMRPReferencePlan
PMRPParentSupplyGroup PMRPParentSupplyGroup
PMRPParentSupplyGroupCategory PMRPParentSupplyGroupCategory
ParentProduct ParentProduct
ParentPlant ParentPlant
ParentMRPArea ParentMRPArea
Supplier _SupplyGroup PMRPSupplyGroupName
PMRPSupplyGroupName _SupplyGroup PMRPSupplyGroupName
MRPProcedureCthenXelseendasMRPProcedure
ProcurementType
ProcurementTypeDescription
HierarchyNode HierarchyNode Node
HierarchyParentNode HierarchyParentNode Hier.node
HierarchyNodeOrdinalNumber HierarchyNodeOrdinalNumber Node Number
HierarchyParentNodeOrdinalNmbr HierarchyParentNodeOrdinalNmbr
HierarchyLevel HierarchyLevel Hierarchy Level
HierarchyNodeSubTreeSize HierarchyNodeSubTreeSize Descendant Count
ProductionLine ProductionLine Production Line
ProcmtHubSupplier Supplier Supplier
ReceivingPlant ReceivingPlant Receiving Plant
LowLevelCode
_PMRPSimlnOutpQtyByTopLvlDmnd _PMRPSimlnOutpQtyByTopLvlDmnd
_Product _Product
_Plant _Plant
_MRPArea _MRPArea
_Supplier _Supplier
_WorkCenter _WorkCenter
_UnitOfMeasure _UnitOfMeasure
_ReferencePlan _ReferencePlan
_Simulation _Simulation
_PMRPProduct _PMRPProduct

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_PMRPSimulationSupply.
-- 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_PMRPSimulationSupply AS
SELECT
  PMRPSimulation,
  PMRPSupplyGroup,
  PMRPSupplyGroupCategory,
  Product,
  Plant,
  MRPArea,
  BucketInternalID,
  _RefBucketCount.PMRPBucketCategory AS PMRPBucketCategory,
  _RefBucketCount.PMRPNumberOfBuckets AS PMRPNumberOfBuckets,
  _Product._Text[Language = $session.system_language].ProductName AS MaterialName,
  R_PMRPSimlnOutpBySupHierNode._Plant.PlantName AS PlantName,
  R_PMRPSimlnOutpBySupHierNode._MRPArea.MRPAreaText AS MRPAreaText,
  R_PMRPSimlnOutpBySupHierNode._PMRPProduct.MRPController AS MRPController,
  R_PMRPSimlnOutpBySupHierNode._PMRPProduct._PMRPController.MRPControllerName AS MRPControllerName,
  UnitOfMeasure,
  PMRPReceiptQuantity,
  PMRPConstraintQtyInBaseUnit,
  PMRPReferencePlan,
  PMRPParentSupplyGroup,
  PMRPParentSupplyGroupCategory,
  ParentProduct,
  ParentPlant,
  ParentMRPArea,
  _SupplyGroup.PMRPSupplyGroupName AS Supplier,
  _SupplyGroup.PMRPSupplyGroupName AS PMRPSupplyGroupName,
  case when R_PMRPSimlnOutpBySupHierNode._PMRPProduct.MRPProcedure = 'C' then 'X' else '' end as MRPProcedure AS MRPProcedureCthenXelseendasMRPProcedure,
  R_PMRPSimlnOutpBySupHierNode._PMRPProduct._PMRPProcurementType.ProcurementType AS ProcurementType,
  R_PMRPSimlnOutpBySupHierNode._PMRPProduct._PMRPProcurementType.ProcurementTypeDescription AS ProcurementTypeDescription,
  HierarchyNode,
  HierarchyParentNode,
  HierarchyNodeOrdinalNumber,
  HierarchyParentNodeOrdinalNmbr,
  HierarchyLevel,
  HierarchyNodeSubTreeSize,
  ProductionLine,
  Supplier AS ProcmtHubSupplier,
  ReceivingPlant,
  R_PMRPSimlnOutpBySupHierNode._Product.LowLevelCode AS LowLevelCode
FROM R_PMRPSimlnOutpBySupHierNode
LEFT OUTER JOIN I_PMRPBucketCount AS _RefBucketCount ON PMRPReferencePlan = _RefBucketCount.PMRPReferencePlan  -- association [1..1]
LEFT OUTER JOIN C_PMRPSupplyGroupName AS _SupplyGroup ON PMRPReferencePlan = _SupplyGroup.PMRPReferencePlan AND PMRPSupplyGroup = _SupplyGroup.PMRPSupplyGroup AND PMRPSupplyGroupCategory = _SupplyGroup.PMRPSupplyGroupCategory  -- association [1..1]
;