C_PMRPSimulationProduct

DDL: C_PMRPSIMULATIONPRODUCT SQL: CPMRPPROD Type: view CONSUMPTION

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 40 fields with key fields PMRPSimulation, Product, Plant, MRPArea, PMRPSourceOfSupplyInternalID. It has 1 association to related views.

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 (11)

NameValueLevelField
AbapCatalog.sqlViewName CPMRPPROD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Simulation Product view view
ClientHandling.algorithm #SESSION_VARIABLE 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

Fields (40)

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 _Plant PlantName Plant Name
MRPAreaText _MRPArea MRPAreaText
MRPController _PMRPProduct MRPController MRP Controller
MRPControllerName
PMRPSourceOfSupplyName _SourceOfSupply PMRPSourceOfSupplyName
Supplier _SourceOfSupply Supplier Supplier
MRPProcedureCthenXelseendasMRPProcedure
UnitOfMeasure UnitOfMeasure Unit Protected Qty
ProcurementType
ProcurementTypeDescription
PMRPReceiptQuantity PMRPReceiptQuantity
PMRPSupplierSumQuantity
PMRPConstraintQtyInBaseUnit PMRPConstraintQtyInBaseUnit
PMRPReferencePlan PMRPReferencePlan
ParentPMRPSourceOfSupply ParentPMRPSourceOfSupply
LowLevelCode _Product LowLevelCode Low-Level Code
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.
-- SQL view name: CPMRPPROD
-- 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,
  _Plant.PlantName AS PlantName,
  _MRPArea.MRPAreaText AS MRPAreaText,
  _PMRPProduct.MRPController AS MRPController,
  _PMRPProduct._PMRPController.MRPControllerName AS MRPControllerName,
  _SourceOfSupply.PMRPSourceOfSupplyName AS PMRPSourceOfSupplyName,
  _SourceOfSupply.Supplier AS Supplier,
  case when _PMRPProduct.MRPProcedure = 'C' then 'X' else ' ' end as MRPProcedure AS MRPProcedureCthenXelseendasMRPProcedure,
  UnitOfMeasure,
  _PMRPProduct._PMRPProcurementType.ProcurementType AS ProcurementType,
  _PMRPProduct._PMRPProcurementType.ProcurementTypeDescription AS ProcurementTypeDescription,
  PMRPReceiptQuantity,
  cast( 0 as pmrp_receipt_quantity ) AS PMRPSupplierSumQuantity,
  PMRPConstraintQtyInBaseUnit,
  PMRPReferencePlan,
  ParentPMRPSourceOfSupply,
  _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]
;