P_ChmlSuplrMatlComponentCntr

DDL: P_CHMLSUPLRMATLCOMPONENTCNTR Type: view CONSUMPTION Package: EHFND_CNS_CSM

Number of components of a chemical supplier material

P_ChmlSuplrMatlComponentCntr is a Consumption CDS View that provides data about "Number of components of a chemical supplier material" in SAP S/4HANA. It reads from 1 data source (I_ChmlComponent) and exposes 1 field. Part of development package EHFND_CNS_CSM.

Data Sources (1)

SourceAliasJoin Type
I_ChmlComponent Component from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PCSMCMPCNT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
VDM.private true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view

Fields (1)

KeyFieldSource TableSource FieldDescription
ChmlSuplrMatlUUID
--Label of view
//@EndUserText.label: 'Counter for all CRRs for Chemical Supplier Material'


@AbapCatalog:
{
  -- SQL view name (16 characters)
  sqlViewName: 'PCSMCMPCNT',

  --If it's true, the filter conditions are compared and, if they match, the associated join expression is evaluated only once
  compiler.compareFilter: true,
  preserveKey: 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

@ObjectModel:
{
  --Performance Annotations
  usageType:
  {
    dataClass: #MASTER,
    sizeCategory: #L,
    serviceQuality: #B
  }
}
define view P_ChmlSuplrMatlComponentCntr
  as select from I_ChmlComponent as Component
{
      --UUID of supplier material
  key Component.ChmlSuplrMatlUUID,
  
      --Create date/time of latest created component
      max(Component.LastChangeUTCDateTime) as LastCreationDateTime,

      --Count Components
      count(*) as NrOfAllChmlSuplrMatlComponent
}
group by
  Component.ChmlSuplrMatlUUID