C_US_AnlytlCmpstnRptblQtyCFR

DDL: C_US_ANLYTLCMPSTNRPTBLQTYCFR SQL: CDGRQCFR Type: view CONSUMPTION Package: EHDGM_CNS_CBR_49CFR_UP

Reportable Qunatity from Analytical Composition for 49 CFR

C_US_AnlytlCmpstnRptblQtyCFR is a Consumption CDS View that provides data about "Reportable Qunatity from Analytical Composition for 49 CFR" in SAP S/4HANA. It reads from 5 data sources (C_US_AllRptblQtyCFR, I_ChmlComponent, I_ChmlComposition, I_CmplRqRslt, I_CmplRqRsltDngrsGdsBscDets) and exposes 14 fields with key fields CmplRqRsltDngrsGdsBscDetsUUID, SubstanceUUID. It has 2 associations to related views. Part of development package EHDGM_CNS_CBR_49CFR_UP.

Data Sources (5)

SourceAliasJoin Type
C_US_AllRptblQtyCFR C_US_AllRptblQtyCFR inner
I_ChmlComponent I_ChmlComponent inner
I_ChmlComposition I_ChmlComposition inner
I_CmplRqRslt I_CmplRqRslt inner
I_CmplRqRsltDngrsGdsBscDets I_CmplRqRsltDngrsGdsBscDets from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_UnitOfMeasure _UnitOfMeasure $projection.SubstanceListItmThresholdUoM = _UnitOfMeasure.UnitOfMeasure
[0..*] I_UnitOfMeasureText _UnitOfMeasureText $projection.SubstanceListItmThresholdUoM = _UnitOfMeasureText.UnitOfMeasure

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CDGRQCFR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
AccessControl.personalData.blocking #NOT_REQUIRED view
EndUserText.label Reportable Qunatity from Analytical Composition for 49 CFR view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.resultSet.sizeCategory #XS view

Fields (14)

KeyFieldSource TableSource FieldDescription
KEY CmplRqRsltDngrsGdsBscDetsUUID I_CmplRqRsltDngrsGdsBscDets CmplRqRsltDngrsGdsBscDetsUUID
KEY SubstanceUUID I_ChmlComponent SubstanceUUID
CmplRqVersUUID I_CmplRqRsltDngrsGdsBscDets CmplRqVersUUID
SubstanceName C_US_AllRptblQtyCFR SubstanceName
ListedSubstanceGroupName C_US_AllRptblQtyCFR ListedSubstanceGroupName
SubstanceListItmThreshold C_US_AllRptblQtyCFR SubstanceListItmThreshold
SubstanceListItmThresholdUoM C_US_AllRptblQtyCFR SubstanceListItmThresholdUoM
ECNumber C_US_AllRptblQtyCFR ECNumber
CASNumber C_US_AllRptblQtyCFR CASNumber
ChmlCmplncInfoUUID I_CmplRqRslt ChmlCmplncInfoUUID
_Substance I_ChmlComponent _Substance
_ChmlCmplncInfo I_CmplRqRslt _ChmlCmplncInfo
_UnitOfMeasure _UnitOfMeasure
_UnitOfMeasureText _UnitOfMeasureText
@AbapCatalog.sqlViewName: 'CDGRQCFR'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #MANDATORY
@AccessControl.personalData.blocking: #NOT_REQUIRED
@EndUserText.label: 'Reportable Qunatity from Analytical Composition for 49 CFR'
@VDM.viewType: #CONSUMPTION

@ClientHandling.algorithm: #SESSION_VARIABLE

@ObjectModel:
{
  --Performance Annotations
  usageType:
  {
    dataClass: #MIXED,
    sizeCategory: #L,
    serviceQuality: #C
  },
  resultSet.sizeCategory: #XS
}

@Consumption.dbHints: ['USE_HEX_PLAN']

define view C_US_AnlytlCmpstnRptblQtyCFR


  as select from I_CmplRqRsltDngrsGdsBscDets
    inner join   I_CmplRqRslt           on I_CmplRqRslt.CmplRqRsltUUID           = I_CmplRqRsltDngrsGdsBscDets.CmplRqRsltUUID
    inner join   I_ChmlComposition      on I_ChmlComposition.ChmlCmplncInfoUUID  = I_CmplRqRslt.ChmlCmplncInfoUUID
    inner join   I_ChmlComponent        on I_ChmlComposition.ChmlCompositionUUID = I_ChmlComponent.ChmlCompositionUUID
    inner join   C_US_AllRptblQtyCFR    on  C_US_AllRptblQtyCFR.CmplRqVersUUID   = I_CmplRqRsltDngrsGdsBscDets.CmplRqVersUUID
                                        and C_US_AllRptblQtyCFR.SubstanceUUID    = I_ChmlComponent.SubstanceUUID
                                        
  association [0..1] to I_UnitOfMeasure     as _UnitOfMeasure     on $projection.SubstanceListItmThresholdUoM = _UnitOfMeasure.UnitOfMeasure
  association [0..*] to I_UnitOfMeasureText as _UnitOfMeasureText on $projection.SubstanceListItmThresholdUoM = _UnitOfMeasureText.UnitOfMeasure

{
  key I_CmplRqRsltDngrsGdsBscDets.CmplRqRsltDngrsGdsBscDetsUUID,
  key I_ChmlComponent.SubstanceUUID,

      I_CmplRqRsltDngrsGdsBscDets.CmplRqVersUUID,

      C_US_AllRptblQtyCFR.SubstanceName,
      C_US_AllRptblQtyCFR.ListedSubstanceGroupName as ListedSubstanceGroupName,
      @Semantics.quantity.unitOfMeasure: 'SubstanceListItmThresholdUoM'
      C_US_AllRptblQtyCFR.SubstanceListItmThreshold,
      
      @ObjectModel.foreignKey.association: '_UnitOfMeasure'
      @ObjectModel.text.association: '_UnitOfMeasureText'
      @Semantics.unitOfMeasure: true
      C_US_AllRptblQtyCFR.SubstanceListItmThresholdUoM,
      C_US_AllRptblQtyCFR.ECNumber,
      C_US_AllRptblQtyCFR.CASNumber,

      I_CmplRqRslt.ChmlCmplncInfoUUID,
      I_ChmlComponent._Substance,
      // Required for DCL

      I_CmplRqRslt._ChmlCmplncInfo,
      
      _UnitOfMeasure,
      _UnitOfMeasureText

}
where
      I_ChmlComposition.ChmlCompositionType     = 'ANALYTIC1'
  and I_ChmlComposition.ChmlCompositionStatus   = 'RE'