I_FsvHierarchyInCOCD
FSV based on Company Code
I_FsvHierarchyInCOCD is a Composite CDS View (Dimension) that provides data about "FSV based on Company Code" in SAP S/4HANA. It reads from 1 data source (P_FsvHierarchWithCOCD) and exposes 25 fields with key fields HierarchyNodeUniqueID, FinancialStatementVariant, ChartOfAccounts, CompanyCode. It has 9 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_FsvHierarchWithCOCD | P_FsvHierarchWithCOCD | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1] | I_GLAccountInCompanyCode | _GLAccount | $projection.GLAccount = _GLAccount.GLAccount and $projection.CompanyCode = _GLAccount.CompanyCode |
| [0..1] | I_GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | $projection.ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts and $projection.GLAccount = _GLAccountInChartOfAccounts.GLAccount |
| [1] | I_FinancialStatementItem | _FinancialStatementItem | $projection.FinancialStatementVariant = _FinancialStatementItem.FinancialStatementVariant and $projection.HierarchyNode = _FinancialStatementItem.HierarchyNode |
| [1] | I_ChartOfAccounts | _ChartOfAccounts | $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts |
| [1] | I_FunctionalArea | _FunctionalArea | $projection.FunctionalArea = _FunctionalArea.FunctionalArea |
| [0..1] | I_FinancialStatementVersion | _FinancialStatementVersion | $projection.FinancialStatementVariant = _FinancialStatementVersion.FinancialStatementVariant |
| [0..1] | I_CompanyCode | _CompanyCode | $projection.CompanyCode = _CompanyCode.CompanyCode |
| [0..1] | P_FSVSEMTAG | _FSITEMSEMTAG | $projection.FinancialStatementVariant = _FSITEMSEMTAG.FinancialStatementVariant and $projection.FinancialStatementItem = _FSITEMSEMTAG.FinancialStatementItem and $projection.NodeType = 'P' |
| [0..1] | P_FSVSEMTAG | _RANGESEMTAG | $projection.FinancialStatementVariant = _RANGESEMTAG.FinancialStatementVariant and $projection.HierarchyNodeDescription = _RANGESEMTAG.HierarchyNode and $projection.NodeType = 'B' |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IFSVHIERCOCD | view | |
| EndUserText.label | FSV based on Company Code | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.representativeKey | HierarchyNodeUniqueID | view | |
| Metadata.allowExtensions | true | view |
Fields (25)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | HierarchyNodeUniqueID | HierarchyUniqueNodeID | ||
| KEY | FinancialStatementVariant | versn | Version | |
| KEY | ChartOfAccounts | ktopl | G/L Chart of Accounts | |
| KEY | CompanyCode | bukrs | Value | |
| ParentNodeUniqueID | UniqueParentID | |||
| FinancialStatementItem | ergsl | FS Item | ||
| GLAccount | saknr | G/L Account | ||
| FunctionalArea | fkber | Functional Area | ||
| AlternativeGLAccount | AlternativeGLAccount | Group Account | ||
| CountryChartOfAccounts | CountryChartOfAccounts | Chart of Accts | ||
| HierarchyNodeDescription | Description | Well Code Des. | ||
| NodeType | type | Worklist Type | ||
| HierarchyNode | id | WorklistID | ||
| SiblingNode | nextn | ID | ||
| FinStatementHierarchyLevelVal | stufe | Level Number | ||
| OffsettingItem | ergs2 | Credit Item Key | ||
| GLAcctHierarchyNodeCategory | segment | Segment number | ||
| SemanticTagselseendasSemanticTag | ||||
| _FinancialStatementItem | _FinancialStatementItem | |||
| _GLAccount | _GLAccount | |||
| _GLAccountInChartOfAccounts | _GLAccountInChartOfAccounts | |||
| _FunctionalArea | _FunctionalArea | |||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _FinancialStatementVersion | _FinancialStatementVersion | |||
| _CompanyCode | _CompanyCode |
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 I_FsvHierarchyInCOCD.
-- 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.
-- SQL view name: IFSVHIERCOCD
CREATE VIEW I_FsvHierarchyInCOCD AS
SELECT
HierarchyUniqueNodeID AS HierarchyNodeUniqueID,
versn AS FinancialStatementVariant,
ktopl AS ChartOfAccounts,
bukrs AS CompanyCode,
UniqueParentID AS ParentNodeUniqueID,
ergsl AS FinancialStatementItem,
saknr AS GLAccount,
fkber AS FunctionalArea,
AlternativeGLAccount,
CountryChartOfAccounts,
Description AS HierarchyNodeDescription,
type AS NodeType,
id AS HierarchyNode,
nextn AS SiblingNode,
stufe AS FinStatementHierarchyLevelVal,
ergs2 AS OffsettingItem,
segment AS GLAcctHierarchyNodeCategory,
case when type = 'P' then _FSITEMSEMTAG.SemanticTags when type = 'B' then _RANGESEMTAG.SemanticTags else '' end as SemanticTag AS SemanticTagselseendasSemanticTag
FROM P_FsvHierarchWithCOCD
LEFT OUTER JOIN I_GLAccountInCompanyCode AS _GLAccount ON GLAccount = _GLAccount.GLAccount AND CompanyCode = _GLAccount.CompanyCode -- association [1]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts ON ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts AND GLAccount = _GLAccountInChartOfAccounts.GLAccount -- association [0..1]
LEFT OUTER JOIN I_FinancialStatementItem AS _FinancialStatementItem ON FinancialStatementVariant = _FinancialStatementItem.FinancialStatementVariant AND HierarchyNode = _FinancialStatementItem.HierarchyNode -- association [1]
LEFT OUTER JOIN I_ChartOfAccounts AS _ChartOfAccounts ON ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts -- association [1]
LEFT OUTER JOIN I_FunctionalArea AS _FunctionalArea ON FunctionalArea = _FunctionalArea.FunctionalArea -- association [1]
LEFT OUTER JOIN I_FinancialStatementVersion AS _FinancialStatementVersion ON FinancialStatementVariant = _FinancialStatementVersion.FinancialStatementVariant -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode -- association [0..1]
LEFT OUTER JOIN P_FSVSEMTAG AS _FSITEMSEMTAG ON FinancialStatementVariant = _FSITEMSEMTAG.FinancialStatementVariant AND FinancialStatementItem = _FSITEMSEMTAG.FinancialStatementItem AND NodeType = 'P' -- association [0..1]
LEFT OUTER JOIN P_FSVSEMTAG AS _RANGESEMTAG ON FinancialStatementVariant = _RANGESEMTAG.FinancialStatementVariant AND HierarchyNodeDescription = _RANGESEMTAG.HierarchyNode AND NodeType = 'B' -- 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