P_ChmlCmpstnCmplRqRsltNmbr
Number of Compliance Requirments for Composition
P_ChmlCmpstnCmplRqRsltNmbr is a Consumption CDS View that provides data about "Number of Compliance Requirments for Composition" in SAP S/4HANA. It reads from 1 data source (I_CmplRqRslt) and exposes 2 fields.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CmplRqRslt | CmplRqRslt | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Number of Compliance Requirments for Composition | view | |
| AbapCatalog.sqlViewName | PCCMPSCCRNR | 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 (2)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| ChmlCmplncInfoUUID | ||||
| ChmlCompositionType |
@EndUserText.label: 'Number of Compliance Requirments for Composition'
@AbapCatalog:
{
sqlViewName: 'PCCMPSCCRNR',
compiler.compareFilter: true
}
@AccessControl:
{
authorizationCheck: #NOT_REQUIRED
}
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #CONSUMPTION
@VDM: {
private: true
}
define view P_ChmlCmpstnCmplRqRsltNmbr
--Select data from basic view of 'Compliance Requirement Results'
as select from I_CmplRqRslt as CmplRqRslt
{
--UUID of Chemical Compliance Information
key CmplRqRslt.ChmlCmplncInfoUUID,
--Composition Type
key CmplRqRslt.ChmlCompositionType,
--Count the number of Compliance Requirement Results (count one record per version UUID)
count(distinct CmplRqVersUUID) as NmbrOfCmplRqRslts
}
where
CmplRqRslt.ChmlCmplncInfoUUID is not null
and CmplRqRslt.CmplRqRsltProcessingStatus <> 'OD'
group by
CmplRqRslt.ChmlCmplncInfoUUID,
CmplRqRslt.ChmlCompositionType
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CMPLRQRSLT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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