I_ChmlCmplncInfoActiveDraft

DDL: I_CHMLCMPLNCINFOACTIVEDRAFT Type: view COMPOSITE

Chemical Compliance Information with active and draft data

I_ChmlCmplncInfoActiveDraft is a Composite CDS View that provides data about "Chemical Compliance Information with active and draft data" in SAP S/4HANA. It reads from 1 data source (I_ChmlCmplncInfo) and exposes 7 fields. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_ChmlCmplncInfo ChemicalComplianceInfo from

Associations (1)

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

Annotations (10)

NameValueLevelField
EndUserText.label Chemical Compliance Information with active and draft data view
AbapCatalog.sqlViewName ICCIADR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #C view

Fields (7)

KeyFieldSource TableSource FieldDescription
ProdStewardshipRespUnit I_ChmlCmplncInfo ProdStewardshipRespUnit
MaterialIsSold I_ChmlCmplncInfo MaterialIsSold
MaterialIsTransported I_ChmlCmplncInfo MaterialIsTransported
MaterialIsSourced I_ChmlCmplncInfo MaterialIsSourced
MaterialIsProduced I_ChmlCmplncInfo MaterialIsProduced
MaterialIsDisposed I_ChmlCmplncInfo MaterialIsDisposed
MaterialIsEmissionRelevant I_ChmlCmplncInfo MaterialIsEmissionRelevant
--Label of view
@EndUserText.label: 'Chemical Compliance Information with active and draft data'

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

  --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: #CHECK
}

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

--VDM view type
@VDM.viewType: #COMPOSITE

@ObjectModel:
{
  --Performance Annotations
  usageType:
  {
    dataClass: #TRANSACTIONAL,
    sizeCategory: #M,
    serviceQuality: #C
  }
}

define view I_ChmlCmplncInfoActiveDraft
  --Select data from basic view of chemical chemical compliance information
  as select from           I_ChmlCmplncInfo      as ChemicalComplianceInfo
  --join data from draft table of chemical compliance information
    left outer to one join I_ChmlCmplncInfoDraft as ChemicalComplianceInfoDraft on  ChemicalComplianceInfo.ChmlCmplncInfoUUID     = ChemicalComplianceInfoDraft.ActiveChmlCmplncInfoUUID

  /*+[hideWarning] { "IDS" : [ "CARDINALITY_CHECK" ] } */
  association [1..1] to P_ChmlCmplConstants as _Constants on _Constants.Constant1 = _Constants.Constant1
{
      --UUID of active chemical compliance information
  key ChemicalComplianceInfo.ChmlCmplncInfoUUID         as ActiveChmlCmplncInfoUUID,

      ----UUID of active or draft chemical compliance information
      case
        when ChemicalComplianceInfoDraft.ChmlCmplncInfoUUID is not null
        then ChemicalComplianceInfoDraft.ChmlCmplncInfoUUID
        else ChemicalComplianceInfo.ChmlCmplncInfoUUID
      end                                               as ChmlCmplncInfoUUID,

      --Indicator: Is Active Entity
      cast( case
              when ChemicalComplianceInfoDraft.ChmlCmplncInfoUUID is not null
              then _Constants[inner].ConstantFalse
              else _Constants[inner].ConstantTrue
            end as sdraft_is_active preserving type )   as ChmlCmplncInfoIsActiveEntity,

      // needed for DCL

      ChemicalComplianceInfo.ProdStewardshipRespUnit    as ProdStewardshipRespUnit,
      ChemicalComplianceInfo.MaterialIsSold             as MaterialIsSold,
      ChemicalComplianceInfo.MaterialIsTransported      as MaterialIsTransported,
      ChemicalComplianceInfo.MaterialIsSourced          as MaterialIsSourced,
      ChemicalComplianceInfo.MaterialIsProduced         as MaterialIsProduced,
      ChemicalComplianceInfo.MaterialIsDisposed         as MaterialIsDisposed,
      ChemicalComplianceInfo.MaterialIsEmissionRelevant as MaterialIsEmissionRelevant

}