P_ChmlCompositionCriticality

DDL: P_CHMLCOMPOSITIONCRITICALITY Type: view CONSUMPTION Package: EHFND_BO_CCI

Criticality of Chemical Composition

P_ChmlCompositionCriticality is a Consumption CDS View that provides data about "Criticality of Chemical Composition" in SAP S/4HANA. It reads from 1 data source (I_ChmlComposition) and exposes 1 field. It has 1 association to related views. Part of development package EHFND_BO_CCI.

Data Sources (1)

SourceAliasJoin Type
I_ChmlComposition ChemcialComposition from

Associations (1)

CardinalityTargetAliasCondition
[1..1] P_CChmlCmplConstants _Constants _Constants.Constant1 = _Constants.Constant1

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PCCMPSCRIT 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 (1)

KeyFieldSource TableSource FieldDescription
ChmlCompositionUUID
@AbapCatalog:
{
  -- SQL view name (16 characters)
  sqlViewName: 'PCCMPSCRIT',

  --If it's true, the filter conditions are compared and, if they match, the associated join expression is evaluated only once
  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_ChmlCompositionCriticality
  --Select data from chemical composition
  as 
  select from I_ChmlComposition as ChemcialComposition
  association [1..1] to P_CChmlCmplConstants           as _Constants on _Constants.Constant1 = _Constants.Constant1  
{
      --UUID of Chemcial Composition
  key ChemcialComposition.ChmlCompositionUUID,

      --Determine the criticaliyt by status
      case ChemcialComposition.ChmlCompositionStatus
        when 'IP' then _Constants[inner].Constant1
        when 'RE' then _Constants[inner].Constant3
        else _Constants[inner].Constant1
      end as ChmlCompositionStsCriticality
}