C_PMRPChangeInDemand

DDL: C_PMRPCHANGEINDEMAND SQL: CPMRPCHGINDMND Type: view CONSUMPTION

Change In Demand

C_PMRPChangeInDemand is a Consumption CDS View that provides data about "Change In Demand" in SAP S/4HANA. It reads from 1 data source (I_PMRPSimlnTopLevelDemandTP) and exposes 16 fields with key fields PMRPSimulation, TopLevelDemandInternalID. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_PMRPSimlnTopLevelDemandTP I_PMRPSimlnTopLevelDemandTP from

Associations (3)

CardinalityTargetAliasCondition
[1..1] C_PMRPSimulation _PMRPSimulation $projection.PMRPSimulation = _PMRPSimulation.PMRPSimulation
[1..1] I_PlantStdVH _PlantTxt $projection.TopLevelPlant = _PlantTxt.Plant
[1..1] I_MaterialText _TopLevelProductText $projection.TopLevelProduct = _TopLevelProductText.Material and _TopLevelProductText.Language = $session.system_language

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CPMRPCHGINDMND view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Change In Demand view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #CONSUMPTION view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY PMRPSimulation PMRPSimulation Simulation ID
KEY TopLevelDemandInternalID TopLevelDemandInternalID Top-Level Demand ID
PMRPReferencePlan PMRPReferencePlan
TopLevelProduct TopLevelProduct
TopLevelMRPArea TopLevelMRPArea
MRPController _PMRPProduct MRPController MRP Controller
MRPControllerName
MaterialName _TopLevelProductText MaterialName Material Description
PMRPBucketYear11endasPMRPBucketName Calendar Period
TopLevelPlant TopLevelPlant Plant
PlantName _PlantTxt PlantName Plant Name
ReferenceRequiredQuantity ReferenceRequiredQuantity
SimulatedRequiredQuantity SimulatedRequiredQuantity
DeltaQuantity
UnitOfMeasure UnitOfMeasure UoM
_PMRPSimulation _PMRPSimulation

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_PMRPChangeInDemand.
-- 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: CPMRPCHGINDMND

CREATE VIEW C_PMRPChangeInDemand AS
SELECT
  PMRPSimulation,
  TopLevelDemandInternalID,
  PMRPReferencePlan,
  TopLevelProduct,
  TopLevelMRPArea,
  _PMRPProduct.MRPController AS MRPController,
  _PMRPProduct._PMRPController.MRPControllerName AS MRPControllerName,
  _TopLevelProductText.MaterialName AS MaterialName,
  case when _Bucket.PMRPBucketCategory = 'M' then CONCAT_WITH_SPACE ( _Bucket._CalendarMonth._Text[Language = $session.system_language].CalendarMonthName , _Bucket.PMRPBucketYear ,1 ) else CONCAT_WITH_SPACE ( _Bucket._PMRPBucketCategory._Text[Language = $session.system_language].PMRPBucketCategoryText ,CONCAT_WITH_SPACE( CONCAT(_Bucket.PMRPBucketPeriod ,','), _Bucket.PMRPBucketYear ,1 ) ,1 ) end as PMRPBucketName AS PMRPBucketYear11endasPMRPBucketName,
  TopLevelPlant,
  _PlantTxt.PlantName AS PlantName,
  ReferenceRequiredQuantity,
  SimulatedRequiredQuantity,
  cast (( ReferenceRequiredQuantity - SimulatedRequiredQuantity ) as pmrp_req_quantity ) AS DeltaQuantity,
  UnitOfMeasure
FROM I_PMRPSimlnTopLevelDemandTP
LEFT OUTER JOIN C_PMRPSimulation AS _PMRPSimulation ON PMRPSimulation = _PMRPSimulation.PMRPSimulation  -- association [1..1]
LEFT OUTER JOIN I_PlantStdVH AS _PlantTxt ON TopLevelPlant = _PlantTxt.Plant  -- association [1..1]
LEFT OUTER JOIN I_MaterialText AS _TopLevelProductText ON TopLevelProduct = _TopLevelProductText.Material AND _TopLevelProductText.Language = $session.system_language  -- association [1..1]
;