P_PMRPTopLvlDmndSlackByRsce

DDL: P_PMRPTOPLVLDMNDSLACKBYRSCE SQL: PPMRPTLDSLKRSCE Type: view COMPOSITE

P_PMRPTopLvlDmndSlackByRsce is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_PMRPSimlnRsceCapBucket, P_PMRPCapReqForTLD) and exposes 6 fields with key fields PMRPSimulation, PMRPResourceInternalID, BucketInternalID, TopLevelDemandInternalID.

Data Sources (2)

SourceAliasJoin Type
I_PMRPSimlnRsceCapBucket capa from
P_PMRPCapReqForTLD req inner

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PPMRPTLDSLKRSCE 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 I_PMRPSimlnRsceCapBucket PMRPSimulation Simulation ID
KEY PMRPResourceInternalID I_PMRPSimlnRsceCapBucket PMRPResourceInternalID
KEY BucketInternalID I_PMRPSimlnRsceCapBucket BucketInternalID Bucket ID
KEY TopLevelDemandInternalID P_PMRPCapReqForTLD TopLevelDemandInternalID Top-Level Demand ID
PMRPCapacityDeltaDemand I_PMRPSimlnRsceCapBucket PMRPCapacityDeltaDemand
VariableWorkQuantityForTLD P_PMRPCapReqForTLD VariableWorkQuantityForTLD

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_PMRPTopLvlDmndSlackByRsce.
-- 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: PPMRPTLDSLKRSCE

CREATE VIEW P_PMRPTopLvlDmndSlackByRsce AS
SELECT
  capa.PMRPSimulation AS PMRPSimulation,
  capa.PMRPResourceInternalID AS PMRPResourceInternalID,
  capa.BucketInternalID AS BucketInternalID,
  req.TopLevelDemandInternalID AS TopLevelDemandInternalID,
  capa.PMRPCapacityDeltaDemand AS PMRPCapacityDeltaDemand,
  req.VariableWorkQuantityForTLD AS VariableWorkQuantityForTLD
FROM I_PMRPSimlnRsceCapBucket AS capa
INNER JOIN P_PMRPCapReqForTLD AS req ON /* join condition not captured in parsed metadata */
;