P_ChmlCmplncPrpsSdsRqmtCt

DDL: P_CHMLCMPLNCPRPSSDSRQMTCT Type: view CONSUMPTION

P_ChmlCmplncPrpsSdsRqmtCt is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_CmplncPrps) and exposes 2 fields with key field CmplncPrpsUUID.

Data Sources (1)

SourceAliasJoin Type
I_CmplncPrps Purpose from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PCCPRPSSDSRQMTCT 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
KEY CmplncPrpsUUID I_CmplncPrps CmplncPrpsUUID
NmbrOfChmlCmplncDataShtRqmts
@AbapCatalog:
{
  sqlViewName: 'PCCPRPSSDSRQMTCT',
  compiler.compareFilter: true
}

--Access Control: Authorizations Checks
@AccessControl:
{
  authorizationCheck: #NOT_REQUIRED
}

--Client Handling of the view
@ClientHandling.algorithm: #SESSION_VARIABLE

--VDM view type
@VDM.viewType: #CONSUMPTION
@VDM.private: true

define view P_ChmlCmplncPrpsSdsRqmtCt
  as select from I_CmplncPrps           as Purpose
    join         I_CmplncPrpsRqmtAssgmt as PrpsCRAssgnmt on PrpsCRAssgnmt.CmplncPrpsUUID = Purpose.CmplncPrpsUUID
    join         I_CmplRqVers           as CRVersion     on PrpsCRAssgnmt.CmplRqUUID = CRVersion.CmplRqUUID
{
  key Purpose.CmplncPrpsUUID                                                    as CmplncPrpsUUID,
      cast( count( distinct CRVersion.CmplRqUUID ) as ehfnd_cci_number_of_cr_sds ) as NmbrOfChmlCmplncDataShtRqmts
}
where
      CRVersion.CmplRqApplicationComponent      = 'SDS'
  and PrpsCRAssgnmt.CmplncPrpsRqmtAssgmtIsObslt <> 'X' 
group by
  Purpose.CmplncPrpsUUID
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CMPLNCPRPS",
"I_CMPLNCPRPSRQMTASSGMT",
"I_CMPLRQVERS"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/