P_MatlBasedCmpstnCompSemObj

DDL: P_MATLBASEDCMPSTNCOMPSEMOBJ Type: view CONSUMPTION

Semantic Object of Material Based Composition Components

P_MatlBasedCmpstnCompSemObj is a Consumption CDS View that provides data about "Semantic Object of Material Based Composition Components" in SAP S/4HANA. It reads from 1 data source (I_ChmlCmplncInfo) and exposes 6 fields. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_ChmlCmplncInfo I_ChmlCmplncInfo from

Associations (1)

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

Annotations (7)

NameValueLevelField
EndUserText.label Semantic Object of Material Based Composition Components view
AbapCatalog.sqlViewName PMCOMPSEMOBJ 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 (6)

KeyFieldSource TableSource FieldDescription
ChmlCmplncInfoUUIDkeyChmlCmplncInfoUUID
neededforDCLMaterialIsSold
MaterialIsTransported MaterialIsTransported
MaterialIsSourced MaterialIsSourced
MaterialIsProduced MaterialIsProduced
ProdStewardshipRespUnit ProdStewardshipRespUnit
@EndUserText.label: 'Semantic Object of Material Based Composition Components'
@AbapCatalog:
{
  -- SQL view name (16 characters)
  sqlViewName: 'PMCOMPSEMOBJ',

  --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_MatlBasedCmpstnCompSemObj
  as select from I_ChmlCmplncInfo

  association [1..1] to P_CChmlCmplConstants as _Constants on _Constants.ConstantRawMaterialSemObj = _Constants.ConstantRawMaterialSemObj
{
      --ChmlCmplncInfoUUID
  key ChmlCmplncInfoUUID,

      --SemanticObject
      case
        when MaterialIsSourced = 'X'
          then _Constants[inner].ConstantRawMaterialSemObj --'RawMaterialChemicalInfo'
        when MaterialIsProduced = 'X'
          then _Constants[inner].ConstantUnpackagedProdSemObj --'UnpackagedChemicalInfo'
      end as SemanticObject,

      -- needed for DCL
      MaterialIsSold,
      MaterialIsTransported,
      MaterialIsSourced,
      MaterialIsProduced,
      ProdStewardshipRespUnit
}