P_PMRPRequirementHierarchy
Requirement in pMRP
P_PMRPRequirementHierarchy is a Composite CDS View that provides data about "Requirement in pMRP" in SAP S/4HANA. It reads from 1 data source (I_PMRPRequirement) and exposes 64 fields with key fields PMRPSimulation, PMRPNodeID. It has 1 association to related views. Part of development package PMRP_UI_SERVICES.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PMRPRequirement | rqmt | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | P_PMRPRequirementHierarchy | _ParentRequirement | _ParentRequirement.PMRPSimulation = $projection.PMRPSimulation and _ParentRequirement.PMRPNodeID = $projection.PMRPParentNodeID and _ParentRequirement.TopLevelDemandInternalID = $projection.TopLevelDemandInternalID -- not really requried, but otherwise a warning in Check |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPMRPRQMTHIER | 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 | |
| EndUserText.label | Requirement in pMRP | view |
Fields (64)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PMRPSimulation | I_PMRPRequirement | PMRPSimulation | Simulation ID |
| KEY | PMRPNodeID | PMRPNodeID | Receipt ID | |
| PMRPParentNodeID | PMRPParentNodeID | |||
| ReceiptInternalID | ReceiptInternalID | Receipt ID | ||
| ParentReceiptInternalID | ParentReceiptInternalID | |||
| RequirementInternalID | RequirementInternalID | |||
| Product | Product | Product Sold | ||
| Plant | Plant | Valuation Area | ||
| MRPArea | MRPArea | MRP Area | ||
| PMRPReceiptCategory | PMRPReceiptCategory | |||
| ReceiptStartDate | ReceiptStartDate | |||
| ReceiptEndDate | ReceiptEndDate | |||
| PMRPSourceOfSupplyInternalID | PMRPSourceOfSupplyInternalID | Source of Supply ID | ||
| RequirementStartDate | RequirementStartDate | |||
| RequirementEndDate | RequirementEndDate | |||
| PMRPReceiptSupplyEndDate | PMRPReceiptSupplyEndDate | |||
| RequiredQuantity | RequiredQuantity | Requirement qty | ||
| doesnotroundupPMRPReceiptQuantity | ||||
| doesnotroundupPullInQuantity | ||||
| AvailableStockQuantity | AvailableStockQuantity | |||
| CoveredByStockQuantity | CoveredByStockQuantity | |||
| UnitOfMeasure | UnitOfMeasure | Unit Protected Qty | ||
| QuotaArrangementPercent | QuotaArrangementPercent | |||
| PMRPRequirementCategory | PMRPRequirementCategory | |||
| TopLevelDemandInternalID | TopLevelDemandInternalID | Top-Level Demand ID | ||
| PMRPBucketCategory | PMRPBucketCategory | |||
| PMRPReferencePlan | PMRPReferencePlan | |||
| OriglQuotaArrangementPercent | OriglQuotaArrangementPercent | |||
| AlternativeItemPriority | AlternativeItemPriority | Priority | ||
| BucketInternalID | _TopLevelDemand | BucketInternalID | Bucket ID | |
| ProductName | ||||
| PlantName | _Plant | PlantName | Plant Name | |
| MRPAreaText | _MRPArea | MRPAreaText | ||
| MRPController | _PMRPProduct | MRPController | MRP Controller | |
| PMRPSourceOfSupplyName | _SourceOfSupply | PMRPSourceOfSupplyName | ||
| MRPControllerName | ||||
| MRPProcedure | _PMRPProduct | MRPProcedure | ||
| InHouseProductionTime | _SourceOfSupply | InHouseProductionTime | InhseProdTime | |
| PlannedDeliveryDuration | _SourceOfSupply | PlannedDeliveryDuration | Pl. Deliv. Time | |
| GoodsReceiptDuration | _SourceOfSupply | GoodsReceiptDuration | GR proc. time | |
| PMRPTimeFrameText | ||||
| NumberOfIssues | ||||
| PMRPMissingReceiptQuantity | ||||
| PMRPDeltaQuantity | ||||
| NumberOfSourcesOfSupply | ||||
| PMRPReceiptCriticality | ||||
| _Product | _Product | |||
| _Plant | _Plant | |||
| _MRPArea | _MRPArea | |||
| _UnitOfMeasure | _UnitOfMeasure | |||
| _ReferencePlan | _ReferencePlan | |||
| _Simulation | _Simulation | |||
| _PMRPProduct | _PMRPProduct | |||
| _SourceOfSupply | _SourceOfSupply | |||
| _StartDateBucket | _StartDateBucket | |||
| _EndDateBucket | _EndDateBucket | |||
| _TopLevelDemand | _TopLevelDemand | |||
| _TopLevelDemandKPI | _TopLevelDemandKPI | |||
| _TopLevelDemandIssue | _TopLevelDemandIssue | |||
| _ReceiptIssue | _ReceiptIssue | |||
| _CapacityDemand | _CapacityDemand | |||
| _AlternativePMRPReceipt | _AlternativePMRPReceipt | |||
| _PMRPRequirementKPI | _PMRPRequirementKPI | |||
| containsnumberofSoS_PMRPReceiptKPI |
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_PMRPRequirementHierarchy.
-- 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: PPMRPRQMTHIER
CREATE VIEW P_PMRPRequirementHierarchy AS
SELECT
rqmt.PMRPSimulation AS PMRPSimulation,
PMRPNodeID,
PMRPParentNodeID,
ReceiptInternalID,
ParentReceiptInternalID,
RequirementInternalID,
Product,
Plant,
MRPArea,
PMRPReceiptCategory,
ReceiptStartDate,
ReceiptEndDate,
PMRPSourceOfSupplyInternalID,
RequirementStartDate,
RequirementEndDate,
PMRPReceiptSupplyEndDate,
RequiredQuantity,
AvailableStockQuantity,
CoveredByStockQuantity,
UnitOfMeasure,
QuotaArrangementPercent,
PMRPRequirementCategory,
TopLevelDemandInternalID,
PMRPBucketCategory,
PMRPReferencePlan,
OriglQuotaArrangementPercent,
AlternativeItemPriority,
_TopLevelDemand.BucketInternalID AS BucketInternalID,
_Product._Text[Language = $session.system_language].ProductName AS ProductName,
_Plant.PlantName AS PlantName,
_MRPArea.MRPAreaText AS MRPAreaText,
_PMRPProduct.MRPController AS MRPController,
_SourceOfSupply.PMRPSourceOfSupplyName AS PMRPSourceOfSupplyName,
_PMRPProduct._PMRPController.MRPControllerName AS MRPControllerName,
_PMRPProduct.MRPProcedure AS MRPProcedure,
_SourceOfSupply.InHouseProductionTime AS InHouseProductionTime,
_SourceOfSupply.PlannedDeliveryDuration AS PlannedDeliveryDuration,
_SourceOfSupply.GoodsReceiptDuration AS GoodsReceiptDuration,
cast('' as abap.char( 20 )) AS PMRPTimeFrameText,
cast(_PMRPReceiptKPI.NumberOfIssues as abap.char(20)) AS NumberOfIssues,
cast(0 as pmrp_missing_quantity) AS PMRPMissingReceiptQuantity,
cast(0 as pmrp_delta_quantity) AS PMRPDeltaQuantity,
cast(0 as pmrp_number_of_sos) AS NumberOfSourcesOfSupply,
cast(0 as pmrp_criticality_indicator) AS PMRPReceiptCriticality
FROM I_PMRPRequirement AS rqmt
LEFT OUTER JOIN P_PMRPRequirementHierarchy AS _ParentRequirement ON _ParentRequirement.PMRPSimulation = PMRPSimulation AND _ParentRequirement.PMRPNodeID = PMRPParentNodeID AND _ParentRequirement.TopLevelDemandInternalID = TopLevelDemandInternalID -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA