R_DngrsGdsBasicClassfctnDetTP

DDL: R_DNGRSGDSBASICCLASSFCTNDETTP Type: view_entity TRANSACTIONAL Package: EHDGM_RAP_BASIC_CLASSIFICATION

DG Basic Classification Detail - TP

R_DngrsGdsBasicClassfctnDetTP is a Transactional CDS View that provides data about "DG Basic Classification Detail - TP" in SAP S/4HANA. It reads from 1 data source (I_CmplRqRsltDngrsGdsBscDets) and exposes 44 fields with key field CmplRqRsltDngrsGdsBscDetsUUID. It has 11 associations to related views. Part of development package EHDGM_RAP_BASIC_CLASSIFICATION.

Data Sources (1)

SourceAliasJoin Type
I_CmplRqRsltDngrsGdsBscDets DngrsGdsBscClassfctnDetails from

Associations (11)

CardinalityTargetAliasCondition
[0..1] I_ClassifiedAsDangerousGood _ClassifiedAsDangerousGood _ClassifiedAsDangerousGood.ClassifiedAsDangerousGood = $projection.ClassifiedAsDangerousGood
[0..1] I_DangerousGdsClassOrDivision _DangerousGdsClassOrDivision _DangerousGdsClassOrDivision.DangerousGoodsClass = $projection.DangerousGoodsClass
[0..1] I_DangerousGoodsPackingGroup _DangerousGoodsPackingGroup _DangerousGoodsPackingGroup.DangerousGoodsPackingGroup = $projection.DangerousGoodsPackingGroup
[0..1] I_CmplRqVersDngrsGdsPart1Item _CmplRqVersDngrsGdsPart1Item $projection.ProdCmplncDngrsGdsIdnNmbr = _CmplRqVersDngrsGdsPart1Item.DangerousGoodsIdnNumber and $projection.ProdCmplncDngrsGdsIdnNmbrType = _CmplRqVersDngrsGdsPart1Item.DangerousGoodsIdnNumberType and $projection.DangerousGoodsPackingGroup = _CmplRqVersDngrsGdsPart1Item.DangerousGoodsPackingGroup and $projection.DangerousGoodsListItemVariant = _CmplRqVersDngrsGdsPart1Item.DangerousGoodsListItemVariant and $projection.CmplRqVersUUID = _CmplRqVersDngrsGdsPart1Item.CmplRqVersUUID
[0..1] I_Substance _DngrsGdsTechName1Substance $projection.DngrsGdsTechName1SubstUUID = _DngrsGdsTechName1Substance.SubstanceUUID
[0..1] I_Substance _DngrsGdsTechName2Substance $projection.DngrsGdsTechName2SubstUUID = _DngrsGdsTechName2Substance.SubstanceUUID
[0..1] I_Substance _DngrsGdsTechName3Substance $projection.DngrsGdsTechName3SubstUUID = _DngrsGdsTechName3Substance.SubstanceUUID
[0..1] I_Substance _DngrsGdsMarnPlltnt1Substance $projection.DngrsGdsMarnPlltnt1SubstUUID = _DngrsGdsMarnPlltnt1Substance.SubstanceUUID
[0..1] I_Substance _DngrsGdsMarnPlltnt2Substance $projection.DngrsGdsMarnPlltnt2SubstUUID = _DngrsGdsMarnPlltnt2Substance.SubstanceUUID
[0..1] I_Substance _DngrsGdsRptblQty1Substance $projection.DngrsGdsRptblQty1SubstUUID = _DngrsGdsRptblQty1Substance.SubstanceUUID
[0..1] I_Substance _DngrsGdsRptblQty2Substance $projection.DngrsGdsRptblQty2SubstUUID = _DngrsGdsRptblQty2Substance.SubstanceUUID

Annotations (10)

NameValueLevelField
EndUserText.label DG Basic Classification Detail - TP view
AccessControl.authorizationCheck #MANDATORY view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.sapObjectNodeType.name DngrsGdsBscClassfctnDetails view
ObjectModel.representativeKey CmplRqRsltDngrsGdsBscDetsUUID view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (44)

