I_DemandDrivenMaterial
Demand Driven Material Data
I_DemandDrivenMaterial is a Composite CDS View that provides data about "Demand Driven Material Data" in SAP S/4HANA. It reads from 1 data source (PPH_DD_MAT) and exposes 15 fields with key fields Material, Plant, MRPArea. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| PPH_DD_MAT | PPH_DD_MAT | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ProfileAssgmtToPlant | _PlantProfile | pph_ddl_mat.werks = _PlantProfile.Plant |
| [1..1] | I_Material | _Material | pph_ddl_mat.matnr = _Material.Material |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IDDMATERIAL | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| EndUserText.label | Demand Driven Material Data | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Material | pph_ddl_mat | matnr | Vehicle Model |
| KEY | Plant | pph_ddl_mat | werks | Receiving Plant |
| KEY | MRPArea | pph_ddl_mat | berid | Single-Character Flag |
| MRPController | pph_ddl_mat | dispo | MRP Controller | |
| MRPGroup | pph_ddl_mat | disgr | MRP Group | |
| BaseUnitofMeasure | pph_ddl_mat | meins | Valuation Unit | |
| MaterialBaseUnit | _Material | MaterialBaseUnit | Valuation Unit | |
| MRPProcedure | pph_ddl_mat | disvf | MRP Procedure | |
| MRPType | pph_ddl_mat | dismm | MRP Type | |
| MaterialSafetyStockQty | pph_ddl_mat | eisbe | Safety Stock | |
| MaterialSafetyStockTodayQty | pph_ddl_mat | eisbe_today | ||
| MaterialMaxStockLevelQuantity | pph_ddl_mat | mabst | Max.Stock Level | |
| ReorderThresholdQuantity | ||||
| quan133endasThresholdPercentage | ||||
| MaterialGroup | pph_ddl_mat | matkl | Product Sold Group |
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 I_DemandDrivenMaterial.
-- 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: IDDMATERIAL
CREATE VIEW I_DemandDrivenMaterial AS
SELECT
pph_ddl_mat.matnr AS Material,
pph_ddl_mat.werks AS Plant,
pph_ddl_mat.berid AS MRPArea,
pph_ddl_mat.dispo AS MRPController,
pph_ddl_mat.disgr AS MRPGroup,
pph_ddl_mat.meins AS BaseUnitofMeasure,
_Material.MaterialBaseUnit AS MaterialBaseUnit,
pph_ddl_mat.disvf AS MRPProcedure,
pph_ddl_mat.dismm AS MRPType,
pph_ddl_mat.eisbe AS MaterialSafetyStockQty,
pph_ddl_mat.eisbe_today AS MaterialSafetyStockTodayQty,
pph_ddl_mat.mabst AS MaterialMaxStockLevelQuantity,
cast(pph_ddl_mat.minbe as minbe) AS ReorderThresholdQuantity,
case when _PlantProfile.OnHandAlertThldFctr>0 then pph_ddl_mat.eisbe * cast (_PlantProfile.OnHandAlertThldFctr as abap.quan(13,3)) else pph_ddl_mat.eisbe * cast(division(50,100,2) as abap.quan(13,3)) end as ThresholdPercentage AS quan133endasThresholdPercentage,
pph_ddl_mat.matkl AS MaterialGroup
FROM PPH_DD_MAT
LEFT OUTER JOIN I_ProfileAssgmtToPlant AS _PlantProfile ON pph_ddl_mat.werks = _PlantProfile.Plant -- association [0..1]
LEFT OUTER JOIN I_Material AS _Material ON pph_ddl_mat.matnr = _Material.Material -- 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