P_CnsldtnUnitByTime

DDL: P_CNSLDTNUNITBYTIME Type: view BASIC

Consolidation Unit by Time

P_CnsldtnUnitByTime is a Basic CDS View that provides data about "Consolidation Unit by Time" in SAP S/4HANA. It reads from 1 data source (fincs_bunit_atd) and exposes 4 fields with key fields ConsolidationUnit, FromFiscalYearPeriod. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
fincs_bunit_atd _Table from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_CnsldtnGlobalSetting _GlobalSetting _GlobalSetting.SequenceNumber = '1'
[0..1] I_CnsldtnUnit_4 _Unit _Unit.ConsolidationUnit = _Table.bunit

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName PCSCONSUNITATD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.representativeKey ConsolidationUnit view
VDM.viewType #BASIC view
VDM.private true view
EndUserText.label Consolidation Unit by Time view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY ConsolidationUnit fincs_bunit_atd bunit
KEY FromFiscalYearPeriod fincs_bunit_atd fromyearper
ToFiscalYearPeriod fincs_bunit_atd toyearper
ConsolidationUnitLocalCurrency fincs_bunit_atd curr
@AbapCatalog:{
  sqlViewName: 'PCSCONSUNITATD',
  compiler.compareFilter: true,
  preserveKey: true
  }
@AccessControl.authorizationCheck: #NOT_REQUIRED
@Metadata:{
  ignorePropagatedAnnotations: true
  }
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel:{
  usageType: {
    dataClass: #MASTER,
    serviceQuality: #C,
    sizeCategory: #S},
  representativeKey: 'ConsolidationUnit'
}
@VDM:{
  viewType: #BASIC,
  private: true
  }
@EndUserText.label: 'Consolidation Unit by Time'

define view P_CnsldtnUnitByTime
  as select from fincs_bunit_atd as _Table

  association [0..1] to I_CnsldtnGlobalSetting as _GlobalSetting on _GlobalSetting.SequenceNumber = '1'

  association [0..1] to I_CnsldtnUnit_4        as _Unit          on _Unit.ConsolidationUnit = _Table.bunit

{

  key _Table.bunit                       as ConsolidationUnit,

  key _Table.fromyearper                 as FromFiscalYearPeriod,

      _Table.toyearper                   as ToFiscalYearPeriod,

      _Table.curr                        as ConsolidationUnitLocalCurrency,

      //company determination

      //--> use persisted table value only in case interval starts in tight accounting integration timeframe

      //--> always display the key-identical company in case no tight accounting integration is used

      //--> no virtual interval split

      cast (
        case
          when _GlobalSetting.CnsldtnFrmYrForAcctgInteg is not initial and _Table.fromyearper >= concat(_GlobalSetting.CnsldtnFrmYrForAcctgInteg, '001')
            then _Table.rcomp
          else
            _Unit.Company
          end
      as fincs_company preserving type ) as Company

}
where
  _Table.dimen = 'Y1'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CNSLDTNGLOBALSETTING",
"I_CNSLDTNUNIT_4",
"FINCS_BUNIT_ATD"
],
"ASSOCIATED":
[
"I_CNSLDTNGLOBALSETTING",
"I_CNSLDTNUNIT_4"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/