P_ChmlCompsCompSumCT

DDL: P_CHMLCOMPSCOMPSUMCT Type: view CONSUMPTION

P_ChmlCompsCompSumCT is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_ChmlComposition) and exposes 6 fields.

Data Sources (1)

SourceAliasJoin Type
I_ChmlComposition I_ChmlComposition from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PCCCOMPSUMCT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (6)

KeyFieldSource TableSource FieldDescription
ChmlCompositionUUID
ChmlCompositionType _ChmlComposition ChmlCompositionType Legal Area
ChmlCmplncInfoUUID _ChmlComposition ChmlCmplncInfoUUID Chemical Compliance Information PP
ChmlSuplrMatlUUID _ChmlComposition ChmlSuplrMatlUUID Supplier Raw Material
ChmlCompositionStatus _ChmlComposition ChmlCompositionStatus Processing Status
SumComponentCount

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_ChmlCompsCompSumCT.
-- 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 P_ChmlCompsCompSumCT AS
SELECT
  _ChmlComposition.ChmlCompositionType AS ChmlCompositionType,
  _ChmlComposition.ChmlCmplncInfoUUID AS ChmlCmplncInfoUUID,
  _ChmlComposition.ChmlSuplrMatlUUID AS ChmlSuplrMatlUUID,
  _ChmlComposition.ChmlCompositionStatus AS ChmlCompositionStatus,
  count( distinct _Component.ChmlCompUUID ) AS SumComponentCount
FROM I_ChmlComposition
;