P_FinStmtLeafWithFuncArea
P_FinStmtLeafWithFuncArea is a Basic CDS View in SAP S/4HANA. It reads from 7 data sources and exposes 17 fields with key fields HierarchyUniqueNodeID, UniqueParentID, versn, ktopl, ergsl.
Data Sources (7)
| Source | Alias | Join Type |
|---|---|---|
| P_Distinct_Coa_Fagl_Zc | dis_zc | inner |
| fagl_011fc | fc_leaf | from |
| fagl_011fc | fc_range | union_all |
| I_FinancialStatementItem | fsitem | left_outer |
| I_FinancialStatementItem | fsitem | left_outer |
| I_ChartOfAccounts | I_ChartOfAccounts | inner |
| I_FunctionalArea | I_FunctionalArea | inner |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | PFSLEAFFUNAREA | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view |
Fields (17)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | HierarchyUniqueNodeID | |||
| KEY | UniqueParentID | |||
| KEY | versn | fagl_011fc | versn | Version |
| KEY | ktopl | P_Distinct_Coa_Fagl_Zc | ktopl | Node Class |
| KEY | ergsl | fagl_011fc | ergsl | FS Item |
| KEY | fkber | I_FunctionalArea | FunctionalArea | Sendr Fctl Area |
| type | ||||
| Description | ||||
| char50asHierarchyUniqueNodeID | ||||
| KEY | UniqueParentID | |||
| KEY | versn | fagl_011fc | versn | Version |
| KEY | ktopl | I_ChartOfAccounts | ChartOfAccounts | Node Class |
| KEY | ergsl | fagl_011fc | ergsl | FS Item |
| KEY | fkber | Sendr Fctl Area | ||
| type | ||||
| Description | ||||
| id | I_FinancialStatementItem | HierarchyNode | Node |
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_FinStmtLeafWithFuncArea.
-- 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: PFSLEAFFUNAREA
CREATE VIEW P_FinStmtLeafWithFuncArea AS
SELECT
cast (concat(concat( fsitem.HierarchyNode,I_FunctionalArea.FunctionalArea ),'=') as abap.char(50) ) AS HierarchyUniqueNodeID,
cast (concat( concat(concat( fsitem.HierarchyNode,fc_leaf.vonfb ),'-'),fc_leaf.bisfb ) as abap.char(50) ) AS UniqueParentID,
fc_leaf.versn AS versn,
dis_zc.ktopl AS ktopl,
fc_leaf.ergsl AS ergsl,
I_FunctionalArea.FunctionalArea AS fkber,
cast ('L' as seu_type) AS type,
cast ( '' as abap.char( 50 )) AS Description,
fsitem.HierarchyNode as id AS char50asHierarchyUniqueNodeID,
fsitem.HierarchyNode AS id
FROM fagl_011fc AS fc_leaf
INNER JOIN P_Distinct_Coa_Fagl_Zc AS dis_zc ON /* join condition not captured in parsed metadata */
INNER JOIN I_FunctionalArea ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_FinancialStatementItem AS fsitem ON /* join condition not captured in parsed metadata */
INNER JOIN I_ChartOfAccounts ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): fagl_011fc
;
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