P_ChmlCmplncReqUnprocessedCT

DDL: P_CHMLCMPLNCREQUNPROCESSEDCT Type: view CONSUMPTION Package: EHFND_BO_CCI

Count of unprocessed requests per Product

P_ChmlCmplncReqUnprocessedCT is a Consumption CDS View that provides data about "Count of unprocessed requests per Product" in SAP S/4HANA. It reads from 1 data source (I_ChmlCmplncReq) and exposes 1 field. Part of development package EHFND_BO_CCI.

Data Sources (1)

SourceAliasJoin Type
I_ChmlCmplncReq I_ChmlCmplncReq from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PCCREQUPCT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #C view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (1)

KeyFieldSource TableSource FieldDescription
CountthefoundrequestscountasrecordCount
--Count the number of unprocessed chemical compliance requests
--status = NEW
@AbapCatalog:
{
  sqlViewName: 'PCCREQUPCT',
  compiler.compareFilter: true
}

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

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

@ObjectModel.usageType.serviceQuality: #C

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

define view P_ChmlCmplncReqUnprocessedCT
  --Select data from basic view 'Chemical Compliance Request'
  as select from I_ChmlCmplncReq
{
  --UUID of Chemical Compliance Information/Unpackaged Product (referenced by Chemical Compliance Request)
  ChmlCmplncProdUUID,

  --Count the found requests
  count(*) as recordCount
}
-- avoid processing of all compliance requests in the system because of empty unpackaged product relation
where ChmlCmplncProdUUID is not null and ChmlCmplncProdUUID <> hextobin('00000000000000000000000000000000')
--Only with status NEW (= unprocessed)
and ChmlCmplncRequestPrgrsStatus = 'NEW'
--grouped by Unpackaged Product
group by
  ChmlCmplncProdUUID