P_ChmlCmpstnCmplRqRsltNmbr

DDL: P_CHMLCMPSTNCMPLRQRSLTNMBR Type: view CONSUMPTION

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)

SourceAliasJoin Type
I_CmplRqRslt CmplRqRslt from

Annotations (7)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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":""
}
}*/