P_CnsldtnUnit_UnionByKey

DDL: P_CNSLDTNUNIT_UNIONBYKEY SQL: PCSCUUBYK Type: view COMPOSITE

P_CnsldtnUnit_UnionByKey is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (I_CnsldtnGlobalParameter, I_CnsldtnGlobalSetting, I_CnsldtnUnit, I_CnsldtnUnit_3) and exposes 4 fields with key fields ConsolidationDimension, ConsolidationUnit, ConsolidationUnit.

Data Sources (4)

SourceAliasJoin Type
I_CnsldtnGlobalParameter _GlobalParameter inner
I_CnsldtnGlobalSetting _GlobalSetting inner
I_CnsldtnUnit _Header from
I_CnsldtnUnit_3 I_CnsldtnUnit_3 union

Annotations (12)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
VDM.private true view
VDM.viewType #COMPOSITE view
AbapCatalog.sqlViewName PCSCUUBYK view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey ConsolidationUnit view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY ConsolidationDimension I_CnsldtnUnit ConsolidationDimension
KEY ConsolidationUnit I_CnsldtnUnit ConsolidationUnit
KEY ConsolidationUnit ConsolidationUnit
Source
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter:true
@VDM.private:true
@VDM.viewType: #COMPOSITE
@AbapCatalog.sqlViewName: 'PCSCUUBYK'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.representativeKey: 'ConsolidationUnit'
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType: {
  dataClass: #CUSTOMIZING,
  serviceQuality: #C,
  sizeCategory: #M
}

define view P_CnsldtnUnit_UnionByKey
  as select from I_CnsldtnUnit            as _Header
  
    inner join   I_CnsldtnGlobalParameter as _GlobalParameter on _GlobalParameter.ConsolidationDimension = _Header.ConsolidationDimension

{
  key   _Header.ConsolidationDimension,
  key   _Header.ConsolidationUnit,
        cast(1 as abap.int1 ) as Source

}

union

select from  I_CnsldtnUnit_3

  inner join I_CnsldtnGlobalSetting as _GlobalSetting on _GlobalSetting.CnsldtnFrmYrForNewGrpRptgLogic <> '0000'

{
  key   ConsolidationDimension,
  key   ConsolidationUnit,
        cast(2 as abap.int1 ) as Source

}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CNSLDTNGLOBALPARAMETER",
"I_CNSLDTNGLOBALSETTING",
"I_CNSLDTNUNIT",
"I_CNSLDTNUNIT_3"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/