P_AssociatedSubstLglReldCmpstn

DDL: P_ASSOCIATEDSUBSTLGLRELDCMPSTN Type: view CONSUMPTION

Associated Legal Compositon with Status Released

P_AssociatedSubstLglReldCmpstn is a Consumption CDS View that provides data about "Associated Legal Compositon with Status Released" in SAP S/4HANA. It reads from 1 data source (I_ChmlComposition) and exposes 3 fields. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_ChmlComposition CompositionReleased from

Associations (1)

CardinalityTargetAliasCondition
[1..1] P_CChmlCmplConstants _Constants _Constants.Constant1 = _Constants.Constant1

Annotations (7)

NameValueLevelField
EndUserText.label Associated Legal Compositon with Status Released view
AbapCatalog.sqlViewName PAASLRECMPS view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (3)

KeyFieldSource TableSource FieldDescription
ChmlCmplncInfoUUID
ChmlCompositionType
ReleasedByUserasReleasedByUser
@EndUserText.label: 'Associated Legal Compositon with Status Released'
@AbapCatalog:
{
  -- SQL view name (16 characters)
  sqlViewName: 'PAASLRECMPS',

  --If it's true, the filter conditions are compared and, if they match, the associated join expression is evaluated only once
  compiler.compareFilter: true
}

--Access Control: Authorizations Checks
@AccessControl:
{
   authorizationCheck: #NOT_REQUIRED
}

--Client Handling of the view
@ClientHandling.algorithm: #SESSION_VARIABLE

--VDM view type
@VDM.viewType: #CONSUMPTION
@VDM.private: true

define view P_AssociatedSubstLglReldCmpstn
  --Select data from basic view 'Composition'
  as select from I_ChmlComposition as CompositionReleased
  association [1..1] to P_CChmlCmplConstants as _Constants on _Constants.Constant1 = _Constants.Constant1

{
      --UUID of chemical compliance information
  key CompositionReleased.ChmlCmplncInfoUUID,

      --Composition type
  key CompositionReleased.ChmlCompositionType,

      --UUID of chemical composition released
      CompositionReleased.ChmlCompositionUUID                             as ChmlCompositionReleasedUUID,

      --Status Released
      CompositionReleased.ChmlCompositionStatus                           as ChmlCmpstnReldStatus,

      --Released by User
      CompositionReleased.ReleasedByUser                                  as ReleasedByUser,

      --Indicator: Is active entity of chemical composition with status In Process
      cast( _Constants.ConstantTrue as sdraft_is_active preserving type ) as ChmlCmpstnReldIsActiveEntity
}
where
      CompositionReleased.ChmlCompositionType   <> 'ANALYTIC1'
  and CompositionReleased.ChmlCompositionType   <> 'MATLBSD1'
  and CompositionReleased.ChmlCompositionType   <> 'MATLBSD2'
  and CompositionReleased.ChmlCompositionType   <> 'TS'
  and CompositionReleased.ChmlCompositionType   <> 'POLYMER'
  --Only Released compositions
  and CompositionReleased.ChmlCompositionStatus                    =  'RE'