I_UnpackagedDangerousGoodReld

DDL: I_UNPACKAGEDDANGEROUSGOODRELD SQL: IUPDGRELD Type: view COMPOSITE Package: EHDGM_CNS_UNPACKAGED_PRODUCT

Composite View for UPs released CRR

I_UnpackagedDangerousGoodReld is a Composite CDS View that provides data about "Composite View for UPs released CRR" in SAP S/4HANA. It reads from 1 data source (I_ChmlCmplncInfo) and exposes 8 fields with key field ChmlCmplncInfoUUID. It has 1 association to related views. Part of development package EHDGM_CNS_UNPACKAGED_PRODUCT.

Data Sources (1)

SourceAliasJoin Type
I_ChmlCmplncInfo ChemicalComplianceInfo from

Associations (1)

CardinalityTargetAliasCondition
[0..1] P_ReleasedCRRForUnpckgdDGCount _RelCRRCount $projection.ChmlCmplncInfoUUID = _RelCRRCount.ChmlCmplncInfoUUID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IUPDGRELD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Composite View for UPs released CRR view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY ChmlCmplncInfoUUID I_ChmlCmplncInfo ChmlCmplncInfoUUID
Product
ProductName ProductName
ChmlCmplncInternalName ChmlCmplncInternalName
ChmlCmplncInfoCombinedName
DangerousGoodBasicDescription BasicDescForReldRegulation DangerousGoodBasicDescription
DngrsGdsRespUnit DngrsGdsRespUnit
_RespUnitForDangerousGoods _RespUnitForDangerousGoods
@AbapCatalog.sqlViewName: 'IUPDGRELD'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Composite View for UPs released CRR'

@ClientHandling:
{
  type: #INHERITED,
  algorithm: #SESSION_VARIABLE
}

@VDM.viewType: #COMPOSITE

@ObjectModel:
{
  usageType:
    {
      dataClass: #MIXED,
      sizeCategory: #L,
      serviceQuality: #C
    }
}

define view I_UnpackagedDangerousGoodReld
  --Select data from master table 'Chemical Compliance Info'
  as select from           I_ChmlCmplncInfo       as ChemicalComplianceInfo

  --Join data from primary material assignment
    left outer to one join I_ChmlCmplncMatlAssgmt as PrimaryMaterial on ChemicalComplianceInfo.ChmlCmplncInfoUUID = PrimaryMaterial.ChmlCmplncInfoUUID
                                                                  and MatlAssgmtIsPrimary = 'X'

  --Join data from product name in current language to define Combined Name
    left outer to one join I_ProductText                as ProductText on  PrimaryMaterial.Material = ProductText.Product
                                                                    and Language             = $session.system_language

    left outer to one join P_BasicDescForReldRegulation as BasicDescForReldRegulation on ChemicalComplianceInfo.ChmlCmplncInfoUUID = BasicDescForReldRegulation.ChmlCmplncInfoUUID
                                                                                         
  association [0..1] to P_ReleasedCRRForUnpckgdDGCount as _RelCRRCount on $projection.ChmlCmplncInfoUUID = _RelCRRCount.ChmlCmplncInfoUUID

{
      @ObjectModel.text.element: ['ChmlCmplncInfoCombinedName']
  key ChemicalComplianceInfo.ChmlCmplncInfoUUID,
      //@ObjectModel.text.element: ['ChmlCmplncInfoCombinedName']

      cast (Material as productnumber preserving type ) as Product,

      ProductName,
      
      ChmlCmplncInternalName,
      
      @Semantics.text: true
      cast( coalesce( ProductText.ProductName, ChemicalComplianceInfo.ChmlCmplncInternalName ) as ehfnd_cci_product_name ) as ChmlCmplncInfoCombinedName,
      
      BasicDescForReldRegulation.DangerousGoodBasicDescription,
      
      // only needed for DCL

      DngrsGdsRespUnit,
      _RespUnitForDangerousGoods      

}
where
      ChmlCmplncInfoType             = 'BU'
  and MaterialIsTransported          = 'X'
  and _RelCRRCount.NmbrOfCmplRqRslts > 0;