P_AssociatedMatlInProcCmpstn

DDL: P_ASSOCIATEDMATLINPROCCMPSTN Type: view CONSUMPTION

Associated Material-based Compositon with Status In Process

P_AssociatedMatlInProcCmpstn is a Consumption CDS View that provides data about "Associated Material-based Compositon with Status In Process" 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 CompositionInProcess from

Associations (1)

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

Annotations (8)

NameValueLevelField
EndUserText.label Associated Material-based Compositon with Status In Process view
AbapCatalog.sqlViewName PAAMBIPCMPS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey 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
ChmlCompositionTypeasChmlCompositionType
ProdCmplncLegalAreaasProdCmplncLegalArea
@EndUserText.label: 'Associated Material-based Compositon with Status In Process'
@AbapCatalog:
{
  -- SQL view name (16 characters)
  sqlViewName: 'PAAMBIPCMPS',

  --If it's true, the filter conditions are compared and, if they match, the associated join expression is evaluated only once
  compiler.compareFilter: true,
  preserveKey: 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_AssociatedMatlInProcCmpstn
  --Select data from basic view 'Composition'
  as select from I_ChmlComposition as CompositionInProcess
  association [1..1] to P_CChmlCmplConstants as _Constants on _Constants.Constant1 = _Constants.Constant1
{
      --UUID of chemical compliance information
  key CompositionInProcess.ChmlCmplncInfoUUID,

      --UUID of chemical composition released
      CompositionInProcess.ChmlCompositionUUID                                  as ChmlCompositionInProcessUUID,

      --Status Released
      CompositionInProcess.ChmlCompositionStatus                                as ChmlCmpstnInProcStatus,

      --Indicator: Is active entity of chemical composition with status In Process
      cast(_Constants[inner].ConstantTrue as sdraft_is_active preserving type ) as ChmlCmpstnInProcIsActiveEntity,

      -- Composition Type
      CompositionInProcess.ChmlCompositionType                                  as ChmlCompositionType,

      -- Legal Area
      CompositionInProcess.ProdCmplncLegalArea                                  as ProdCmplncLegalArea

}
where
  --Only material-based compositions
      CompositionInProcess.ChmlCompositionType   = 'MATLBSD2'

  --Only Released compositions
  and CompositionInProcess.ChmlCompositionStatus = 'IP'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CHMLCOMPOSITION",
"P_CCHMLCMPLCONSTANTS"
],
"ASSOCIATED":
[
"P_CCHMLCMPLCONSTANTS"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/