P_PMRPIssueByResource

DDL: P_PMRPISSUEBYRESOURCE SQL: PRESISSCAUSE Type: view COMPOSITE

P_PMRPIssueByResource is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_PMRPIssueByResource4) and exposes 6 fields with key fields PMRPSimulation, PMRPResourceInternalID, Plant.

Data Sources (1)

SourceAliasJoin Type
P_PMRPIssueByResource4 P_PMRPIssueByResource4 from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PRESISSCAUSE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation PMRPSimulation Simulation ID
KEY PMRPResourceInternalID PMRPResourceInternalID
KEY Plant
PMRPNumberOfAffectedBuckets
PMRPNmbrOfAffcdTopLvlDemands
PMRPIssueImpactScore

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 P_PMRPIssueByResource.
-- 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: PRESISSCAUSE

CREATE VIEW P_PMRPIssueByResource AS
SELECT
  PMRPSimulation,
  PMRPResourceInternalID,
  max(Plant) AS Plant,
  cast(count(distinct BucketInternalID) as pmrp_affected_buckets) AS PMRPNumberOfAffectedBuckets,
  count(distinct TopLevelDemandInternalID) AS PMRPNmbrOfAffcdTopLvlDemands,
  cast(sum(PMRPIssueImpactScore) as pmrp_issue_impact_score) AS PMRPIssueImpactScore
FROM P_PMRPIssueByResource4
;