P_AssignedMaterialsCount

DDL: P_ASSIGNEDMATERIALSCOUNT SQL: PASSGDMATLCNT Type: view CONSUMPTION

Number og assigned materials in a Materialgroup

P_AssignedMaterialsCount is a Consumption CDS View that provides data about "Number og assigned materials in a Materialgroup" in SAP S/4HANA. It reads from 1 data source (I_Material) and exposes 2 fields with key field MaterialGroup.

Data Sources (1)

SourceAliasJoin Type
I_Material I_Material from

Annotations (6)

NameValueLevelField
VDM.private true view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PASSGDMATLCNT view
EndUserText.label Number og assigned materials in a Materialgroup view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY MaterialGroup I_Material MaterialGroup Product Group
AssignedMaterialsCount

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 P_AssignedMaterialsCount.
-- 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: PASSGDMATLCNT

CREATE VIEW P_AssignedMaterialsCount AS
SELECT
  I_Material.MaterialGroup AS MaterialGroup,
  count(*) AS AssignedMaterialsCount
FROM I_Material
;