C_PMRPReallocation

DDL: C_PMRPREALLOCATION SQL: CPMRPCHGINRA Type: view CONSUMPTION

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)

SourceAliasJoin Type
I_PMRPReceipt I_PMRPReceipt from

Associations (5)

CardinalityTargetAliasCondition
[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)

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

ServiceBindingVersionContractRelease
PMRP_SIMU_SERVICEDEF PMRP_SIMUL_SERVICE V2 C1 NOT_RELEASED

Fields (14)

KeyFieldSource TableSource FieldDescription
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]
;