P_NewestPPCRRForCRVAndCCI

DDL: P_NEWESTPPCRRFORCRVANDCCI SQL: PNPPNECRR Type: view COMPOSITE

P_NewestPPCRRForCRVAndCCI is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CmplRqRslt) and exposes 3 fields with key fields CmplRqVersUUID, ChmlCmplncInfoUUID.

Data Sources (1)

SourceAliasJoin Type
I_CmplRqRslt CRR from

Annotations (6)

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

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY CmplRqVersUUID I_CmplRqRslt CmplRqVersUUID
KEY ChmlCmplncInfoUUID I_CmplRqRslt ChmlCmplncInfoUUID
CmplRqRsltProcessingStatus
@AbapCatalog.sqlViewName: 'PNPPNECRR'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view P_NewestPPCRRForCRVAndCCI as select from I_CmplRqRslt as CRR
 join I_CmplRqVers as ComplianceRequirementVersion on ComplianceRequirementVersion.CmplRqVersUUID = CRR.CmplRqVersUUID 
                                                  and ComplianceRequirementVersion.CmplRqApplicationComponent = 'DG'  
                                                         {
  key CRR.CmplRqVersUUID,
  key CRR.ChmlCmplncInfoUUID,

  min( CRR.CmplRqRsltProcessingStatus ) as CmplRqRsltProcessingStatus
} where (
          // Only consider In Process CRRs where the calculated status is not initial (means there is a released UP CRR)

          CRR.CmplRqRsltProcessingStatus = 'IP' and CRR.CmplRqRsltCalculatedStatus != '' ) or
          CRR.CmplRqRsltProcessingStatus = 'RE'
 group by CRR.CmplRqVersUUID, CRR.ChmlCmplncInfoUUID

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CMPLRQRSLT",
"I_CMPLRQVERS"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/