I_CnsldtnUnitOverview is a Composite CDS View that provides data about "Consolidation Unit Overview" in SAP S/4HANA. It reads from 2 data sources (I_CnsldtnVersion, P_CnsldtnUnitOverview) and exposes 22 fields with key fields ConsolidationDimension, ConsolidationUnit, ConsolidationVersion, FromFiscalYearPeriod. It has 3 associations to related views.
@AbapCatalog.sqlViewName: 'ICSCUOVERVIEW'
@AbapCatalog.compiler.compareFilter: true@AbapCatalog.preserveKey: true@VDM.viewType: #COMPOSITE@ObjectModel.usageType: {
dataClass: #MASTER,
serviceQuality: #D,
sizeCategory: #M
}@ClientHandling: {
type: #CLIENT_DEPENDENT,
algorithm: #SESSION_VARIABLE
}@AccessControl.authorizationCheck: #CHECK@EndUserText.label: 'Consolidation Unit Overview'
defineview I_CnsldtnUnitOverview
asselectfrom P_CnsldtnUnitOverview as _Overview
innerjoin I_CnsldtnVersion as _CnsldtnVersion on _Overview.ConsolidationVersion = _CnsldtnVersion.ConsolidationVersion
association [0..1] to P_CnsldtnExtnVersAcctgInteg as _CnsldtnExtnVersAcctgInteg on _Overview.ConsolidationVersion = _CnsldtnExtnVersAcctgInteg.ConsolidationVersion
//do not expose this associationin the projection list of the viewassociation [1..1] to E_CnsldtnUnit as _CnsldtnUnitExtension on _Overview.ConsolidationUnit = _CnsldtnUnitExtension.ConsolidationUnit
//do not expose this associationin the projection list of the viewassociation [0..1] to E_CnsldtnUnitByTimeVersion as _CnsldtnUnitByTimeVrsnExtnsn on _Overview.ConsolidationUnit = _CnsldtnUnitByTimeVrsnExtnsn.ConsolidationUnit
and _Overview.CnsldtnUnitAttributeVersion = _CnsldtnUnitByTimeVrsnExtnsn.CnsldtnUnitAttributeVersion
and _Overview.FiscalYearPeriod = _CnsldtnUnitByTimeVrsnExtnsn.FromFiscalYearPeriod
{
key _Overview.ConsolidationDimension,
key _Overview.ConsolidationUnit,
key _Overview.ConsolidationVersion,
key _Overview.FromFiscalYearPeriod,
_Overview.ToFiscalYearPeriod,
_Overview.CnsldtnUnitAttributeVersion,
_Overview.Country,
_Overview.ConsolidationUnitLink,
_Overview.ConsolidationUnitLinkLabel,
_Overview.ConsolidationUnitLocalCurrency,
//suppression incase of tight accounting integration and plan versions
casewhen _Overview.CnsldtnFrmYrForAcctgInteg <> '0000' and _CnsldtnVersion.CnsldtnIsPlanVersion = 'X'
thencast( '' as rcomp_d )
else
_Overview.Company
endas Company,
_Overview.ConsolidationUnitIsPartnerOnly,
//display of deviating fiscal year variant
//do not display deviating fiscal year variant incase of integration and non-plan version for tight accounting integration interval
casewhen _Overview.CnsldtnDataTransferMethod = 'H' and _CnsldtnVersion.CnsldtnIsPlanVersion = '' and _Overview.CnsldtnFrmYrForAcctgInteg <> '0000'
thencast( '' as fincs_bunit_periv )
else _Overview.FiscalYearVariant
endas FiscalYearVariant,
//display of data transfer method
//case one - technical interval existing and non-plan version with initial source ledger and integration used as data transfer method then clear data transfer method
//source ledger depending if tight accounting integration is active
//case two - no technical interval existing then display flexible upload asdefaultcase//case one
when ( _Overview.CnsldtnDataTransferMethod = 'H' and _CnsldtnVersion.CnsldtnIsPlanVersion = '' and _CnsldtnVersion.CnsldtnSourceLedger = '' and ( _Overview.CnsldtnFrmYrForAcctgInteg = '0000' or _Overview.CnsldtnFrmYrForAcctgInteg isnull ) ) //no tight accounting integration
or ( _Overview.CnsldtnDataTransferMethod = 'H' and _CnsldtnVersion.CnsldtnIsPlanVersion = '' and _CnsldtnVersion.CnsldtnAccountingSourceLedger = '' and _Overview.CnsldtnFrmYrForAcctgInteg <> '0000' ) //tight accounting integration
or ( _Overview.CnsldtnDataTransferMethod = 'H' and _CnsldtnExtnVersAcctgInteg.CnsldtnUnitAcctgIntegIsDsbld = 'X' ) //data relese task not supported in restatement
thencast( '' as fincs_datatransfermethod )
//case two
when _Overview.CnsldtnDataTransferMethod = '' and _Overview.ConsolidationUnitIsPartnerOnly = '' //no existing technical interval
thencast( 'U' as fincs_datatransfermethod )
else
_Overview.CnsldtnDataTransferMethod
endas CnsldtnDataTransferMethod,
_Overview.CnsldtnUploadMethod,
_Overview.CnsldtnCrcyTranslationMethod,
_Overview.TaxRate,
_Overview.DocumentEntryIsInGroupCurrency,
//suppression of source fields incase of non-plan version with initial source ledger or plan version or tight accounting integration
casewhen _Overview.CnsldtnDataTransferMethod = 'H'
and ( _CnsldtnVersion.CnsldtnIsPlanVersion = 'X'
or _CnsldtnExtnVersAcctgInteg.CnsldtnUnitAcctgIntegIsDsbld = 'X' //data relese task not supported in restatement
or ( _CnsldtnVersion.CnsldtnIsPlanVersion = '' and _CnsldtnVersion.CnsldtnSourceLedger = '' and ( _Overview.CnsldtnFrmYrForAcctgInteg = '0000' or _Overview.CnsldtnFrmYrForAcctgInteg isnull ) ) //no tight accounting integration
or ( _Overview.CnsldtnFrmYrForAcctgInteg <> '0000' ) //tight accounting integration
)
thencast( '' as fincs_local_curr_source )
else
_Overview.CnsldtnUnitLocalCrcySource
endas CnsldtnUnitLocalCrcySource,
casewhen _Overview.CnsldtnDataTransferMethod = 'H'
and ( _CnsldtnVersion.CnsldtnIsPlanVersion = 'X'
or _CnsldtnExtnVersAcctgInteg.CnsldtnUnitAcctgIntegIsDsbld = 'X' //data relese task not supported in restatement
or ( _CnsldtnVersion.CnsldtnIsPlanVersion = '' and _CnsldtnVersion.CnsldtnSourceLedger = '' and ( _Overview.CnsldtnFrmYrForAcctgInteg = '0000' or _Overview.CnsldtnFrmYrForAcctgInteg isnull ) ) //no tight accounting integration
or ( _Overview.CnsldtnFrmYrForAcctgInteg <> '0000' ) //tight accounting integration
)
thencast( '' as fincs_group_curr_source )
else
_Overview.CnsldtnUnitGroupCrcySource
endas CnsldtnUnitGroupCrcySource,
_Overview.CnsldtnUnitDataCollection,
_Overview.ConsolidationUnitPartner,
_Overview.ConsolidationUnitPostingRule,
_Overview.ConsolidationUnitValidation,
// purpose: association to extension include viewin higher layers of view stack
_Overview.FiscalYearPeriod
}
where
FromFiscalYearPeriod <= ToFiscalYearPeriod