P_CnsldtnControllingArea

DDL: P_CNSLDTNCONTROLLINGAREA SQL: PCSCTRLAREA Type: view COMPOSITE

P_CnsldtnControllingArea is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_CnsldtnAddlMD, I_ControllingArea) and exposes 4 fields with key field ControllingArea.

Data Sources (2)

SourceAliasJoin Type
I_CnsldtnAddlMD I_CnsldtnAddlMD union_all
I_ControllingArea I_ControllingArea from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PCSCTRLAREA view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY ControllingArea ControllingArea
AdditionalMasterDataSource
AdditionalMasterDataSource
CnsldtnIsAdditionalMasterData
@AbapCatalog.sqlViewName: 'PCSCTRLAREA'

@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true

@ObjectModel.usageType: {
  dataClass: #MASTER,
  serviceQuality: #B,
  sizeCategory: #M
}
@VDM:{
  viewType: #COMPOSITE,
  private:true
  }

define view P_CnsldtnControllingArea
  as select from I_ControllingArea
{

  key ControllingArea,

      cast ( 'ACCTG' as fincs_masterdatasource )                   as AdditionalMasterDataSource,

      cast ( ' ' as fincs_isadditionalmasterdata preserving type ) as CnsldtnIsAdditionalMasterData
}


union all select from I_CnsldtnAddlMD
{

  key AdditionalMasterDataCode                                     as ControllingArea,

      cast ( 'CNSLDTN' as fincs_masterdatasource )                 as AdditionalMasterDataSource,

      cast ( 'X' as fincs_isadditionalmasterdata preserving type ) as CnsldtnIsAdditionalMasterData
}
where
      AdditionalCharcFieldName =  'KOKRS'
  and AdditionalMasterDataCode <> ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CNSLDTNADDLMD",
"I_CONTROLLINGAREA"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/