P_ProdCmplncStorLoc

DDL: P_PRODCMPLNCSTORLOC Type: view_entity COMPOSITE

P_ProdCmplncStorLoc is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_Plant, I_StorageLocation) and exposes 7 fields with key fields Plant, StorageLocation, StorageLocation. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_Plant _StorageLocationPlant union
I_StorageLocation I_StorageLocation from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_Plant _Plant $projection.Plant = _Plant.Plant
[1..1] P_ChmlCmplConstants _Constants _Constants.Constant1 = _Constants.Constant1

Annotations (8)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.representativeKey StorageLocation view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY Plant Plant
KEY StorageLocation StorageLocation
StorageLocationName StorageLocationName
Plant
KEY StorageLocation _Constants ConstantEmpty
StorageLocationName _FallbackName Text
_Plant _Plant
@AccessControl.authorizationCheck: #NOT_REQUIRED

@ObjectModel: {
  usageType: {
    serviceQuality: #A,
    sizeCategory:  #L,
    dataClass: #CUSTOMIZING },
    representativeKey: 'StorageLocation'
 }
@Metadata: {
  ignorePropagatedAnnotations: true
 }

@VDM: {
  viewType: #COMPOSITE,
  private: true }

define view entity P_ProdCmplncStorLoc

  as select from I_StorageLocation
{
      /**** Keys ****/
  key Plant,
  key StorageLocation,

      /**** Content ****/
      StorageLocationName,

      /**** Associations ****/
      _Plant

}
where
      ConfigDeprecationCode <> 'E'
  and StorageLocation       <> ''

union


select from I_Plant   as _StorageLocationPlant
// This returns the language-dependent text for <ANY> (EHFND_UI_COMN/ANY_MARK)

  join      I_OTRText as _FallbackName on  _FallbackName.OnlnTxtRpstryConceptID = '0894EF4587211EDC9FE9372D9FC3DEB1'
                                       and _FallbackName.OnlnTxtObjectID        is initial
                                       and _FallbackName.Language               = $session.system_language
association [1..1] to I_Plant             as _Plant     on $projection.Plant = _Plant.Plant
/*+[hideWarning] { "IDS" : [ "CARDINALITY_CHECK" ] }*/
association [1..1] to P_ChmlCmplConstants as _Constants on _Constants.Constant1 = _Constants.Constant1
{
      /**** Keys ****/
  key _StorageLocationPlant.Plant,
  key _Constants.ConstantEmpty as StorageLocation,

      /**** Content ****/
      _FallbackName.Text       as StorageLocationName,

      /**** Associations ****/
      _Plant
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_OTRTEXT",
"I_PLANT",
"I_STORAGELOCATION",
"P_CHMLCMPLCONSTANTS"
],
"ASSOCIATED":
[
"I_PLANT"
],
"BASE":
[
"I_STORAGELOCATION"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/