P_CnsldtnUnitByTime
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)
| Source | Alias | Join Type |
|---|---|---|
| fincs_bunit_atd | _Table | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CnsldtnGlobalSetting | _GlobalSetting | _GlobalSetting.SequenceNumber = '1' |
| [0..1] | I_CnsldtnUnit_4 | _Unit | _Unit.ConsolidationUnit = _Table.bunit |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA