C_PMRPSimulation

DDL: C_PMRPSIMULATION SQL: CPMRPSIM Type: view CONSUMPTION

Simulation in predictive MRP

C_PMRPSimulation is a Consumption CDS View that provides data about "Simulation in predictive MRP" in SAP S/4HANA. It reads from 1 data source (I_PMRPSimulationTP) and exposes 39 fields with key field PMRPSimulation. It has 15 associations to related views. It is exposed through 2 OData services (PMRP_SIMU_SERVICEDEF, PMRP_SUPPLYCHAIN_SERVICEDEF).

Data Sources (1)

SourceAliasJoin Type
I_PMRPSimulationTP I_PMRPSimulationTP from

Associations (15)

CardinalityTargetAliasCondition
[1..1] I_User _CreatedBy $projection.CreatedByUser = _CreatedBy.UserID
[1..1] I_User _ChangedBy $projection.LastChangedByUser = _ChangedBy.UserID
[1..1] I_PMRPSimulationStatusText _SimulationStatusText $projection.PMRPSimulationStatus = _SimulationStatusText.PMRPSimulationStatus and _SimulationStatusText.Language = $session.system_language
[1..1] C_PMRPSimulationCreatedByVH _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID and $projection.CreatedByUserName = _CreatedByUser.UserDescription
[1..1] C_PMRPReferencePlanVH _ReferenceVH $projection.PMRPReferencePlan = _ReferenceVH.PMRPReferencePlan and $projection.pmrpreferenceplandescription = _ReferenceVH.PMRPReferencePlanDescription
[1..1] C_PMRPSimulationVH _SimulationVH $projection.PMRPSimulation = _SimulationVH.PMRPSimulation and $projection.PMRPSimulationDescription = _SimulationVH.PMRPSimulationDescription
[1..*] C_PMRPChangeInDemand _ChangeInDemand $projection.PMRPSimulation = _ChangeInDemand.PMRPSimulation
[1..*] C_PMRPChangeInCapacity _ChangeInCapacity $projection.PMRPSimulation = _ChangeInCapacity.PMRPSimulation
[1..*] C_PMRPUnresolvedIssue _UnresolvedIssue $projection.PMRPSimulation = _UnresolvedIssue.PMRPSimulation
[1..*] C_PMRPRsceDisregardedIssues _DisregardedIssues $projection.PMRPSimulation = _DisregardedIssues.PMRPSimulation
[1..*] C_PMRPChangeInSOS _PMRPChangeInSOS $projection.PMRPSimulation = _PMRPChangeInSOS.PMRPSimulation
[1..*] C_PMRPReallocation _Reallocation $projection.PMRPSimulation = _Reallocation.PMRPSimulation
[1..1] I_PMRPBucketCount _RefBucketCount $projection.PMRPReferencePlan = _RefBucketCount.PMRPReferencePlan
[1..*] C_PMRPIssueByCause _IssueByCause $projection.PMRPSimulation = _IssueByCause.PMRPSimulation
[1..*] C_PMRPChangeInDemandKey _ChangeInDemandKey

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CPMRPSIM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Simulation in predictive MRP view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view
Metadata.allowExtensions true view
Search.searchable true view

OData Services (2)

ServiceBindingVersionContractRelease
PMRP_SIMU_SERVICEDEF PMRP_SIMUL_SERVICE V2 C1 NOT_RELEASED
PMRP_SUPPLYCHAIN_SERVICEDEF PMRP_SUPPLYCHAIN_SERVICE V2 C1 NOT_RELEASED

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation PMRPSimulation Simulation ID
PMRPSimulationDescription
PMRPReferencePlan PMRPReferencePlan
PMRPReferencePlanDescription
PMRPCostCtrPlanIsToBePubd
PMRPSimulationStatus PMRPSimulationStatus
PMRPSimulationStatusName _SimulationStatusText PMRPSimulationStatusName
CreatedByUser CreatedByUser User Name
CreatedByUserName _CreatedBy UserDescription Full Name
clientNULLasCreationDateTime
LastChangedByUser LastChangedByUser User Name
ChangedByUserName _ChangedBy UserDescription Full Name
clientNULLasLastChangeDateTime
NumberOfCapacityIssues NumberOfCapacityIssues
PreviousNumberOfCapacityIssues PreviousNumberOfCapacityIssues
TopLvlDmndUndrdelivRatioInPct
PreviousUndrdelivRatioInPct PreviousUndrdelivRatioInPct
DeliveryPerformanceUnit
PMRPNumberOfBuckets _RefBucketCount PMRPNumberOfBuckets
PMRPBucketCategory _RefBucketCount PMRPBucketCategory
PMRPRsceOverloadTolerancePct PMRPRsceOverloadTolerancePct
PMRPSimulationVersionCode PMRPSimulationVersionCode
PMRPSimulationIsObsolete PMRPSimulationIsObsolete
NumberOfProductsWithMissingSOS NumberOfProductsWithMissingSOS
PrevNmbrOfProdsWithMissingSOS PrevNmbrOfProdsWithMissingSOS
PMRPNumberOfConstraintIssues PMRPNumberOfConstraintIssues
PMRPPrevNmbrOfConstraintIssues PMRPPrevNmbrOfConstraintIssues
PMRPStockDeterminationRule
_CreatedByUser _CreatedByUser
_ReferenceVH _ReferenceVH
_SimulationVH _SimulationVH
_ChangeInDemandKey _ChangeInDemandKey
_ChangeInDemand _ChangeInDemand
_ChangeInCapacity _ChangeInCapacity
_UnresolvedIssue _UnresolvedIssue
_DisregardedIssues _DisregardedIssues
_PMRPChangeInSOS _PMRPChangeInSOS
_Reallocation _Reallocation
_IssueByCause _IssueByCause

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_PMRPSimulation.
-- 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: CPMRPSIM

