P_PMRPCapReqForTLDNoPullin

DDL: P_PMRPCAPREQFORTLDNOPULLIN Type: view_entity COMPOSITE Package: PMRP_ENGINE

Aggregate CAPREQs for TLD

P_PMRPCapReqForTLDNoPullin is a Composite CDS View that provides data about "Aggregate CAPREQs for TLD" in SAP S/4HANA. It reads from 1 data source (P_PMRPTopLvlDmndProdCapBucket) and exposes 9 fields with key fields PMRPSimulation, TopLevelDemandInternalID, PMRPResourceInternalID, BucketInternalID, PMRPReceiptIsFromPullIn. Part of development package PMRP_ENGINE.

Data Sources (1)

SourceAliasJoin Type
P_PMRPTopLvlDmndProdCapBucket P_PMRPTopLvlDmndProdCapBucket from

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation PMRPSimulation Simulation ID
KEY TopLevelDemandInternalID TopLevelDemandInternalID Top-Level Demand ID
KEY PMRPResourceInternalID PMRPResourceInternalID
KEY BucketInternalID BucketInternalID Bucket ID
KEY PMRPReceiptIsFromPullIn PMRPReceiptIsFromPullIn
VariableWorkQuantityForTLD
PMRPCapacityDemandQtyInSeconds
TopLevelDemandUnitOfMeasure TopLevelDemandUnitOfMeasure
PMRPShareOfTopLvlDmndQuantity

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_PMRPCapReqForTLDNoPullin.
-- 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.

CREATE VIEW P_PMRPCapReqForTLDNoPullin AS
SELECT
  PMRPSimulation,
  TopLevelDemandInternalID,
  PMRPResourceInternalID,
  BucketInternalID,
  PMRPReceiptIsFromPullIn,
  cast ( sum ( VariableWorkQuantityForTld ) as pmrp_var_demand ) AS VariableWorkQuantityForTLD,
  sum( PMRPCapacityDemandQtyInSeconds ) AS PMRPCapacityDemandQtyInSeconds,
  TopLevelDemandUnitOfMeasure,
  max( PMRPShareOfTopLvlDmndQuantity ) AS PMRPShareOfTopLvlDmndQuantity
FROM P_PMRPTopLvlDmndProdCapBucket
;