I_MRPPlanningSegment
MRP Planning Segment
I_MRPPlanningSegment is a Basic CDS View that provides data about "MRP Planning Segment" in SAP S/4HANA. It reads from 1 data source (pph_cache_plseg) and exposes 23 fields with key fields MRPPlant, Material, MRPArea, MRPPlanningSegmentType, MRPPlanningSegment. It has 5 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| pph_cache_plseg | pph_cache_plseg | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_Plant | _Plant | $projection.MRPPlant = _Plant.Plant |
| [1..1] | I_Material | _Material | $projection.Material = _Material.Material |
| [0..1] | I_MRPArea | _MRPArea | $projection.MRPArea = _MRPArea.MRPArea |
| [0..1] | I_ReservationItem | _Reservation | $projection.Reservation = _Reservation.Reservation and $projection.ReservationItem = _Reservation.ReservationItem and _Reservation.RecordType = '' |
| [0..1] | I_WBSElement | _WBSElement | $projection.WBSElementInternalID = _WBSElement.WBSElementInternalID |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IMRPPLANSEGMENT | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | MRP Planning Segment | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #BASIC | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MRPPlant | mrpplant | Plant | |
| KEY | Material | material | Vehicle Model | |
| KEY | MRPArea | mrparea | MRP Area | |
| KEY | MRPPlanningSegmentType | mrpplanningsegmenttype | MRP segment | |
| KEY | MRPPlanningSegment | mrpplanningsegmentnumber | Plng Segmnt No. | |
| KEY | MaterialShortageProfile | materialshortageprofile | Shortage Prf. | |
| MRPPlanningSegmentExternalCode | mrpplanningsegmentnumberext | Individual Segment | ||
| Reservation | ||||
| ReservationItem | ||||
| MRPAvailableStockQty | mrpavailablestockquantity | DEC 20 3 | ||
| NmbrOfPastDueOpeningDateElmnts | pastdueopeningdateelements | Opening Date in Past | ||
| NumberOfPastDueStartDateElmnts | pastduestartdateelements | Start Date in Past | ||
| NumberOfPastDueEndDateElements | pastduefinishdateelements | End Date in Past | ||
| MaterialHasMRPNote | materialhasmrpnote | Material Note | ||
| MRPMaterialNoteText | ||||
| NumberOfRescheduleInElements | reschedulein | Reschedule In | ||
| NumberOfRescheduleOutElements | rescheduleout | Reschedule Out | ||
| NumberOfCancelProcesses | cancelprocess | Cancel Process | ||
| _Plant | _Plant | |||
| _Material | _Material | |||
| _MRPArea | _MRPArea | |||
| _Reservation | _Reservation | |||
| _WBSElement | _WBSElement |
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_MRPPlanningSegment.
-- 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: IMRPPLANSEGMENT
CREATE VIEW I_MRPPlanningSegment AS
SELECT
MRPPlant,
Material,
MRPArea,
MRPPlanningSegmentType,
mrpplanningsegmentnumber AS MRPPlanningSegment,
MaterialShortageProfile,
mrpplanningsegmentnumberext AS MRPPlanningSegmentExternalCode,
substring(pph_cache_plseg.mrpplanningsegmentnumber, 1, 10) AS Reservation,
substring(pph_cache_plseg.mrpplanningsegmentnumber, 11, 4) AS ReservationItem,
mrpavailablestockquantity AS MRPAvailableStockQty,
pastdueopeningdateelements AS NmbrOfPastDueOpeningDateElmnts,
pastduestartdateelements AS NumberOfPastDueStartDateElmnts,
pastduefinishdateelements AS NumberOfPastDueEndDateElements,
MaterialHasMRPNote,
'' AS MRPMaterialNoteText,
reschedulein AS NumberOfRescheduleInElements,
rescheduleout AS NumberOfRescheduleOutElements,
cancelprocess AS NumberOfCancelProcesses
FROM pph_cache_plseg
LEFT OUTER JOIN I_Plant AS _Plant ON MRPPlant = _Plant.Plant -- association [1..1]
LEFT OUTER JOIN I_Material AS _Material ON Material = _Material.Material -- association [1..1]
LEFT OUTER JOIN I_MRPArea AS _MRPArea ON MRPArea = _MRPArea.MRPArea -- association [0..1]
LEFT OUTER JOIN I_ReservationItem AS _Reservation ON Reservation = _Reservation.Reservation AND ReservationItem = _Reservation.ReservationItem AND _Reservation.RecordType = '' -- association [0..1]
LEFT OUTER JOIN I_WBSElement AS _WBSElement ON WBSElementInternalID = _WBSElement.WBSElementInternalID -- 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