KeyFieldSource TableSource FieldDescription
KEY CmplRqRsltDngrsGdsBscDetsUUID I_CmplRqRsltDngrsGdsBscDets CmplRqRsltDngrsGdsBscDetsUUID
CmplRqRsltUUID I_CmplRqRsltDngrsGdsBscDets CmplRqRsltUUID
CmplRqVersUUID I_CmplRqRsltDngrsGdsBscDets CmplRqVersUUID
CreationDateTime I_CmplRqRsltDngrsGdsBscDets CreationDateTime
CreatedByUser I_CmplRqRsltDngrsGdsBscDets CreatedByUser
LastChangeDateTime I_CmplRqRsltDngrsGdsBscDets LastChangeDateTime
LastChangedByUser I_CmplRqRsltDngrsGdsBscDets LastChangedByUser
ClassifiedAsDangerousGood I_CmplRqRsltDngrsGdsBscDets ClassifiedAsDangerousGood
ProdCmplncDngrsGdsIdnNmbrType I_CmplRqRsltDngrsGdsBscDets DangerousGoodsIdnNumberType
ProdCmplncDngrsGdsIdnNmbr I_CmplRqRsltDngrsGdsBscDets DangerousGoodsIdnNumber
DangerousGoodsClass I_CmplRqRsltDngrsGdsBscDets DangerousGoodsClass
DangerousGoodsPackingGroup I_CmplRqRsltDngrsGdsBscDets DangerousGoodsPackingGroup
DngrsGdsPackingInstructionText I_CmplRqRsltDngrsGdsBscDets PackingInstruction
DngrsGoodDescForDocsTmplText DngrsGoodDescForDocsTmplText
DangerousGoodsListItemVariant DangerousGoodsListItemVariant
DngrsGdsQualifgWordPrefix DngrsGdsQualifgWordPrefix
DngrsGdsQualifgWordSuffix DngrsGdsQualifgWordSuffix
DngrsGdsTechName1SubstUUID DngrsGdsTechName1SubstUUID
DngrsGdsTechName2SubstUUID DngrsGdsTechName2SubstUUID
DngrsGdsTechName3SubstUUID DngrsGdsTechName3SubstUUID
DngrsGdsTechName1PosOnSrce DngrsGdsTechName1PosOnSrce
DngrsGdsTechName2PosOnSrce DngrsGdsTechName2PosOnSrce
DngrsGdsTechName3PosOnSrce DngrsGdsTechName3PosOnSrce
ProdIsEnvironmentalHazardous ProdIsEnvironmentalHazardous
DngrsGdsMarnPlltnt1SubstUUID DngrsGdsMarnPlltnt1SubstUUID
DngrsGdsMarnPlltnt2SubstUUID DngrsGdsMarnPlltnt2SubstUUID
ProductIsMarinePollutant ProductIsMarinePollutant
ProductIsToxicByInhalation ProductIsToxicByInhalation
DngrsGdsRptblQty1SubstUUID DngrsGdsRptblQty1SubstUUID
DngrsGdsRptblQty2SubstUUID DngrsGdsRptblQty2SubstUUID
ReportableQtyIsPrintedOnDoc ReportableQtyIsPrintedOnDoc
ToxicByInhalationHazardZone ToxicByInhalationHazardZone
_ClassifiedAsDangerousGood _ClassifiedAsDangerousGood
_CmplRqVersDngrsGdsPart1Item _CmplRqVersDngrsGdsPart1Item
_DangerousGdsClassOrDivision _DangerousGdsClassOrDivision
_DangerousGoodsPackingGroup _DangerousGoodsPackingGroup
_DngrsGdsTechName1Substance _DngrsGdsTechName1Substance
_DngrsGdsTechName2Substance _DngrsGdsTechName2Substance
_DngrsGdsTechName3Substance _DngrsGdsTechName3Substance
_DngrsGdsMarnPlltnt1Substance _DngrsGdsMarnPlltnt1Substance
_DngrsGdsMarnPlltnt2Substance _DngrsGdsMarnPlltnt2Substance
_DngrsGdsRptblQty1Substance _DngrsGdsRptblQty1Substance
_DngrsGdsRptblQty2Substance _DngrsGdsRptblQty2Substance
_DngrsGoodsBasicClassification _DngrsGoodsBasicClassification
@EndUserText.label: 'DG Basic Classification Detail - TP'
@AccessControl.authorizationCheck: #MANDATORY
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel:
{
  sapObjectNodeType.name: 'DngrsGdsBscClassfctnDetails',
  representativeKey:  'CmplRqRsltDngrsGdsBscDetsUUID',
  usageType:
  {
    dataClass: #MIXED,
    sizeCategory: #L, // <10.000.000

    serviceQuality: #C // <= 15 msec

  }
}
@VDM.viewType: #TRANSACTIONAL
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
/*+[hideWarning] { "IDS" : [ "CARDINALITY_CHECK" ]  } */
define view entity R_DngrsGdsBasicClassfctnDetTP
  --Select data from basic view 'Chemical Component'
  as select from I_CmplRqRsltDngrsGdsBscDets as DngrsGdsBscClassfctnDetails
  association        to parent R_DngrsGdsBasicClassfctnTP as _DngrsGoodsBasicClassification on  $projection.CmplRqRsltUUID = _DngrsGoodsBasicClassification.CmplRqRsltUUID

  association [0..1] to I_ClassifiedAsDangerousGood       as _ClassifiedAsDangerousGood     on  _ClassifiedAsDangerousGood.ClassifiedAsDangerousGood = $projection.ClassifiedAsDangerousGood
  association [0..1] to I_DangerousGdsClassOrDivision     as _DangerousGdsClassOrDivision   on  _DangerousGdsClassOrDivision.DangerousGoodsClass = $projection.DangerousGoodsClass
  association [0..1] to I_DangerousGoodsPackingGroup      as _DangerousGoodsPackingGroup    on  _DangerousGoodsPackingGroup.DangerousGoodsPackingGroup = $projection.DangerousGoodsPackingGroup
  // Regulatory Data of selected UN Number

  association [0..1] to I_CmplRqVersDngrsGdsPart1Item     as _CmplRqVersDngrsGdsPart1Item   on  $projection.ProdCmplncDngrsGdsIdnNmbr     = _CmplRqVersDngrsGdsPart1Item.DangerousGoodsIdnNumber
                                                                                            and $projection.ProdCmplncDngrsGdsIdnNmbrType = _CmplRqVersDngrsGdsPart1Item.DangerousGoodsIdnNumberType
                                                                                            and $projection.DangerousGoodsPackingGroup    = _CmplRqVersDngrsGdsPart1Item.DangerousGoodsPackingGroup
                                                                                            and $projection.DangerousGoodsListItemVariant = _CmplRqVersDngrsGdsPart1Item.DangerousGoodsListItemVariant
                                                                                            and $projection.CmplRqVersUUID                = _CmplRqVersDngrsGdsPart1Item.CmplRqVersUUID
  association [0..1] to I_Substance                       as _DngrsGdsTechName1Substance    on  $projection.DngrsGdsTechName1SubstUUID = _DngrsGdsTechName1Substance.SubstanceUUID
  association [0..1] to I_Substance                       as _DngrsGdsTechName2Substance    on  $projection.DngrsGdsTechName2SubstUUID = _DngrsGdsTechName2Substance.SubstanceUUID
  association [0..1] to I_Substance                       as _DngrsGdsTechName3Substance    on  $projection.DngrsGdsTechName3SubstUUID = _DngrsGdsTechName3Substance.SubstanceUUID
  association [0..1] to I_Substance                       as _DngrsGdsMarnPlltnt1Substance  on  $projection.DngrsGdsMarnPlltnt1SubstUUID = _DngrsGdsMarnPlltnt1Substance.SubstanceUUID
  association [0..1] to I_Substance                       as _DngrsGdsMarnPlltnt2Substance  on  $projection.DngrsGdsMarnPlltnt2SubstUUID = _DngrsGdsMarnPlltnt2Substance.SubstanceUUID
  association [0..1] to I_Substance                       as _DngrsGdsRptblQty1Substance  on  $projection.DngrsGdsRptblQty1SubstUUID = _DngrsGdsRptblQty1Substance.SubstanceUUID
  association [0..1] to I_Substance                       as _DngrsGdsRptblQty2Substance  on  $projection.DngrsGdsRptblQty2SubstUUID = _DngrsGdsRptblQty2Substance.SubstanceUUID

