I_CHMLCMPLNCWASTECODE

CDS View

Chemical Cpmlnc Info Waste Code Versions

I_CHMLCMPLNCWASTECODE is a CDS View in S/4HANA. Chemical Cpmlnc Info Waste Code Versions. 4 CDS views read from this table.

CDS Views using this table (4)

ViewTypeJoinVDMDescription
C_CmbndChmlCmplncWasteCode view from CONSUMPTION Manage Material - Waste codes
I_ChmlCmplncWasteCodeTP view from TRANSACTIONAL Chml Cmplnc Waste Code TP
I_EnvrmtProductWasteCode view from COMPOSITE Product Waste Codes
I_EnvrmtProductWasteCode view union COMPOSITE Product Waste Codes
@EndUserText.label: 'Chemical Cpmlnc Info Waste Code Versions'

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

@AccessControl:
{
  authorizationCheck: #CHECK,
  privilegedAssociations:  [ '_CreatedByUser', '_LastChangedByUser' ]
}

@VDM.viewType: #BASIC

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

@ClientHandling.algorithm: #SESSION_VARIABLE

define view I_ChmlCmplncWasteCode
  as select from ehfndv_ccw_wcode

  association [0..*] to I_ChmlCmplncWasteCodeAssgmt   as _ChmlCmplncWasteCodeAssgmt on $projection.ChmlCmplncWasteCodeUUID = _ChmlCmplncWasteCodeAssgmt.ChmlCmplncWasteCodeUUID
  --Link to chemical compliance information
  association [0..1] to I_ChmlCmplncInfo              as _ChmlCmplncInfo            on $projection.ChmlCmplncInfoUUID = _ChmlCmplncInfo.ChmlCmplncInfoUUID

  --Link to user data
  association [0..1] to I_User                        as _CreatedByUser             on $projection.CreatedByUser = _CreatedByUser.UserID
  association [0..1] to I_User                        as _LastChangedByUser         on $projection.LastChangedByUser = _LastChangedByUser.UserID

{


  key chmlcmplncwastecodeuuid                                                 as ChmlCmplncWasteCodeUUID,

      --UUID of chemical compliance info
      @ObjectModel.foreignKey.association: '_ChmlCmplncInfo'
      chmlcmplncinfouuid                                                      as ChmlCmplncInfoUUID,

      -- Admin Data
      @Semantics.systemDateTime.createdAt: true
      cast(creationutcdatetime as ehfnd_bo_crea_date_time preserving type )   as CreationUTCDateTime,
      @ObjectModel.readOnly: true
      @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,
      @ObjectModel.readOnly: true
      @Semantics.user.lastChangedBy: true
      cast(lastchangedbyuser as ehfnd_bo_lchg_uname preserving type )         as LastChangedByUser,


      _ChmlCmplncWasteCodeAssgmt,

      _ChmlCmplncInfo,

      _CreatedByUser,
      _LastChangedByUser

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