I_ProjectDemandCount

DDL: I_PROJECTDEMANDCOUNT SQL: IPROJDMNCOUNT Type: view COMPOSITE

Material and Service demand count for work package

I_ProjectDemandCount is a Composite CDS View that provides data about "Material and Service demand count for work package" in SAP S/4HANA. It reads from 1 data source (I_PPM_Task) and exposes 3 fields with key field ProjectElementUUID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_PPM_Task Task from

Associations (2)

CardinalityTargetAliasCondition
[0..*] P_ProjectDemandMaterials _material Task.TaskUUID = _material.ReferencedObjectUUID
[0..*] P_ProjectDemandServices _service Task.TaskUUID = _service.ReferencedObjectUUID

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName IPROJDMNCOUNT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Material and Service demand count for work package view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY ProjectElementUUID TaskUUID UUID 22 char.
NmbrOfProjDmndMaterialRequests
NmbrOfProjDmndServiceRequests

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_ProjectDemandCount.
-- 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: IPROJDMNCOUNT

CREATE VIEW I_ProjectDemandCount AS
SELECT
  TaskUUID AS ProjectElementUUID,
  count(distinct _material.ProjectDemandUUID) AS NmbrOfProjDmndMaterialRequests,
  count(distinct _service.ProjectDemandUUID) AS NmbrOfProjDmndServiceRequests
FROM I_PPM_Task AS Task
LEFT OUTER JOIN P_ProjectDemandMaterials AS _material ON Task.TaskUUID = _material.ReferencedObjectUUID  -- association [0..*]
LEFT OUTER JOIN P_ProjectDemandServices AS _service ON Task.TaskUUID = _service.ReferencedObjectUUID  -- association [0..*]
;