I_CHMLCMPLNCPRPSASSGMT

CDS View

Chemical Compliance Purpose Assignment

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

CDS Views using this table (4)

ViewTypeJoinVDMDescription
I_ChmlCmplncPrpsAssgmtTP view from TRANSACTIONAL Chemical Compliance Purpose Assignment
I_ChmlCmplncReqPrps view union COMPOSITE Chemical Compliance Request Purposes
P_PrpsNmbrOfAssgdChmlCmplnc view from COMPOSITE Number of CCIs assigned to the purpose
R_ChmlCmplncPrpsAssgmtTP view_entity from TRANSACTIONAL Chemical Cmplnc Purpose Assignment - TP

Fields (4)

KeyField CDS FieldsUsed in Views
KEY CmplncPrpsUUID CmplncPrpsUUID 1
_ChmlCmplncInfo _ChmlCmplncInfo 1
_Purpose _Purpose 1
ChmlCmplncInfoUUID ChmlCmplncInfoUUID 1
@EndUserText.label: 'Chemical Compliance Purpose Assignment'

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

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

@VDM.viewType: #BASIC

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

@ClientHandling.algorithm: #SESSION_VARIABLE

define view I_ChmlCmplncPrpsAssgmt
  as select from ehfndv_cci_purp
  association [0..1] to I_ChmlCmplncInfo as _ChmlCmplncInfo    on $projection.ChmlCmplncInfoUUID = _ChmlCmplncInfo.ChmlCmplncInfoUUID
  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
  association [1..1] to I_CmplncPrps     as _Purpose           on $projection.CmplncPrpsUUID = _Purpose.CmplncPrpsUUID
{
  key chmlcmplncprpsassgmtuuid as ChmlCmplncPrpsAssgmtUUID,
      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: '_Purpose'   
      cmplncprpsuuid           as CmplncPrpsUUID, 

      -- associations
      _ChmlCmplncInfo,
      _CreatedByUser,
      _LastChangedByUser,
      _Purpose
}