P_NewestCRRStatusForCRVAndCCI

DDL: P_NEWESTCRRSTATUSFORCRVANDCCI SQL: PNCRRST Type: view COMPOSITE

P_NewestCRRStatusForCRVAndCCI 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 (7)

NameValueLevelField
AbapCatalog.sqlViewName PNCRRST view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED 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: 'PNCRRST'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.private: true
@VDM.viewType: #COMPOSITE
//@EndUserText.label: 'Newest CRR Status for combination of CRV and CCI'

define view P_NewestCRRStatusForCRVAndCCI as select from I_CmplRqRslt as CRR
       join I_CmplRqVers as CRV on CRV.CmplRqVersUUID = CRR.CmplRqVersUUID
                                and CRV.CmplRqApplicationComponent = 'DG' {
  key CRR.CmplRqVersUUID,
  key CRR.ChmlCmplncInfoUUID,
  min( CmplRqRsltProcessingStatus ) as CmplRqRsltProcessingStatus
} where CmplRqRsltProcessingStatus = 'IP' or 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":""
}
}*/