CREATE VIEW C_PMRPSimulation AS
SELECT
  PMRPSimulation,
  _SimulationText[Language=$session.system_language].PMRPSimulationDescription AS PMRPSimulationDescription,
  PMRPReferencePlan,
  _ReferencePlan._PMRPReferencePlanText[Language=$session.system_language].PMRPReferencePlanDescription AS PMRPReferencePlanDescription,
  I_PMRPSimulationTP._ReferencePlan.PMRPCostCtrPlanIsToBePubd AS PMRPCostCtrPlanIsToBePubd,
  PMRPSimulationStatus,
  _SimulationStatusText.PMRPSimulationStatusName AS PMRPSimulationStatusName,
  CreatedByUser,
  _CreatedBy.UserDescription AS CreatedByUserName,
  tstmp_to_dats( CreationDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as CreationDateTime AS clientNULLasCreationDateTime,
  LastChangedByUser,
  _ChangedBy.UserDescription AS ChangedByUserName,
  tstmp_to_dats( LastChangeDateTime, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as LastChangeDateTime AS clientNULLasLastChangeDateTime,
  NumberOfCapacityIssues,
  PreviousNumberOfCapacityIssues,
  concat_with_space(cast (TopLvlDmndUndrdelivRatioInPct as abap.char(6)), '%', 1) AS TopLvlDmndUndrdelivRatioInPct,
  PreviousUndrdelivRatioInPct,
  cast ('%' as meins) AS DeliveryPerformanceUnit,
  _RefBucketCount.PMRPNumberOfBuckets AS PMRPNumberOfBuckets,
  _RefBucketCount.PMRPBucketCategory AS PMRPBucketCategory,
  PMRPRsceOverloadTolerancePct,
  PMRPSimulationVersionCode,
  PMRPSimulationIsObsolete,
  NumberOfProductsWithMissingSOS,
  PrevNmbrOfProdsWithMissingSOS,
  PMRPNumberOfConstraintIssues,
  PMRPPrevNmbrOfConstraintIssues,
  I_PMRPSimulationTP._ReferencePlan.PMRPStockDeterminationRule AS PMRPStockDeterminationRule
FROM I_PMRPSimulationTP
LEFT OUTER JOIN I_User AS _CreatedBy ON CreatedByUser = _CreatedBy.UserID  -- association [1..1]
LEFT OUTER JOIN I_User AS _ChangedBy ON LastChangedByUser = _ChangedBy.UserID  -- association [1..1]
LEFT OUTER JOIN I_PMRPSimulationStatusText AS _SimulationStatusText ON PMRPSimulationStatus = _SimulationStatusText.PMRPSimulationStatus AND _SimulationStatusText.Language = $session.system_language  -- association [1..1]
LEFT OUTER JOIN C_PMRPSimulationCreatedByVH AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID AND CreatedByUserName = _CreatedByUser.UserDescription  -- association [1..1]
LEFT OUTER JOIN C_PMRPReferencePlanVH AS _ReferenceVH ON PMRPReferencePlan = _ReferenceVH.PMRPReferencePlan AND pmrpreferenceplandescription = _ReferenceVH.PMRPReferencePlanDescription  -- association [1..1]
LEFT OUTER JOIN C_PMRPSimulationVH AS _SimulationVH ON PMRPSimulation = _SimulationVH.PMRPSimulation AND PMRPSimulationDescription = _SimulationVH.PMRPSimulationDescription  -- association [1..1]
LEFT OUTER JOIN C_PMRPChangeInDemand AS _ChangeInDemand ON PMRPSimulation = _ChangeInDemand.PMRPSimulation  -- association [1..*]
LEFT OUTER JOIN C_PMRPChangeInCapacity AS _ChangeInCapacity ON PMRPSimulation = _ChangeInCapacity.PMRPSimulation  -- association [1..*]
LEFT OUTER JOIN C_PMRPUnresolvedIssue AS _UnresolvedIssue ON PMRPSimulation = _UnresolvedIssue.PMRPSimulation  -- association [1..*]
LEFT OUTER JOIN C_PMRPRsceDisregardedIssues AS _DisregardedIssues ON PMRPSimulation = _DisregardedIssues.PMRPSimulation  -- association [1..*]
LEFT OUTER JOIN C_PMRPChangeInSOS AS _PMRPChangeInSOS ON PMRPSimulation = _PMRPChangeInSOS.PMRPSimulation  -- association [1..*]
LEFT OUTER JOIN C_PMRPReallocation AS _Reallocation ON PMRPSimulation = _Reallocation.PMRPSimulation  -- association [1..*]
LEFT OUTER JOIN I_PMRPBucketCount AS _RefBucketCount ON PMRPReferencePlan = _RefBucketCount.PMRPReferencePlan  -- association [1..1]
LEFT OUTER JOIN C_PMRPIssueByCause AS _IssueByCause ON PMRPSimulation = _IssueByCause.PMRPSimulation  -- association [1..*]
LEFT OUTER JOIN C_PMRPChangeInDemandKey AS _ChangeInDemandKey ON /* condition not available in parsed metadata */  -- association [1..*]
;