P_NmbrOfChmlCompInCmpst
P_NmbrOfChmlCompInCmpst is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (I_ChmlComponent, I_ChmlComposition) and exposes 5 fields.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_ChmlComponent | _Component | inner |
| I_ChmlComposition | _Composition | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PNCHMCMPIC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| ChmlCmplncInfoUUID | I_ChmlComponent | ChmlCmplncInfoUUID | ||
| ChmlCompositionUUID | I_ChmlComponent | ChmlCompositionUUID | ||
| ChmlCompositionType | I_ChmlComposition | ChmlCompositionType | ||
| ChmlCompositionStatus | I_ChmlComposition | ChmlCompositionStatus | ||
| NmbrOfChmlComps |
@AbapCatalog:
{
-- SQL view name (16 characters)
sqlViewName: 'PNCHMCMPIC',
--If it's true, the filter conditions are compared and, if they match, the associated join expression is evaluated only once
compiler.compareFilter: true
}
--Access Control: Authorizations Checks
@AccessControl:
{
authorizationCheck: #NOT_REQUIRED
}
--Client Handling of the view
@ClientHandling.algorithm: #SESSION_VARIABLE
--VDM view type
@VDM.viewType: #BASIC
@VDM.private: true
define view P_NmbrOfChmlCompInCmpst
as select from I_ChmlComposition as _Composition
inner join I_ChmlComponent as _Component
on _Component.ChmlCompositionUUID = _Composition.ChmlCompositionUUID
{
_Component.ChmlCmplncInfoUUID,
_Component.ChmlCompositionUUID,
_Composition.ChmlCompositionType,
_Composition.ChmlCompositionStatus,
count(distinct _Component.ChmlCompUUID) as NmbrOfChmlComps
}
group by _Component.ChmlCmplncInfoUUID,
_Component.ChmlCompositionUUID,
_Composition.ChmlCompositionType,
_Composition.ChmlCompositionStatus
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA