P_ChmlSuplrMatlComponentCntr

DDL: P_CHMLSUPLRMATLCOMPONENTCNTR Type: view CONSUMPTION

P_ChmlSuplrMatlComponentCntr is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_ChmlComponent) and exposes 1 field.

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
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CHMLCOMPONENT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/