P_CnsldtnUnit_UnionByKey
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)
| Source | Alias | Join Type |
|---|---|---|
| I_CnsldtnGlobalParameter | _GlobalParameter | inner |
| I_CnsldtnGlobalSetting | _GlobalSetting | inner |
| I_CnsldtnUnit | _Header | from |
| I_CnsldtnUnit_3 | I_CnsldtnUnit_3 | union |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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":""
}
}*/
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