C_PMRPChangeInDemand
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. It is exposed through 6 OData services (ASQL_F3934, ASQL_F3952, ASQL_F4157, ...). Part of development package PMRP_UI_SERVICES.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_PMRPSimlnTopLevelDemandTP | I_PMRPSimlnTopLevelDemandTP | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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 (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| EndUserText.label | Change In Demand | 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 |
OData Services (6)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| 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 (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | PMRPSimulation | PMRPSimulation | Simulation ID | |
| KEY | TopLevelDemandInternalID | TopLevelDemandInternalID | Top-Level Demand ID | |
| PMRPReferencePlan | PMRPReferencePlan | |||
| TopLevelProduct | TopLevelProduct | |||
| TopLevelMRPArea | TopLevelMRPArea | |||
| 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.
CREATE VIEW C_PMRPChangeInDemand AS
SELECT
PMRPSimulation,
TopLevelDemandInternalID,
PMRPReferencePlan,
TopLevelProduct,
TopLevelMRPArea,
I_PMRPSimlnTopLevelDemandTP._PMRPProduct.MRPController AS MRPController,
I_PMRPSimlnTopLevelDemandTP._PMRPProduct._PMRPController.MRPControllerName AS MRPControllerName,
_TopLevelProductText.MaterialName AS MaterialName,
case when I_PMRPSimlnTopLevelDemandTP._Bucket.PMRPBucketCategory = 'M' then CONCAT_WITH_SPACE ( _Bucket._CalendarMonth._Text[Language = $session.system_language].CalendarMonthName , I_PMRPSimlnTopLevelDemandTP._Bucket.PMRPBucketYear ,1 ) else CONCAT_WITH_SPACE ( _Bucket._PMRPBucketCategory._Text[Language = $session.system_language].PMRPBucketCategoryText ,CONCAT_WITH_SPACE( CONCAT(I_PMRPSimlnTopLevelDemandTP._Bucket.PMRPBucketPeriod ,','), I_PMRPSimlnTopLevelDemandTP._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]
;
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