P_CnsldtnGroupStructureEnhcd
Consolidation Group Structure Enhanced
P_CnsldtnGroupStructureEnhcd is a Composite CDS View that provides data about "Consolidation Group Structure Enhanced" in SAP S/4HANA. It reads from 1 data source (I_CnsldtnGroupStructure_2) and exposes 24 fields with key fields ConsolidationGroup, ConsolidationUnit, ConsolidationVersion, GroupStrucFromFiscalYearPeriod. Part of development package FIN_CS_MD_GROUPSTRUCTURE.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CnsldtnGroupStructure_2 | _Source | from |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PCSGRPSTRENHCD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (24)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ConsolidationGroup | I_CnsldtnGroupStructure_2 | ConsolidationGroup | Cons. Group |
| KEY | ConsolidationUnit | I_CnsldtnGroupStructure_2 | ConsolidationUnit | Consolidation Unit |
| KEY | ConsolidationVersion | I_CnsldtnGroupStructure_2 | ConsolidationVersion | Version |
| KEY | GroupStrucFromFiscalYearPeriod | |||
| GroupStrucToFiscalYearPeriod | ||||
| PeriodOfFirstConsolidation | I_CnsldtnGroupStructure_2 | PeriodOfFirstConsolidation | ||
| YearOfFirstConsolidation | I_CnsldtnGroupStructure_2 | YearOfFirstConsolidation | ||
| YearBeforeFirstConsolidation | ||||
| PeriodBeforeFirstConsolidation | ||||
| FirstCnsldtnFiscalYearPeriod | ||||
| FirstCnsldtnIsAtEndOfPeriod | I_CnsldtnGroupStructure_2 | FirstCnsldtnIsAtEndOfPeriod | ||
| YearOfDivestiture | I_CnsldtnGroupStructure_2 | YearOfDivestiture | ||
| PeriodOfDivestiture | I_CnsldtnGroupStructure_2 | PeriodOfDivestiture | ||
| YearAfterDivestiture | ||||
| PeriodAfterDivestiture | ||||
| DivestitureFiscalYearPeriod | ||||
| DivestitureIsAtBeginOfPeriod | I_CnsldtnGroupStructure_2 | DivestitureIsAtBeginOfPeriod | ||
| DivestitureIsDueToMerger | I_CnsldtnGroupStructure_2 | DivestitureIsDueToMerger | ||
| ETag | I_CnsldtnGroupStructure_2 | ETag | Update Token | |
| FinalPeriod | ||||
| FirstPeriod | ||||
| _CnsldtnGroup | _CnsldtnGroup | |||
| _CnsldtnUnit | _CnsldtnUnit | |||
| _CnsldtnVersion | _CnsldtnVersion |
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_CnsldtnGroupStructureEnhcd.
-- 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_CnsldtnGroupStructureEnhcd AS
SELECT
_Source.ConsolidationGroup AS ConsolidationGroup,
_Source.ConsolidationUnit AS ConsolidationUnit,
_Source.ConsolidationVersion AS ConsolidationVersion,
cast( _Source.FromFiscalYearPeriod as fincs_groupstrucfromfyp preserving type ) AS GroupStrucFromFiscalYearPeriod,
cast( _Source.ToFiscalYearPeriod as fincs_groupstructofyp preserving type ) AS GroupStrucToFiscalYearPeriod,
_Source.PeriodOfFirstConsolidation AS PeriodOfFirstConsolidation,
_Source.YearOfFirstConsolidation AS YearOfFirstConsolidation,
cast( lpad( cast( cast( _Source.YearOfFirstConsolidation as abap.int2 ) - 1 as abap.char(11) ), 4, '0' ) as fincs_fiscalyear ) AS YearBeforeFirstConsolidation,
cast( lpad( cast( cast( _Source.PeriodOfFirstConsolidation as abap.int2 ) - 1 as abap.char(11) ), 3, '0' ) as fc_perid ) AS PeriodBeforeFirstConsolidation,
cast( concat( _Source.YearOfFirstConsolidation, _Source.PeriodOfFirstConsolidation ) as fincs_firstcnsldtnfyp ) AS FirstCnsldtnFiscalYearPeriod,
_Source.FirstCnsldtnIsAtEndOfPeriod AS FirstCnsldtnIsAtEndOfPeriod,
_Source.YearOfDivestiture AS YearOfDivestiture,
_Source.PeriodOfDivestiture AS PeriodOfDivestiture,
cast( lpad( cast( cast( _Source.YearOfDivestiture as abap.int2 ) + 1 as abap.char(11) ), 4, '0' ) as fincs_fiscalyear ) AS YearAfterDivestiture,
cast( lpad( cast( cast( _Source.PeriodOfDivestiture as abap.int2 ) + 1 as abap.char(11) ), 3, '0' ) as fc_perid ) AS PeriodAfterDivestiture,
cast( concat( _Source.YearOfDivestiture, _Source.PeriodOfDivestiture ) as fincs_divestiturefyp ) AS DivestitureFiscalYearPeriod,
_Source.DivestitureIsAtBeginOfPeriod AS DivestitureIsAtBeginOfPeriod,
_Source.DivestitureIsDueToMerger AS DivestitureIsDueToMerger,
_Source.ETag AS ETag,
cast( '999' as fc_perid preserving type ) AS FinalPeriod,
cast( '001' as fc_perid preserving type ) AS FirstPeriod
FROM I_CnsldtnGroupStructure_2 AS _Source
;
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