P_ChmlCmplncPrpsDGRqmtCt

DDL: P_CHMLCMPLNCPRPSDGRQMTCT Type: view CONSUMPTION Package: EHFND_BO_CCI

Count Dangerous Good Compliance Requirements

P_ChmlCmplncPrpsDGRqmtCt is a Consumption CDS View that provides data about "Count Dangerous Good Compliance Requirements" in SAP S/4HANA. It reads from 1 data source (I_CmplncPrps) and exposes 2 fields with key field CmplncPrpsUUID. Part of development package EHFND_BO_CCI.

Data Sources (1)

SourceAliasJoin Type
I_CmplncPrps Purpose from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PCCPRPSDGRQMTCT 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
NmbrOfChmlCmplncDngrsGdsRqmts
@AbapCatalog:
{
  sqlViewName: 'PCCPRPSDGRQMTCT',
  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_ChmlCmplncPrpsDGRqmtCt
  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_dg ) as NmbrOfChmlCmplncDngrsGdsRqmts
}
where
      CRVersion.CmplRqApplicationComponent      = 'DG'
  and PrpsCRAssgnmt.CmplncPrpsRqmtAssgmtIsObslt <> 'X' 
group by
  Purpose.CmplncPrpsUUID