C_CmpstnHistory

DDL: C_CMPSTNHISTORY Type: view CONSUMPTION Package: EHFND_CNS_CMPS_COMN

History of Composition

C_CmpstnHistory is a Consumption CDS View that provides data about "History of Composition" in SAP S/4HANA. It reads from 1 data source (I_ChmlComposition) and exposes 19 fields with key field ChmlCompositionUUID. It has 3 associations to related views. Part of development package EHFND_CNS_CMPS_COMN.

Data Sources (1)

SourceAliasJoin Type
I_ChmlComposition ChmlComposition from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_ChmlCompositionStatusText _CompositionStatusText ChmlComposition.ChmlCompositionStatus = _CompositionStatusText.ChmlCompositionStatus and _CompositionStatusText.Language = $session.system_language
[1..1] I_BusinessUserBasic _LastChangedByUser ChmlComposition.LastChangedByUser = _LastChangedByUser.UserID
[0..1] I_BusinessUserBasic _ReleasedByUser ChmlComposition.ReleasedByUser = _ReleasedByUser.BusinessPartner

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName CMPSTNHISTORY view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view
EndUserText.label History of Composition view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY ChmlCompositionUUID I_ChmlComposition ChmlCompositionUUID
ChmlCmplncInfoUUID I_ChmlComposition ChmlCmplncInfoUUID
SubstanceUUID I_ChmlComposition SubstanceUUID
ChmlCompositionType I_ChmlComposition ChmlCompositionType
ProdCmplncLegalArea I_ChmlComposition ProdCmplncLegalArea
PolymerCompositionIntID I_ChmlComposition PolymerCompositionIntID
ChmlCompositionStatus I_ChmlComposition ChmlCompositionStatus
ChmlCompositionStatusName _CompositionStatusText ChmlCompositionStatusName
LastChangedByUserFullName _LastChangedByUser PersonFullName
LastChangeDateTime I_ChmlComposition LastChangeUTCDateTime
ReleasedByUserName _ReleasedByUser PersonFullName
ReleaseDateTime I_ChmlComposition ReleaseDateTime
ValidityStartDateTime I_ChmlComposition ValidityStartDateTime
ValidityEndDateTime I_ChmlComposition ValidityEndDateTime
CreationUTCDateTime I_ChmlComposition CreationUTCDateTime
_ChmlCmplncInfo _ChmlCmplncInfo
_Substance _Substance
_CompositionType _CompositionType
_CompositionStatus _CompositionStatus
@AbapCatalog: {
  sqlViewName: 'CMPSTNHISTORY',
  compiler.compareFilter: true,
  preserveKey: true
}
@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #NOT_REQUIRED
}

@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #CONSUMPTION


@ObjectModel:
{
  usageType:
  {
    dataClass: #MIXED,
    sizeCategory: #L,
    serviceQuality: #C
  }
}

@EndUserText.label: 'History of Composition'

define view C_CmpstnHistory
  as select from I_ChmlComposition as ChmlComposition

  association [1..1] to I_ChmlCompositionStatusText as _CompositionStatusText on  ChmlComposition.ChmlCompositionStatus = _CompositionStatusText.ChmlCompositionStatus
                                                                              and _CompositionStatusText.Language       = $session.system_language

  association [1..1] to I_BusinessUserBasic         as _LastChangedByUser     on  ChmlComposition.LastChangedByUser = _LastChangedByUser.UserID

  association [0..1] to I_BusinessUserBasic         as _ReleasedByUser        on  ChmlComposition.ReleasedByUser = _ReleasedByUser.BusinessPartner

{
  key ChmlComposition.ChmlCompositionUUID              as ChmlCompositionUUID,

      ChmlComposition.ChmlCmplncInfoUUID               as ChmlCmplncInfoUUID,
      ChmlComposition.SubstanceUUID                    as SubstanceUUID,


      ChmlComposition.ChmlCompositionType              as ChmlCompositionType,
      ChmlComposition.ProdCmplncLegalArea              as ProdCmplncLegalArea,

      ChmlComposition.PolymerCompositionIntID          as PolymerCompositionIntID,

      ChmlComposition.ChmlCompositionStatus            as ChmlCompositionStatus,
      _CompositionStatusText.ChmlCompositionStatusName as ChmlCompositionStatusName,

      _LastChangedByUser.PersonFullName                as LastChangedByUserFullName,
      ChmlComposition.LastChangeUTCDateTime            as LastChangeDateTime,
      _ReleasedByUser.PersonFullName                   as ReleasedByUserName,
      ChmlComposition.ReleaseDateTime                  as ReleaseDateTime,
      ChmlComposition.ValidityStartDateTime            as ValidityStartDateTime,
      ChmlComposition.ValidityEndDateTime              as ValidityEndDateTime,
      ChmlComposition.CreationUTCDateTime              as CreationUTCDateTime,

      /*Association*/
      _ChmlCmplncInfo,
      _Substance,
      _CompositionType,
      _CompositionStatus

}