I_CHMLCMPLNCMATLASSGMT

CDS View

Chemical Compliance Material Assignment

I_CHMLCMPLNCMATLASSGMT is a CDS View in S/4HANA. Chemical Compliance Material Assignment. It contains 1 fields. 4 CDS views read from this table.

CDS Views using this table (4)

ViewTypeJoinVDMDescription
C_CmbndChmlCmplncMatlAssgmt view from CONSUMPTION Chml Dta Matl Assgmt For Mnl DG Maint
I_ChmlCmplncMatlAssgmtTP view from TRANSACTIONAL Chemical Compliance Material Assignment
I_WasteStreamMatlGnrtrGrouped view inner COMPOSITE Waste Stream Material Grouped
R_ChmlCmplncMatlAssgmtTP view_entity from TRANSACTIONAL Chemical Compliance Mat Assignment - TP

Fields (1)

KeyField CDS FieldsUsed in Views
Material Product 4
@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

}