I_PMRPRequirementKPI

DDL: I_PMRPREQUIREMENTKPI SQL: IPMRPRQMTKPI Type: view COMPOSITE

KPIs of a Requirement used in pMRP

I_PMRPRequirementKPI is a Composite CDS View that provides data about "KPIs of a Requirement used in pMRP" in SAP S/4HANA. It reads from 2 data sources (I_PMRPReceiptBasic, I_PMRPRequirementBasic) and exposes 4 fields with key fields PMRPSimulation, TopLevelDemandInternalID.

Data Sources (2)

SourceAliasJoin Type
I_PMRPReceiptBasic receipt left_outer
I_PMRPRequirementBasic rqmt from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPMRPRQMTKPI 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 #CHECK view
VDM.viewType #COMPOSITE view
EndUserText.label KPIs of a Requirement used in pMRP view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation I_PMRPRequirementBasic PMRPSimulation Simulation ID
KEY TopLevelDemandInternalID I_PMRPRequirementBasic TopLevelDemandInternalID Top-Level Demand ID
RequirementInternalID
NumberOfSourcesOfSupply

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 I_PMRPRequirementKPI.
-- 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: IPMRPRQMTKPI

CREATE VIEW I_PMRPRequirementKPI AS
SELECT
  rqmt.PMRPSimulation AS PMRPSimulation,
  rqmt.TopLevelDemandInternalID AS TopLevelDemandInternalID,
  cast(count(distinct receipt.PMRPSourceOfSupplyInternalID) as pmrp_number_of_sos ) AS NumberOfSourcesOfSupply
FROM I_PMRPRequirementBasic AS rqmt
LEFT OUTER JOIN I_PMRPReceiptBasic AS receipt ON /* join condition not captured in parsed metadata */
;