I_ChmlCmplncMatlAssgmt

DDL: I_CHMLCMPLNCMATLASSGMT Type: view BASIC

Chemical Compliance Material Assignment

I_ChmlCmplncMatlAssgmt is a Basic CDS View that provides data about "Chemical Compliance Material Assignment" in SAP S/4HANA. It reads from 1 data source (ehfndv_cci_mat) and exposes 10 fields with key field ChmlCmplncMatlAssgmtUUID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
ehfndv_cci_mat ehfndv_cci_mat from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_ChmlCmplncInfo _ChmlCmplncInfo $projection.ChmlCmplncInfoUUID = _ChmlCmplncInfo.ChmlCmplncInfoUUID
[1..1] I_Product _Product $projection.Material = _Product.Product

Annotations (9)

NameValueLevelField
EndUserText.label Chemical Compliance Material Assignment view
AbapCatalog.sqlViewName ICCMATLASSGMT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY ChmlCmplncMatlAssgmtUUID chmlcmplncmatlassgmtuuid
ChmlCmplncInfoUUID chmlcmplncinfouuid
CreationUTCDateTime
CreatedByUser
LastChangeUTCDateTime
LastChangedByUser
Material
MatlAssgmtIsPrimary matlassgmtisprimary
associations_ChmlCmplncInfo
_Product _Product
@EndUserText.label: 'Chemical Compliance Material Assignment'

@AbapCatalog:
{
  sqlViewName: 'ICCMATLASSGMT',
  compiler.compareFilter: true
}

@AccessControl:
{
  authorizationCheck: #CHECK
}

@VDM.viewType: #BASIC

@ObjectModel:
{
  usageType:
  {
    dataClass: #MASTER,
    sizeCategory: #L,
    serviceQuality: #B
  }
}

@ClientHandling.algorithm: #SESSION_VARIABLE

define view I_ChmlCmplncMatlAssgmt  
  as select from ehfndv_cci_mat
  association [1..1] to I_ChmlCmplncInfo as _ChmlCmplncInfo on $projection.ChmlCmplncInfoUUID = _ChmlCmplncInfo.ChmlCmplncInfoUUID
  association [1..1] to I_Product        as _Product        on $projection.Material = _Product.Product
{
  key chmlcmplncmatlassgmtuuid as ChmlCmplncMatlAssgmtUUID,
      chmlcmplncinfouuid       as ChmlCmplncInfoUUID,
      
      @Semantics.systemDateTime.createdAt: true
      cast(creationutcdatetime as ehfnd_bo_crea_date_time preserving type )   as CreationUTCDateTime,
      @Semantics.user.createdBy: true
      cast(createdbyuser as ehfnd_bo_crea_uname preserving type )             as CreatedByUser,
      @Semantics.systemDateTime.lastChangedAt: true
      cast(lastchangeutcdatetime as ehfnd_bo_lchg_date_time preserving type ) as LastChangeUTCDateTime,
      @Semantics.user.lastChangedBy: true
      cast(lastchangedbyuser as ehfnd_bo_lchg_uname preserving type )         as LastChangedByUser,
      
      @ObjectModel.foreignKey.association: '_Product'
      cast ( material as ehfnd_cci_product preserving type )  as Material,
//      material as Material,

      matlassgmtisprimary      as MatlAssgmtIsPrimary,

      -- associations
      _ChmlCmplncInfo,
      _Product

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"EHFNDV_CCI_MAT"
],
"ASSOCIATED":
[
"I_CHMLCMPLNCINFO",
"I_PRODUCT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/