P_ChmlCmplncInfoPckgdProdCnt
Count Compliance Requirements of all Purposes per Product
P_ChmlCmplncInfoPckgdProdCnt is a Consumption CDS View that provides data about "Count Compliance Requirements of all Purposes per Product" in SAP S/4HANA. It reads from 1 data source (I_ChmlCmplncInfo) and exposes 1 field. Part of development package EHFND_BO_CCI.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_ChmlCmplncInfo | ChmlCmplInfo | from |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | true | view | |
| ObjectModel.representativeKey | ChmlCmplncInfoUUID | view |
Fields (1)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| ChmlCmplncInfoUUID |
//@EndUserText.label: 'Count Compliance Requirements of all Purposes per Product'
@AccessControl:
{
authorizationCheck: #NOT_REQUIRED
}
--VDM view type
@VDM.viewType: #CONSUMPTION
@VDM.private: true
@ObjectModel.representativeKey: 'ChmlCmplncInfoUUID'
define view entity P_ChmlCmplncInfoPckgdProdCnt
--Select data from basic view 'Chemical compliance information'
as select from I_ChmlCmplncInfo as ChmlCmplInfo
--Join master table
join C_ChmlCmplncPckgdProdAssgmt as ChmlCmplncPckgdProdAssgmt on ChmlCmplInfo.ChmlCmplncInfoUUID = ChmlCmplncPckgdProdAssgmt.ChmlCmplncProdUUID
{
--UUID of chemical compliance information
key ChmlCmplInfo.ChmlCmplncInfoUUID,
--Count compliance requirements
cast( count( distinct ChmlCmplncPckgdProdAssgmt.ChmlCmplncInfoUUID ) as ehfnd_cci_number_of_pp ) as NmbrOfChmlCmplncInfoPckgdProd
}
group by
ChmlCmplInfo.ChmlCmplncInfoUUID
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