R_ProjectDemandMaterial
Project Demand for Material
R_ProjectDemandMaterial is a Basic CDS View that provides data about "Project Demand for Material" in SAP S/4HANA. It reads from 1 data source (materialdemand) and exposes 22 fields with key field ProjectDemandMaterialUUID. It has 8 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| materialdemand | materialdemand | from |
Associations (8)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | R_ProjectDemandMaterialSupply | _MaterialSupply | _MaterialSupply.ProjectDemandMaterialUUID = $projection.ProjectDemandMaterialUUID |
| [1..1] | R_ProjectDemand | _RootTP | $projection.ProjectDemandUUID = _RootTP.ProjectDemandUUID |
| [0..1] | I_ProductStdVH | _MaterialNumber | $projection.Material = _MaterialNumber.Product |
| [1..1] | I_ProductDescription | _MaterialText | $projection.Material = _MaterialText.Product and _MaterialText.Language = $session.system_language |
| [0..1] | I_ProductGroup_2 | _MaterialGroup | $projection.MaterialGroup = _MaterialGroup.ProductGroup |
| [1..1] | I_ProductGroupText_2 | _MaterialGroupText | $projection.MaterialGroup = _MaterialGroupText.ProductGroup and _MaterialGroupText.Language = $session.system_language |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_PurchasingInfoRecord | _PurchasingInfoRecord | $projection.PurchasingInfoRecord = _PurchasingInfoRecord.PurchasingInfoRecord |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_DIMENSION | view | |
| ObjectModel.representativeKey | ProjectDemandMaterialUUID | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| EndUserText.label | Project Demand for Material | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProjectDemandMaterialUUID | projectdemandmaterialuuid | Material Demand UUID | |
| ProjectDemandUUID | projectdemanduuid | Entity GUID | ||
| StorageLocation | storagelocation | StorageLocation | ||
| Material | material | Vehicle Model | ||
| MaterialGroup | materialgroup | Product Group | ||
| Supplier | supplier | Supplier | ||
| PurchasingInfoRecord | purchasinginforecord | Info Record | ||
| PurchaseContract | purchasecontract | Purchasing Doc. | ||
| PurchaseContractItem | purchasecontractitem | Item | ||
| MaterialPlannedDeliveryDurn | materialplanneddeliverydurn | Pl. Deliv. Time | ||
| CreatedByUser | createdbyuser | User Name | ||
| CreationDateTime | creationdatetime | Timestamp | ||
| LastChangedByUser | lastchangedbyuser | User Name | ||
| LastChangeDateTime | lastchangedatetime | Timestamp | ||
| _RootTP | _RootTP | |||
| _MaterialNumber | _MaterialNumber | |||
| _MaterialText | _MaterialText | |||
| _MaterialGroup | _MaterialGroup | |||
| _MaterialGroupText | _MaterialGroupText | |||
| _Supplier | _Supplier | |||
| _MaterialSupply | _MaterialSupply | |||
| _PurchasingInfoRecord | _PurchasingInfoRecord |
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 R_ProjectDemandMaterial.
-- 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 R_ProjectDemandMaterial AS
SELECT
ProjectDemandMaterialUUID,
ProjectDemandUUID,
StorageLocation,
Material,
MaterialGroup,
Supplier,
PurchasingInfoRecord,
PurchaseContract,
PurchaseContractItem,
MaterialPlannedDeliveryDurn,
CreatedByUser,
CreationDateTime,
LastChangedByUser,
LastChangeDateTime
FROM materialdemand
LEFT OUTER JOIN R_ProjectDemandMaterialSupply AS _MaterialSupply ON _MaterialSupply.ProjectDemandMaterialUUID = ProjectDemandMaterialUUID -- association [0..1]
LEFT OUTER JOIN R_ProjectDemand AS _RootTP ON ProjectDemandUUID = _RootTP.ProjectDemandUUID -- association [1..1]
LEFT OUTER JOIN I_ProductStdVH AS _MaterialNumber ON Material = _MaterialNumber.Product -- association [0..1]
LEFT OUTER JOIN I_ProductDescription AS _MaterialText ON Material = _MaterialText.Product AND _MaterialText.Language = $session.system_language -- association [1..1]
LEFT OUTER JOIN I_ProductGroup_2 AS _MaterialGroup ON MaterialGroup = _MaterialGroup.ProductGroup -- association [0..1]
LEFT OUTER JOIN I_ProductGroupText_2 AS _MaterialGroupText ON MaterialGroup = _MaterialGroupText.ProductGroup AND _MaterialGroupText.Language = $session.system_language -- association [1..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_PurchasingInfoRecord AS _PurchasingInfoRecord ON PurchasingInfoRecord = _PurchasingInfoRecord.PurchasingInfoRecord -- association [0..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