P_PMRPCapReqForTLD

DDL: P_PMRPCAPREQFORTLD Type: view_entity COMPOSITE Package: PMRP_ENGINE

Aggregate CAPREQs for TLD

P_PMRPCapReqForTLD 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 10 fields with key fields PMRPSimulation, TopLevelDemandInternalID, PMRPResourceInternalID, BucketInternalID. 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 (10)

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

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_PMRPCapReqForTLD.
-- 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_PMRPCapReqForTLD AS
SELECT
  PMRPSimulation,
  TopLevelDemandInternalID,
  PMRPResourceInternalID,
  BucketInternalID,
  CapacityBaseQtyUnit,
  cast ( sum( VariableWorkQuantityForTld ) as pmrp_sum_quantity) AS VariableWorkQuantityForTLD,
  cast ( sum( PMRPCapacityDemandQtyInSeconds ) as pmrp_eff_cap_demand ) AS PMRPCapacityDemandQtyInSeconds,
  TopLevelDemandUnitOfMeasure,
  cast ( max( PMRPShareOfTopLvlDmndQuantity ) as pmrp_share_of_tld_quan ) AS PMRPShareOfTopLvlDmndQuantity,
  max( PMRPReceiptIsFromPullIn ) AS PMRPReceiptIsFromPullIn
FROM P_PMRPTopLvlDmndProdCapBucket
;