C_PMRPSimulationProduct

DDL: C_PMRPSIMULATIONPRODUCT Type: view_entity CONSUMPTION Package: PMRP_UI_SERVICES

Simulation Product view

C_PMRPSimulationProduct is a Consumption CDS View that provides data about "Simulation Product view" in SAP S/4HANA. It reads from 1 data source (R_PMRPSimlnOutpByProdHierNode) and exposes 38 fields with key fields PMRPSimulation, Product, Plant, MRPArea, PMRPSourceOfSupplyInternalID. It has 1 association 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_PMRPSimlnOutpByProdHierNode R_PMRPSimlnOutpByProdHierNode from

Parameters (1)

NameTypeDefault
P_PMRPSimulation pmrp_simulation_id

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_PMRPBucketCount _RefBucketCount $projection.PMRPReferencePlan = _RefBucketCount.PMRPReferencePlan

Annotations (7)

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

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation PMRPSimulation Simulation ID
KEY Product Product Product Sold
KEY Plant Plant Valuation Area
KEY MRPArea MRPArea MRP Area
KEY PMRPSourceOfSupplyInternalID PMRPSourceOfSupplyInternalID Source of Supply ID
KEY BucketInternalID BucketInternalID Bucket ID
PMRPBucketCategory _RefBucketCount PMRPBucketCategory
PMRPNumberOfBuckets _RefBucketCount PMRPNumberOfBuckets
MaterialName
PlantName
MRPAreaText
MRPController
MRPControllerName
PMRPSourceOfSupplyName
MRPProcedureCthenXelseendasMRPProcedure
UnitOfMeasure UnitOfMeasure Unit Protected Qty
ProcurementType
ProcurementTypeDescription
PMRPReceiptQuantity PMRPReceiptQuantity
PMRPConstraintQtyInBaseUnit PMRPConstraintQtyInBaseUnit
PMRPReferencePlan PMRPReferencePlan
ParentPMRPSourceOfSupply ParentPMRPSourceOfSupply
LowLevelCode
HierarchyNode HierarchyNode Node
HierarchyParentNode HierarchyParentNode Hier.node
HierarchyNodeOrdinalNumber HierarchyNodeOrdinalNumber Node Number
HierarchyParentNodeOrdinalNmbr HierarchyParentNodeOrdinalNmbr
HierarchyLevel HierarchyLevel Hierarchy Level
HierarchyNodeSubTreeSize HierarchyNodeSubTreeSize Descendant Count
_PMRPSimlnOutpQtyByTopLvlDmnd _PMRPSimlnOutpQtyByTopLvlDmnd
_Product _Product
_Plant _Plant
_MRPArea _MRPArea
_UnitOfMeasure _UnitOfMeasure
_ReferencePlan _ReferencePlan
_Simulation _Simulation
_PMRPProduct _PMRPProduct
_SourceOfSupply _SourceOfSupply

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_PMRPSimulationProduct.
-- 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_PMRPSimulationProduct AS
SELECT
  PMRPSimulation,
  Product,
  Plant,
  MRPArea,
  PMRPSourceOfSupplyInternalID,
  BucketInternalID,
  _RefBucketCount.PMRPBucketCategory AS PMRPBucketCategory,
  _RefBucketCount.PMRPNumberOfBuckets AS PMRPNumberOfBuckets,
  _Product._Text[Language = $session.system_language].ProductName AS MaterialName,
  R_PMRPSimlnOutpByProdHierNode._Plant.PlantName AS PlantName,
  R_PMRPSimlnOutpByProdHierNode._MRPArea.MRPAreaText AS MRPAreaText,
  R_PMRPSimlnOutpByProdHierNode._PMRPProduct.MRPController AS MRPController,
  R_PMRPSimlnOutpByProdHierNode._PMRPProduct._PMRPController.MRPControllerName AS MRPControllerName,
  R_PMRPSimlnOutpByProdHierNode._SourceOfSupply.PMRPSourceOfSupplyName AS PMRPSourceOfSupplyName,
  case when R_PMRPSimlnOutpByProdHierNode._PMRPProduct.MRPProcedure = 'C' then 'X' else ' ' end as MRPProcedure AS MRPProcedureCthenXelseendasMRPProcedure,
  UnitOfMeasure,
  R_PMRPSimlnOutpByProdHierNode._PMRPProduct._PMRPProcurementType.ProcurementType AS ProcurementType,
  R_PMRPSimlnOutpByProdHierNode._PMRPProduct._PMRPProcurementType.ProcurementTypeDescription AS ProcurementTypeDescription,
  PMRPReceiptQuantity,
  PMRPConstraintQtyInBaseUnit,
  PMRPReferencePlan,
  ParentPMRPSourceOfSupply,
  R_PMRPSimlnOutpByProdHierNode._Product.LowLevelCode AS LowLevelCode,
  HierarchyNode,
  HierarchyParentNode,
  HierarchyNodeOrdinalNumber,
  HierarchyParentNodeOrdinalNmbr,
  HierarchyLevel,
  HierarchyNodeSubTreeSize
FROM R_PMRPSimlnOutpByProdHierNode
LEFT OUTER JOIN I_PMRPBucketCount AS _RefBucketCount ON PMRPReferencePlan = _RefBucketCount.PMRPReferencePlan  -- association [1..1]
;