C_ProductDailyDemandChartTP
Demand Chart
C_ProductDailyDemandChartTP is a Consumption CDS View that provides data about "Demand Chart" in SAP S/4HANA. It reads from 1 data source (I_ProdDailyDemandChartTP) and exposes 25 fields with key fields Material, Plant, MRPArea, ProposalStartDate, ProposalVersion. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ProdDailyDemandChartTP | I_ProdDailyDemandChartTP | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_ProductBufferLevelMgmtTP | _ProposalHeaderTP | $projection.Material = _ProposalHeaderTP.Material and $projection.Plant = _ProposalHeaderTP.Plant and $projection.MRPArea = _ProposalHeaderTP.MRPArea and $projection.ProposalStartDate = _ProposalHeaderTP.ProposalStartDate and $projection.ProposalVersion = _ProposalHeaderTP.ProposalVersion |
| [1..1] | C_MaterialDailyDemand | _MatDailyDemand | $projection.Material = _MatDailyDemand.Material and $projection.Plant = _MatDailyDemand.Plant and $projection.MRPArea = _MatDailyDemand.MRPArea and $projection.DemandPostingDate = _MatDailyDemand.PostingDate |
| [1..1] | I_ProdBufLvlPrpsl | _ProposalHeader | $projection.Material = _ProposalHeader.Material and $projection.Plant = _ProposalHeader.Plant and $projection.MRPArea = _ProposalHeader.MRPArea and $projection.ProposalStartDate = _ProposalHeader.ProposalStartDate and $projection.ProposalVersion = _ProposalHeader.ProposalVersion |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CPRODDMNDCHARTTP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Demand Chart | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.representativeKey | DemandPostingDate | view | |
| ObjectModel.compositionRoot | false | view | |
| ObjectModel.draftEnabled | true | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (25)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | Material | Vehicle Model | |
| KEY | Plant | Plant | Valuation Area | |
| KEY | MRPArea | MRPArea | MRP Area | |
| KEY | ProposalStartDate | ProposalStartDate | ||
| KEY | ProposalVersion | ProposalVersion | ||
| KEY | DemandPostingDate | DemandPostingDate | ||
| DemandAdjustmentFactor | DemandAdjustmentFactor | Demand Adjustment Factor | ||
| AverageDailyUsage | AverageDailyUsage | |||
| AdjustedAverageDailyUsage | AdjustedAverageDailyUsage | Adjusted Average Daily Usage | ||
| AvgDailyUsageUnit | AvgDailyUsageUnit | |||
| AverageDailyUsageMode | _ProposalHeader | AverageDailyUsageMode | ||
| AvgDailyUsageHorizonStartDate | ||||
| AvgDailyUsageHorizonEndDate | ||||
| QuantityInBaseUnit | _MatDailyDemand | QuantityInBaseUnit | Goods Issue Quantity | |
| PlndIndepRqmtQuantity | _MatDailyDemand | PlndIndepRqmtQuantity | Planned Independent Requirement Quantity | |
| DailyPlndIndepRqmtQuantity | _MatDailyDemand | DailyPlndIndepRqmtQuantity | ||
| WeeklyPlndIndepRqmtQtyPerDay | _MatDailyDemand | WeeklyPlndIndepRqmtQtyPerDay | ||
| MonthlyPlndIndepRqmtQtyPerDay | _MatDailyDemand | MonthlyPlndIndepRqmtQtyPerDay | ||
| TotalWeeklyPlndIndepRqmtQty | _MatDailyDemand | TotalWeeklyPlndIndepRqmtQty | ||
| TotalMonthlyPlndIndepRqmtQty | _MatDailyDemand | TotalMonthlyPlndIndepRqmtQty | ||
| MaterialBaseUnit | _MatDailyDemand | MaterialBaseUnit | Valuation Unit | |
| ProductAuthorizationGroup | I_ProdDailyDemandChartTP | ProductAuthorizationGroup | ||
| ProductGroupAuthorizationGroup | I_ProdDailyDemandChartTP | ProductGroupAuthorizationGroup | ||
| ProductTypeAuthorizationGroup | I_ProdDailyDemandChartTP | ProductTypeAuthorizationGroup | ||
| _ProposalHeaderTP | _ProposalHeaderTP |
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_ProductDailyDemandChartTP.
-- 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: CPRODDMNDCHARTTP
CREATE VIEW C_ProductDailyDemandChartTP AS
SELECT
Material,
Plant,
MRPArea,
ProposalStartDate,
ProposalVersion,
DemandPostingDate,
DemandAdjustmentFactor,
AverageDailyUsage,
AdjustedAverageDailyUsage,
AvgDailyUsageUnit,
_ProposalHeader.AverageDailyUsageMode AS AverageDailyUsageMode,
cast('' as sydatum) AS AvgDailyUsageHorizonStartDate,
cast('' as sydatum) AS AvgDailyUsageHorizonEndDate,
_MatDailyDemand.QuantityInBaseUnit AS QuantityInBaseUnit,
_MatDailyDemand.PlndIndepRqmtQuantity AS PlndIndepRqmtQuantity,
_MatDailyDemand.DailyPlndIndepRqmtQuantity AS DailyPlndIndepRqmtQuantity,
_MatDailyDemand.WeeklyPlndIndepRqmtQtyPerDay AS WeeklyPlndIndepRqmtQtyPerDay,
_MatDailyDemand.MonthlyPlndIndepRqmtQtyPerDay AS MonthlyPlndIndepRqmtQtyPerDay,
_MatDailyDemand.TotalWeeklyPlndIndepRqmtQty AS TotalWeeklyPlndIndepRqmtQty,
_MatDailyDemand.TotalMonthlyPlndIndepRqmtQty AS TotalMonthlyPlndIndepRqmtQty,
_MatDailyDemand.MaterialBaseUnit AS MaterialBaseUnit,
I_ProdDailyDemandChartTP.ProductAuthorizationGroup AS ProductAuthorizationGroup,
I_ProdDailyDemandChartTP.ProductGroupAuthorizationGroup AS ProductGroupAuthorizationGroup,
I_ProdDailyDemandChartTP.ProductTypeAuthorizationGroup AS ProductTypeAuthorizationGroup
FROM I_ProdDailyDemandChartTP
LEFT OUTER JOIN C_ProductBufferLevelMgmtTP AS _ProposalHeaderTP ON Material = _ProposalHeaderTP.Material AND Plant = _ProposalHeaderTP.Plant AND MRPArea = _ProposalHeaderTP.MRPArea AND ProposalStartDate = _ProposalHeaderTP.ProposalStartDate AND ProposalVersion = _ProposalHeaderTP.ProposalVersion -- association [1..1]
LEFT OUTER JOIN C_MaterialDailyDemand AS _MatDailyDemand ON Material = _MatDailyDemand.Material AND Plant = _MatDailyDemand.Plant AND MRPArea = _MatDailyDemand.MRPArea AND DemandPostingDate = _MatDailyDemand.PostingDate -- association [1..1]
LEFT OUTER JOIN I_ProdBufLvlPrpsl AS _ProposalHeader ON Material = _ProposalHeader.Material AND Plant = _ProposalHeader.Plant AND MRPArea = _ProposalHeader.MRPArea AND ProposalStartDate = _ProposalHeader.ProposalStartDate AND ProposalVersion = _ProposalHeader.ProposalVersion -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- 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