{
  key DngrsGdsBscClassfctnDetails.CmplRqRsltDngrsGdsBscDetsUUID,
      DngrsGdsBscClassfctnDetails.CmplRqRsltUUID,
      DngrsGdsBscClassfctnDetails.CmplRqVersUUID,

      @Semantics.systemDateTime.createdAt: true
      DngrsGdsBscClassfctnDetails.CreationDateTime,
      @Semantics.user.createdBy: true
      DngrsGdsBscClassfctnDetails.CreatedByUser,
      @Semantics.systemDateTime.lastChangedAt: true
      DngrsGdsBscClassfctnDetails.LastChangeDateTime,
      @Semantics.user.lastChangedBy: true
      DngrsGdsBscClassfctnDetails.LastChangedByUser,      

      DngrsGdsBscClassfctnDetails.ClassifiedAsDangerousGood,
      cast( case DngrsGdsBscClassfctnDetails.ClassifiedAsDangerousGood
      when '' then ' '
      when '01' then ' '
      when '02' then ' '
      when '03' then 'X'
      end as productisnodangerousgood preserving type )       as ProductIsNoDangerousGood,
      DngrsGdsBscClassfctnDetails.DangerousGoodsIdnNumberType as ProdCmplncDngrsGdsIdnNmbrType,
      DngrsGdsBscClassfctnDetails.DangerousGoodsIdnNumber     as ProdCmplncDngrsGdsIdnNmbr,
      DngrsGdsBscClassfctnDetails.DangerousGoodsClass,
      DngrsGdsBscClassfctnDetails.DangerousGoodsPackingGroup,
      DngrsGdsBscClassfctnDetails.PackingInstruction          as DngrsGdsPackingInstructionText,
      DngrsGoodDescForDocsTmplText,
      DangerousGoodsListItemVariant,
      DngrsGdsQualifgWordPrefix,
      DngrsGdsQualifgWordSuffix,
      DngrsGdsTechName1SubstUUID,
      DngrsGdsTechName2SubstUUID,
      DngrsGdsTechName3SubstUUID,
      DngrsGdsTechName1PosOnSrce,
      DngrsGdsTechName2PosOnSrce,
      DngrsGdsTechName3PosOnSrce,
      ProdIsEnvironmentalHazardous,
      DngrsGdsMarnPlltnt1SubstUUID,
      DngrsGdsMarnPlltnt2SubstUUID,
      ProductIsMarinePollutant,
      ProductIsToxicByInhalation,
      DngrsGdsRptblQty1SubstUUID,
      DngrsGdsRptblQty2SubstUUID,
      ReportableQtyIsPrintedOnDoc,
      ToxicByInhalationHazardZone,
//      BasicClassfctnIsOverwritten,

//      DngrsGdsDescTmplIsOverwritten,

//      EnclosureVariant,

//      SpecialProvisionOrExemptionTxt,

//      DngrsGdsIsIgnoredLblFrmRgln,

//      AddlPlcdIsIgnoredLblFrmRgln,

      /* Associations */
      _ClassifiedAsDangerousGood,
      _CmplRqVersDngrsGdsPart1Item,
      _DangerousGdsClassOrDivision,
      _DangerousGoodsPackingGroup,
//      _EnclosureVariant,

      _DngrsGdsTechName1Substance,
      _DngrsGdsTechName2Substance,
      _DngrsGdsTechName3Substance,
      _DngrsGdsMarnPlltnt1Substance,
      _DngrsGdsMarnPlltnt2Substance,
      _DngrsGdsRptblQty1Substance,
      _DngrsGdsRptblQty2Substance,
      _DngrsGoodsBasicClassification
} where _DngrsGoodsBasicClassification.CmplRqRsltUUID is not initial