R_ProjectDemandMaterial

DDL: R_PROJECTDEMANDMATERIAL Type: view_entity BASIC

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)

SourceAliasJoin Type
materialdemand materialdemand from

Associations (8)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;