I_MRPAreaPlanningFileEntry
MRP Area Planning File Entry
I_MRPAreaPlanningFileEntry (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Manufacturing
I_MRPAreaPlanningFileEntry is a Basic CDS View (Fact) that provides data about "MRP Area Planning File Entry" in SAP S/4HANA. It reads from 1 data source (pph_dbvm) and exposes 21 fields with key fields Material, Plant, MRPArea, MRPPlanningScenario. It has 5 associations to related views.
SAP Help Documentation
| Category | CDS Views for Material Requirements Planning |
|---|---|
| Data Category | FACT |
| Status | Released |
Purpose
This CDS view selects planning file entries of an MRP area (table pph_dbvm ). This CDS view provides the data to answer the following business questions: Which planning file entries exist for an MRP area of a material? When was the last MRP run for a material in an MRP area carried out? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization object assigned: M_MTDI_ORG (Organizational Levels for Material Requirements Planning, authorization for activity categories A: “Stock/requirements list” or B: “Total planning” or E: “Single-item planning”)
Structure
Further important fields Important fields in this view include the following: Field Name Description Material Material Plant MRP Area Plant MRPArea MRP Area MRPPlanningScenario Planning Scenario MatlIsConsideredInNetChgPlng Indicator: Net Change Planning MatlNextTimePhasedPlanningDate Next Time-Phased Planning Date MaterialLastMRPDateTime MRP Timestamp MatlLastMRPRelevantChgDateTime Update Time Stamp PlanningFileEntryMessageClass Message identification PlanningFileEntryMessageType Message Type PlanningFileEntryMessageNumber System Message Number PlanningFileEntryMsgVarbl1Text Message variable 01 PlanningFileEntryMsgVarbl2Text Message variable 02 PlanningFileEntryMsgVarbl3Text Message variable 03 PlanningFileEntryMsgVarbl4Text Message variable 04 Depending on your configuration, some of the fields included in this CDS view may not expose any data.
Constraints
This CDS view selects only planning file entries that are relevant for automatic MRP and are not assigned to a subcontracting MRP area without MRP elements.
This CDS view selects planning file entries of an MRP area (table pph_dbvm ). This CDS view provides the data to answer the following business questions: Which planning file entries exist for an MRP area of a material? When was the last MRP run for a material in an MRP area carried out? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .
Prerequisites
Authorizations Users who want to use this CDS view must have the following authorization object assigned: M_MTDI_ORG (Organizational Levels for Material Requirements Planning, authorization for activity categories A: “Stock/requirements list” or B: “Total planning” or E: “Single-item planning”)
Structure
Further important fields Important fields in this view include the following: Field Name Description Material Material Plant MRP Area Plant MRPArea MRP Area MRPPlanningScenario Planning Scenario MatlIsConsideredInNetChgPlng Indicator: Net Change Planning MatlNextTimePhasedPlanningDate Next Time-Phased Planning Date MaterialLastMRPDateTime MRP Timestamp MatlLastMRPRelevantChgDateTime Update Time Stamp PlanningFileEntryMessageClass Message identification PlanningFileEntryMessageType Message Type PlanningFileEntryMessageNumber System Message Number PlanningFileEntryMsgVarbl1Text Message variable 01 PlanningFileEntryMsgVarbl2Text Message variable 02 PlanningFileEntryMsgVarbl3Text Message variable 03 PlanningFileEntryMsgVarbl4Text Message variable 04 Depending on your configuration, some of the fields included in this CDS view may not expose any data.
Constraints
This CDS view selects only planning file entries that are relevant for automatic MRP and are not assigned to a subcontracting MRP area without MRP elements.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Manufacturing |
| Application Component | PP-VDM |
| Capabilities | Data Source in SQL Select, Data Source for Defining CDS Entities |
| Package | Manufacturing for SAP S/4HANA Cloud Private Edition |
| Description | <p>This CDS view selects planning file entries of an MRP area (table pph_dbvm). </p> This CDS view provides the data to answer the following business questions:<ul> <li><p>Which planning file entries exist for an MRP area of a material?</p></li> <li><p>When was the last MRP run for a material in an MRP area carried out?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p> |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| pph_dbvm | d | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Product | _Material | $projection.Material = _Material.Product |
| [1..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [1..1] | I_ProductPlantBasic | _MaterialPlant | $projection.Material = _MaterialPlant.Product and $projection.Plant = _MaterialPlant.Plant |
| [1..1] | I_MRPArea | _MRPArea | $projection.MRPArea = _MRPArea.MRPArea |
| [0..1] | I_MRPPlanningScenario | _PlanningScenario | $projection.MRPPlanningScenario = _PlanningScenario.MRPPlanningScenario |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMRPAREAPFE | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| Analytics.dataCategory | #FACT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.modelingPattern | #NONE | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| VDM.viewType | #BASIC | view | |
| EndUserText.label | MRP Area Planning File Entry | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | pph_dbvm | matnr | Material Number |
| KEY | Plant | pph_dbvm | werks | Receiving Plant |
| KEY | MRPArea | pph_dbvm | berid | Single-Character Flag |
| KEY | MRPPlanningScenario | pph_dbvm | plscn | Planning Scenario in Long-Term Planning |
| MatlIsConsideredInNetChgPlng | pph_dbvm | gsaen | Net Change Planning Indicator | |
| PlanningFileEntryCreationDate | ||||
| MatlNextTimePhasedPlanningDate | Date for Time-Phased Planning | |||
| MaterialLastMRPDateTime | pph_dbvm | dstmp | Timestamp of last MRP for Planning File Entry | |
| MatlLastMRPRelevantChgDateTime | pph_dbvm | lstmp | Time Stamp of First MRP-Relevant Change | |
| PlanningFileEntryMessageClass | msgid | Message identification | ||
| PlanningFileEntryMessageType | msgty | Msg.Type (E,I,W..) | ||
| PlanningFileEntryMessageNumber | msgno | System Message Number | ||
| PlanningFileEntryMsgVarbl1Text | msgv1 | Message variable 01 | ||
| PlanningFileEntryMsgVarbl2Text | msgv2 | Message variable 02 | ||
| PlanningFileEntryMsgVarbl3Text | msgv3 | Message variable 03 | ||
| PlanningFileEntryMsgVarbl4Text | msgv4 | Message variable 04 | ||
| _Plant | _Plant | |||
| _Material | _Material | |||
| _MaterialPlant | _MaterialPlant | |||
| _MRPArea | _MRPArea | |||
| _PlanningScenario | _PlanningScenario |
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 I_MRPAreaPlanningFileEntry.
-- 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: IMRPAREAPFE
CREATE VIEW I_MRPAreaPlanningFileEntry AS
SELECT
d.matnr AS Material,
d.werks AS Plant,
d.berid AS MRPArea,
d.plscn AS MRPPlanningScenario,
d.gsaen AS MatlIsConsideredInNetChgPlng,
cast(d.rhytd as vdm_rhytd preserving type) AS MatlNextTimePhasedPlanningDate,
d.dstmp AS MaterialLastMRPDateTime,
d.lstmp AS MatlLastMRPRelevantChgDateTime,
msgid AS PlanningFileEntryMessageClass,
msgty AS PlanningFileEntryMessageType,
msgno AS PlanningFileEntryMessageNumber,
msgv1 AS PlanningFileEntryMsgVarbl1Text,
msgv2 AS PlanningFileEntryMsgVarbl2Text,
msgv3 AS PlanningFileEntryMsgVarbl3Text,
msgv4 AS PlanningFileEntryMsgVarbl4Text
FROM pph_dbvm AS d
LEFT OUTER JOIN I_Product AS _Material ON Material = _Material.Product -- association [1..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [1..1]
LEFT OUTER JOIN I_ProductPlantBasic AS _MaterialPlant ON Material = _MaterialPlant.Product AND Plant = _MaterialPlant.Plant -- association [1..1]
LEFT OUTER JOIN I_MRPArea AS _MRPArea ON MRPArea = _MRPArea.MRPArea -- association [1..1]
LEFT OUTER JOIN I_MRPPlanningScenario AS _PlanningScenario ON MRPPlanningScenario = _PlanningScenario.MRPPlanningScenario -- 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