P_PMRPIssueByUnderDelivery

DDL: P_PMRPISSUEBYUNDERDELIVERY Type: view_entity COMPOSITE

P_PMRPIssueByUnderDelivery is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_PMRPProductUnderdelivery, P_PMRPIssueByProductUnderdlv) and exposes 10 fields with key fields PMRPSimulation, Product, Plant, MRPArea.

Data Sources (2)

SourceAliasJoin Type
P_PMRPProductUnderdelivery produnderdlv inner
P_PMRPIssueByProductUnderdlv underdlvissue from

Annotations (6)

NameValueLevelField
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 (10)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation P_PMRPIssueByProductUnderdlv PMRPSimulation Simulation ID
KEY Product P_PMRPIssueByProductUnderdlv TopLevelProduct
KEY Plant P_PMRPIssueByProductUnderdlv TopLevelPlant
KEY MRPArea P_PMRPIssueByProductUnderdlv TopLevelMRPArea
UnitOfMeasure P_PMRPIssueByProductUnderdlv UnitOfMeasure Unit Protected Qty
PMRPNumberOfAffectedBuckets
PMRPNmbrOfAffcdTopLvlDemands
PMRPIssueImpactScore
TopLvlDmndUndrdelivRatioInPct
PMRPDeltaQuantity

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_PMRPIssueByUnderDelivery.
-- 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_PMRPIssueByUnderDelivery AS
SELECT
  underdlvissue.PMRPSimulation AS PMRPSimulation,
  underdlvissue.TopLevelProduct AS Product,
  underdlvissue.TopLevelPlant AS Plant,
  underdlvissue.TopLevelMRPArea AS MRPArea,
  underdlvissue.UnitOfMeasure AS UnitOfMeasure,
  cast(count(distinct underdlvissue.BucketInternalID) as pmrp_affected_buckets) AS PMRPNumberOfAffectedBuckets,
  cast(count(distinct underdlvissue.TopLevelDemandInternalID) as pmrp_affected_topleveldemands) AS PMRPNmbrOfAffcdTopLvlDemands,
  cast(sum(underdlvissue.PMRPIssueImpactScore) as pmrp_issue_impact_score) AS PMRPIssueImpactScore,
  cast(max(produnderdlv.PMRPDeliveryPerformance) as pmrp_delvry_perf) AS TopLvlDmndUndrdelivRatioInPct,
  cast(sum(underdlvissue.ActualAvailableQuantity) as pmrp_delta_quantity) AS PMRPDeltaQuantity
FROM P_PMRPIssueByProductUnderdlv AS underdlvissue
INNER JOIN P_PMRPProductUnderdelivery AS produnderdlv ON /* join condition not captured in parsed metadata */
;