P_CnsldtnGroupStructure
Consolidation Group Structure
P_CnsldtnGroupStructure is a Basic CDS View that provides data about "Consolidation Group Structure" in SAP S/4HANA. It reads from 2 data sources (I_CnsldtnVersion, fincs_grpstr) and exposes 20 fields with key fields ConsolidationGroup, ConsolidationUnit, ConsolidationVersion, GroupStrucFromFiscalYearPeriod. It has 5 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_CnsldtnVersion | _CnsldtnVersionJ | inner |
| fincs_grpstr | _Source | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CnsldtnVersion | _CnsldtnVersion | $projection.ConsolidationVersion = _CnsldtnVersion.ConsolidationVersion |
| [1..1] | I_CnsldtnGroup_3 | _CnsldtnGroup | $projection.ConsolidationGroup = _CnsldtnGroup.ConsolidationGroup |
| [1..1] | I_CnsldtnUnit_4 | _CnsldtnUnit | $projection.ConsolidationUnit = _CnsldtnUnit.ConsolidationUnit |
| [0..*] | I_CnsldtnGroupStrucMethAssgmt | _CnsldtnGroupStrucMethAssgmt | $projection.ConsolidationGroup = _CnsldtnGroupStrucMethAssgmt.ConsolidationGroup and $projection.ConsolidationUnit = _CnsldtnGroupStrucMethAssgmt.ConsolidationUnit and $projection.ConsolidationVersion = _CnsldtnGroupStrucMethAssgmt.ConsolidationVersion and $projection.GroupStrucFromFiscalYearPeriod = _CnsldtnGroupStrucMethAssgmt.GroupStrucFromFiscalYearPeriod |
| [0..1] | I_CnsldtnInvmtUtilznSetting | _CnsldtnInvmtUtilznSetting | _Source.dimen = _CnsldtnInvmtUtilznSetting.ConsolidationDimension |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCSGRPSTR | 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 | #B | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| VDM.viewType | #BASIC | view | |
| VDM.private | true | view | |
| EndUserText.label | Consolidation Group Structure | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ConsolidationGroup | |||
| KEY | ConsolidationUnit | |||
| KEY | ConsolidationVersion | I_CnsldtnVersion | ConsolidationVersion | Version |
| KEY | GroupStrucFromFiscalYearPeriod | |||
| GroupStrucToFiscalYearPeriod | ||||
| YearOfFirstConsolidation | ||||
| PeriodOfFirstConsolidation | ||||
| FirstCnsldtnFiscalYearPeriod | ||||
| FirstCnsldtnIsAtEndOfPeriod | ||||
| YearOfDivestiture | ||||
| PeriodOfDivestiture | ||||
| DivestitureFiscalYearPeriod | ||||
| DivestitureIsAtBeginOfPeriod | ||||
| ConsolidationMethod | ||||
| AccountingTechnique | ||||
| ETag | fincs_grpstr | etag | Update Token | |
| _CnsldtnVersion | _CnsldtnVersion | |||
| _CnsldtnGroup | _CnsldtnGroup | |||
| _CnsldtnUnit | _CnsldtnUnit | |||
| _CnsldtnGroupStrucMethAssgmt | _CnsldtnGroupStrucMethAssgmt |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view P_CnsldtnGroupStructure.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
CREATE VIEW P_CnsldtnGroupStructure AS
SELECT
cast(_Source.congr as fincs_consolidationgroup preserving type ) AS ConsolidationGroup,
cast(_Source.bunit as fincs_consolidationunit preserving type ) AS ConsolidationUnit,
_CnsldtnVersionJ.ConsolidationVersion AS ConsolidationVersion,
cast(_Source.fromyearper as fincs_groupstrucfromfyp ) AS GroupStrucFromFiscalYearPeriod,
cast(_Source.toyearper as fincs_groupstructofyp ) AS GroupStrucToFiscalYearPeriod,
cast(_Source.fyear as fincs_yearoffirstconsolidation preserving type ) AS YearOfFirstConsolidation,
cast(_Source.fperi as fincs_periodoffirstcnsldtn preserving type ) AS PeriodOfFirstConsolidation,
cast( concat(_Source.fyear,_Source.fperi ) as fincs_firstcnsldtnfyp ) AS FirstCnsldtnFiscalYearPeriod,
cast(_Source.feflg as fincs_firstcnsldtnatendofperd preserving type ) AS FirstCnsldtnIsAtEndOfPeriod,
cast(_Source.lyear as fincs_yearofdivestiture preserving type ) AS YearOfDivestiture,
cast(_Source.lperi as fincs_periodofdivestiture preserving type ) AS PeriodOfDivestiture,
cast( concat(_Source.lyear,_Source.lperi ) as fincs_divestiturefyp ) AS DivestitureFiscalYearPeriod,
cast(_Source.lbflg as fincs_divestitureatbeginofperd preserving type ) AS DivestitureIsAtBeginOfPeriod,
cast(' ' as fincs_investmentmethod preserving type ) AS ConsolidationMethod,
cast('' as fincs_accountingtechnique preserving type ) AS AccountingTechnique,
_Source.etag AS ETag
FROM fincs_grpstr AS _Source
INNER JOIN I_CnsldtnVersion AS _CnsldtnVersionJ ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CnsldtnVersion AS _CnsldtnVersion ON ConsolidationVersion = _CnsldtnVersion.ConsolidationVersion -- association [1..1]
LEFT OUTER JOIN I_CnsldtnGroup_3 AS _CnsldtnGroup ON ConsolidationGroup = _CnsldtnGroup.ConsolidationGroup -- association [1..1]
LEFT OUTER JOIN I_CnsldtnUnit_4 AS _CnsldtnUnit ON ConsolidationUnit = _CnsldtnUnit.ConsolidationUnit -- association [1..1]
LEFT OUTER JOIN I_CnsldtnGroupStrucMethAssgmt AS _CnsldtnGroupStrucMethAssgmt ON ConsolidationGroup = _CnsldtnGroupStrucMethAssgmt.ConsolidationGroup AND ConsolidationUnit = _CnsldtnGroupStrucMethAssgmt.ConsolidationUnit AND ConsolidationVersion = _CnsldtnGroupStrucMethAssgmt.ConsolidationVersion AND GroupStrucFromFiscalYearPeriod = _CnsldtnGroupStrucMethAssgmt.GroupStrucFromFiscalYearPeriod -- association [0..*]
LEFT OUTER JOIN I_CnsldtnInvmtUtilznSetting AS _CnsldtnInvmtUtilznSetting ON _Source.dimen = _CnsldtnInvmtUtilznSetting.ConsolidationDimension -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA