C_PMRPReallocation

DDL: C_PMRPREALLOCATION Type: view_entity CONSUMPTION Package: PMRP_UI_SERVICES

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 6 OData services (ASQL_F3934, ASQL_F3952, ASQL_F4157, ...). Part of development package PMRP_UI_SERVICES.

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 (9)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Change In Reallocation 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 (6)

ServiceBindingVersionContractRelease
ASQL_F3934 ASQL_F3934 C2 NOT_RELEASED
ASQL_F3952 ASQL_F3952 C2 NOT_RELEASED
ASQL_F4157 ASQL_F4157 C2 NOT_RELEASED
ASQL_F4450 ASQL_F4450 C2 NOT_RELEASED
ASQL_F4593 ASQL_F4593 C2 NOT_RELEASED
PMRP_SIMU_SERVICEDEF PMRP_SIMUL_SERVICE V2 C1 NOT_TO_BE_RELEASED_STABLE

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.

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]
;