I_PlantMaterialCount

DDL: I_PLANTMATERIALCOUNT SQL: IPLANTMATCNT Type: view COMPOSITE

Count of materials in plant

I_PlantMaterialCount is a Composite CDS View that provides data about "Count of materials in plant" in SAP S/4HANA. It reads from 1 data source (I_MaterialPlant) and exposes 2 fields with key field Plant.

Data Sources (1)

SourceAliasJoin Type
I_MaterialPlant I_MaterialPlant from

Annotations (13)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.sqlViewName IPLANTMATCNT view
EndUserText.label Count of materials in plant view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private false view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
Search.searchable false view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY Plant Plant Valuation Area
NumberOfMaterialsInPlant

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_PlantMaterialCount.
-- 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: IPLANTMATCNT

CREATE VIEW I_PlantMaterialCount AS
SELECT
  Plant,
  count(*) AS NumberOfMaterialsInPlant
FROM I_MaterialPlant
;