C_PMRPReallocation
Change In Reallocation
C_PMRPReallocation is a Consumption CDS View that provides data about "Change In Reallocation" in SAP S/4HANA. It reads from 1 data source (I_PMRPReceipt) and exposes 14 fields with key fields PMRPSimulation, ReceiptInternalID, TopLevelProduct. It has 5 associations to related views. It is exposed through 1 OData service (PMRP_SIMU_SERVICEDEF).
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PMRPReceipt | I_PMRPReceipt | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_MaterialText | _MaterialText | $projection.Product = _MaterialText.Material and _MaterialText.Language = $session.system_language |
| [1..1] | I_PMRPSourceOfSupply | _SoSText | $projection.PMRPSourceOfSupplyInternalID = _SoSText.PMRPSourceOfSupplyInternalID |
| [1..1] | I_PlantStdVH | _PlantTxt | $projection.Plant = _PlantTxt.Plant |
| [1..1] | I_PMRPSimlnTopLevelDemand | _SimlnTopLevelDemand | $projection.PMRPSimulation = _SimlnTopLevelDemand.PMRPSimulation and $projection.TopLevelDemandInternalID = _SimlnTopLevelDemand.TopLevelDemandInternalID |
| [1..1] | I_PMRPReceiptPeriod | _Timeframe | $projection.PMRPSimulation = _Timeframe.PMRPSimulation and $projection.ReceiptInternalID = _Timeframe.ReceiptInternalID |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPMRPCHGINRA | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Change In Reallocation | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.personalData.blocking | #REQUIRED | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| PMRP_SIMU_SERVICEDEF | PMRP_SIMUL_SERVICE | V2 | C1 | NOT_RELEASED |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PMRPSimulation | PMRPSimulation | Simulation ID | |
| KEY | ReceiptInternalID | ReceiptInternalID | Receipt ID | |
| KEY | TopLevelProduct | _SimlnTopLevelDemand | TopLevelProduct | |
| MaterialName | ||||
| TopLevelDemandInternalID | TopLevelDemandInternalID | Top-Level Demand ID | ||
| Product | Product | Product Sold | ||
| Plant | Plant | Valuation Area | ||
| PlantName | _PlantTxt | PlantName | Plant Name | |
| ReceiptStartDate | ReceiptStartDate | |||
| ReceiptEndDate | ReceiptEndDate | |||
| PullInQuantity | PullInQuantity | |||
| UnitOfMeasure | UnitOfMeasure | Unit Protected Qty | ||
| PMRPSourceOfSupplyInternalID | PMRPSourceOfSupplyInternalID | Source of Supply ID | ||
| PMRPSourceOfSupplyName | _SoSText | PMRPSourceOfSupplyName |
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 C_PMRPReallocation.
-- 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: CPMRPCHGINRA
CREATE VIEW C_PMRPReallocation AS
SELECT
PMRPSimulation,
ReceiptInternalID,
_SimlnTopLevelDemand.TopLevelProduct AS TopLevelProduct,
_SimlnTopLevelDemand._PMRPProduct.MaterialName AS MaterialName,
TopLevelDemandInternalID,
Product,
Plant,
_PlantTxt.PlantName AS PlantName,
ReceiptStartDate,
ReceiptEndDate,
PullInQuantity,
UnitOfMeasure,
PMRPSourceOfSupplyInternalID,
_SoSText.PMRPSourceOfSupplyName AS PMRPSourceOfSupplyName
FROM I_PMRPReceipt
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON Product = _MaterialText.Material AND _MaterialText.Language = $session.system_language -- association [1..1]
LEFT OUTER JOIN I_PMRPSourceOfSupply AS _SoSText ON PMRPSourceOfSupplyInternalID = _SoSText.PMRPSourceOfSupplyInternalID -- association [1..1]
LEFT OUTER JOIN I_PlantStdVH AS _PlantTxt ON Plant = _PlantTxt.Plant -- association [1..1]
LEFT OUTER JOIN I_PMRPSimlnTopLevelDemand AS _SimlnTopLevelDemand ON PMRPSimulation = _SimlnTopLevelDemand.PMRPSimulation AND TopLevelDemandInternalID = _SimlnTopLevelDemand.TopLevelDemandInternalID -- association [1..1]
LEFT OUTER JOIN I_PMRPReceiptPeriod AS _Timeframe ON PMRPSimulation = _Timeframe.PMRPSimulation AND ReceiptInternalID = _Timeframe.ReceiptInternalID -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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